Operating System - HP-UX
1753325 Members
4946 Online
108792 Solutions
New Discussion юеВ

Re: How to find port number used by a particular process

 
SOLVED
Go to solution
boomerang
Frequent Advisor

How to find port number used by a particular process

Hi Gurus,

I am new to HP-UX, can any one help me to get a HP-UX command which can be used instead of "lsof" of solaris.

Requirement: I need to find the port number used by a particular process in HP-UX
4 REPLIES 4
Dennis Handly
Acclaimed Contributor

Re: How to find port number used by a particular process

>help me to get a HP-UX command which can be used instead of "lsof" of solaris.

lsof is the correct command. You will need to download it from:
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.82/
Steven E. Protter
Exalted Contributor
Solution

Re: How to find port number used by a particular process

Shalom,

lsof is the tool of choice.

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

Pay attention to the install log. Often this utility requires a permission change to work. I have had better luck compiling lsof than using depots.

netstat has some not straightforward options for finding this out but lsof is better.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
boomerang
Frequent Advisor

Re: How to find port number used by a particular process

Dennis,

Thanks for your fast response.any other alternative methods to check the same.
boomerang
Frequent Advisor

Re: How to find port number used by a particular process

Doubt clarified