Operating System - HP-UX
1822227 Members
3743 Online
109642 Solutions
New Discussion юеВ

display processes listening on the ports

 
SOLVED
Go to solution
Victor Lin Qiang
New Member

display processes listening on the ports

Hello everyone,

Does anyone know a trick to find out which processes are listening on certain ports?

Regular netstat lists many listening ports as
tcp 0 0 localhost. *.* LISTEN
or
tcp 0 0 *. *.* LISTEN
But the processes info is not available.

On Linux, I could use 'netstat -p' (or command lsof). On Windows, I could use 'netstat -a -b'. Is there a way to display the process info on HP-UX? Or is there another command to retrieve similar information? Thank you in advance!

Best regards,
Victor
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor
Solution

Re: display processes listening on the ports

Hi Victor:

Download 'lsof' :

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

Regards!

...JRF...
Torsten.
Acclaimed Contributor

Re: display processes listening on the ports

If you already know about lsof, why not using it?

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.81/

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Patrick Wallek
Honored Contributor

Re: display processes listening on the ports

Have a look at 'lsof'. If you don't have it, download and install it.

Say you want to look for something on TCP port 1234.

# lsof -i tcp:1234