Hi All,
I am using netstat on AIX to grep info on all open connections. However, unlike on Linux(Centos), I do not get the PID and program name using netstat on AIX.
I need this info to be clubbed along with the information retrieved using netstat version of AIX. Is there a way this can be accomplished in AIX?
You will need to use a tool like lsof to see which processes have the port open.
You can get lsof
by searching openly on the internet.
The command will be something like:-
lsof -i tcp:port
...where you insert or loop round the ports you need. There may be quite a bit of output but enough to trace back the PID and therefore the command.
Robin