Wednesday, 8 January 2014

Find executable and process ID from port number

To find out what process/executable is using a port on AIX:



lsof -i :1527

COMMAND      PID   USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME

tnslsnr 11534508 oradep   12u  IPv4 0xf1000e0014b5dbb8      0t0  TCP hdep001a:tl isrv (LISTEN)


ps -ef  |grep 11534508

oradep 11534508        1   0   Feb 04      -  0:09 /oracle/DEP/102_64/bin/tnslsnr LISTENER_DEP -inherit