The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to find the port number of the oracle process thana UNIX for Dummies Questions & Answers 2 03-21-2008 04:14 PM
Need to know port number shaan_dmp UNIX for Dummies Questions & Answers 1 10-26-2007 12:38 PM
port number as an argument saikiran Shell Programming and Scripting 1 08-31-2006 07:57 AM
FTP Port Number mbb UNIX for Advanced & Expert Users 2 04-22-2004 04:27 AM
get number of a port hoang Security 2 05-08-2002 05:08 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-28-2007
Registered User
 

Join Date: Dec 2007
Posts: 3
Thumbs down To find pid from port number

Hi,

I am working on HP-UX Release 11i.

I want to find the process id (PID) of the process running on a particular port.

lsof command fuser does not work on this system.

Please suggest some alternative.

Thanks
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 12-28-2007
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,356
lsof and fuser are two different commands. I have used them both on 11i. lsof can do want you want and it is what I would use.
Reply With Quote
  #3 (permalink)  
Old 12-30-2007
Registered User
 

Join Date: Dec 2007
Posts: 3
lsof not working

Hi,
Thanks for reply.
I tried lsof but it says "lsof: not found"

Plz suggest some alternative..
Reply With Quote
  #4 (permalink)  
Old 12-30-2007
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,356
lsof doesn't come with the os. You need to install it.
link: lsof-4.78
Reply With Quote
  #5 (permalink)  
Old 12-30-2007
Registered User
 

Join Date: Sep 2006
Posts: 1,449
you got to install it then. have you tried fuser? I doubt your version of netstat is able to show PID linked to a port number, but you may want to check your netstat man page anyway.
Reply With Quote
  #6 (permalink)  
Old 12-30-2007
Registered User
 

Join Date: Dec 2007
Posts: 3
Yup, netstat has -b option for this purpose but does not work on this machine.

fuser asks for a file name and I don't know how to use it for this purpose.
Is there any other way I can get it without installing any command i.e. with existing commands on Version 11i
Reply With Quote
  #7 (permalink)  
Old 12-31-2007
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,356
The HP-UX netstat man page has no mention of a -b option. I don't know of any standard HP-UX program that can do this.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:20 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0