Will show both udp and tcp ports. Drop the 'n' from the netstat to see names for hosts and services, rather than numbers, if available.
Some of the udp ports will be related to specific sessions, like ssh connections, but there's no way to weed them out of the netstat output (they don't have an equivalent to the tcp "LISTEN" that is listed.)
If you have lsof installed, you can see exactly what processes are listening, and where, with:
lsof -i -n -P| egrep '(UDP|TCP.*LISTEN)'
Remove the "-n -P" to see translated hostnames and ports, respectively.
Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.