How to check open ports on every asset on which agent is deployed

My requirement is to check that a specific port is open or not on all assets. How can i check that.

asset.endpoints.port = 443 will show you all the assets with a port listening, you can compare that to the total assets. If you create a Goal for this port, you will get a percentage of assets. Even though this isn’t really a Goal, it should give you an idea of the scope of a port across your network.