LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   AIX (https://www.linuxquestions.org/questions/aix-43/)
-   -   Network Ports (https://www.linuxquestions.org/questions/aix-43/network-ports-647777/)

watcher69b 06-08-2008 08:41 AM

Network Ports
 
Is there anyway i can see if there are requests coming to my (AIX 5.1) server on a specific port?

If i do

netstat |grep 4500

I get

tcp4 0 0 app1234.4500 *.* LISTEN

and if i telnet to the box on 4500 it responds but i cannot tell if there active requests and how often they are.

Thanks a ton!

MensaWater 06-08-2008 10:17 AM

See if "lsof" is available for AIX. It is for Linux, HP-UX and Solaris but I've not used it on AIX.

You can type "lsof -i :<port>"
after it is installed to see what is using that port.

lsof has tons of uses (its name = list open files - sockets are considered file handles) other than the above.

Note there are some things lsof may not show. If you go to its home page and read the faq it will tell you what they are but for most purposes it works just fine.


All times are GMT -5. The time now is 10:50 PM.