Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users


UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-10-2004
Registered User
 
Join Date: Feb 2004
Location: Tokyo
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
finding a process running on a port

how do I find the process that is running on a port in HP-Unix?

Murali
Sponsored Links
    #2  
Old 02-10-2004
davidg's Avatar
Registered User
 
Join Date: Jul 2003
Location: Holland
Posts: 207
Thanks: 0
Thanked 1 Time in 1 Post
netstat -a
Sponsored Links
    #3  
Old 02-10-2004
Perderabo's Avatar
Unix Daemon (Adminstrator Emeritus)
 
Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,692
Thanks: 27
Thanked 293 Times in 168 Posts
netstat -a won't identify the process. For that you need lsof -i.
    #4  
Old 02-10-2004
Registered User
 
Join Date: Feb 2004
Location: Tokyo
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,

But i don't think we have lsof on HP. As far as my knowledge goes it is there on Solaris only. Is that right dude?

Murali
Sponsored Links
    #5  
Old 02-10-2004
Perderabo's Avatar
Unix Daemon (Adminstrator Emeritus)
 
Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,692
Thanks: 27
Thanked 293 Times in 168 Posts
Funny you should ask. I was the first person to port lsof to HP-UX.... but that was HP-UX 3.1. lsof has been available for every version of HP-UX since then.

Actually, lsof is available for virtually every version of unix.

You can get lsof for HP-UX at The HP-UX Porting and Archive Centre
Sponsored Links
    #6  
Old 02-11-2004
davidg's Avatar
Registered User
 
Join Date: Jul 2003
Location: Holland
Posts: 207
Thanks: 0
Thanked 1 Time in 1 Post
Uuuh, mister Manduva.

Perderabo is not a "Dude", but as he shows a master.
Try to be polite and respectfull.

Thanks Perderabo.
netstat -a does show you the process where you can grep for using ps. Indeed lsof is much more suited for this job.

Regs David
Sponsored Links
    #7  
Old 02-11-2004
Perderabo's Avatar
Unix Daemon (Adminstrator Emeritus)
 
Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,692
Thanks: 27
Thanked 293 Times in 168 Posts
Actually, I sometimes use "dude" myself. I doubt that it was intended as an insult or anything.

But you'l have to help me out with your use of netstat. How do you reach the pid starting from the output of netstat?
Sponsored Links
Closed Thread

Tags
solaris

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Process running on which port amity AIX 0 09-19-2011 02:51 AM
Process running on which port amity Solaris 1 09-19-2011 02:24 AM
script to monitor process running on server and posting a mail if any process is dead pradeepmacha Shell Programming and Scripting 13 03-06-2009 06:33 AM
Finding port number !! kumarmani Solaris 11 10-08-2008 05:32 AM
finding port numbers darkcastle IP Networking 3 03-27-2004 02:19 AM



All times are GMT -4. The time now is 07:56 AM.