PDA

View Full Version : AIX: Which Application is Using a Specific Port


vermaden
April 10th, 2009, 22:12
How to check which application is binded to specific port on IBM AIX, maybe somebody will find it usefull.

# netstat -Aan | grep 5524
f100060005e1eb98 tcp4 0 0 *.5524 *.* LISTEN

# rmsock f1000600060d8b98 tcpcb
The socket 0x60d8808 is being held by proccess 1982694 (java.bin).

# ps ax | grep 1982694
1003654 pts/6 A 0:00 grep 1982694
1982694 pts/3 A 3:03 /u00/orahome3/jdk/bin/java.bin -Dibm.stream.nio=true

l2f
June 10th, 2011, 04:47
Hello,

We run AIX at my office (another beast), this tip will help me and maybe impress my sysadmin (point of view from an application coder) ;)

l2f

Blueprint
June 10th, 2011, 05:44
You can also use lsof if it's installed. Most AIX admins install it.

# lsof -i:5524

# lslpp -w /usr/sbin/lsof
File Fileset Type
----------------------------------------------------------------------------
/usr/sbin/lsof lsof.base File

graudeejs
June 10th, 2011, 06:22
Well since this is FreeBSD forum, why won't you add that on FreeBSD you can use
sockstat -4 for IPv4 and sockstat -6 for IPv6, or simply sockstat to list all connections