Get process id and port from the socket

Hello,

Please help me in getting the process id and the port number from the socket

 netstat -Aan|grep -i closed
f100050010b133b8 tcp        0      0  *.*                   *.*                   CLOSED
f1000500119b53b8 tcp4       0      0  *.*                   *.*                   CLOSED

Best regards,
Vishal

Linux netstat does this with the -p option to netstat

---------- Post updated at 11:41 AM ---------- Previous update was at 11:40 AM ----------

well, actually looking at this output i'm guessing it isn't Linux. So please tell us your OS

Hi,

This is AIX.

Best regards,
Vishal

Does this post properly answer the question?
How to find what process is using a port in AIX 5L and above

1 Like