I want to take a service name "HTTP" then do a dynamic lookup and pull a list of "standard ports". If the application is not running on standard ports I want to report on that. For most apps there is a single port number. The lookup would be easy. For things like HTTP there are two standard ports of 80 and 8080. How can I do a lookup and get that list or even better a range of ports. 1,5,60-67 kind of thing?
↧