This widget could not be displayed.
Operating System - HP-UX
1845519 Members
3641 Online
110244 Solutions
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
New Discussion
This widget could not be displayed.
This widget could not be displayed.

Which process-id belongs to a tcp or udp port

 
SOLVED
Go to solution

Which process-id belongs to a tcp or udp port

Hello,

can i find on HP-UX 11.0 which process-id belongs to a specific tcp or ucp port connection, which i see with netstat -an

Berthold
2 REPLIES 2
Robert-Jan Goossens
Honored Contributor
Solution

Re: Which process-id belongs to a tcp or udp port

Hi Berthold,

You can with lsof.

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.77/

example
# lsof -i tcp:513
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
inetd 982 root 9u inet 0x41e6a068 0t0 TCP *:login (LISTEN)
rlogind 9229 root 0u inet 0x4201e868 0t2665 TCP db001:login->daf68.pg)

Regards,
Robert-Jan
Arunvijai_4
Honored Contributor

Re: Which process-id belongs to a tcp or udp port

Hi,

You can do with "lsof". Download and install from,

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.77/

After installing, do a "man lsof" for more details.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"