Get Process ID of an Established TCP Connection in AIX

There are numerous ways to accomplish getting the PID for an established network connection in AIX and Linux using tools like ss or more popular lsof.  In my situation, the system I was working on did not have ss or lsof, so I used netstat and rmsock. If I know I have an established connection to a remote host 192.168.9.150, I can use netstat to narrow down and obtain the PCB/ADDR using the following command. ~ # netstat -naA|grep 192.168.9.150 f10000f3026fcb58 tcp4       0      0  10.147.204.10.40107 Continue reading →

#aix