How to check process ID from netstat? | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

How to check process ID from netstat?

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 11-01-2006
KhawHL KhawHL is offline
Registered User
 
Join Date: May 2003
Last Activity: 19 August 2014, 9:11 PM EDT
Posts: 67
Thanks: 2
Thanked 0 Times in 0 Posts
How to check process ID from netstat?

OS: Sun Solaris

How to know which process id from netstat command?

Thank you.
Sponsored Links
    #2  
Old 11-01-2006
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
AFK
 
Join Date: Dec 2004
Last Activity: 28 July 2014, 9:39 AM EDT
Location: UK
Posts: 2,351
Thanks: 0
Thanked 6 Times in 6 Posts
You can't. If you want to know the process id that is using a particular port, use lsof.
Sponsored Links
    #3  
Old 11-01-2006
nibiru78 nibiru78 is offline
Registered User
 
Join Date: Jun 2006
Last Activity: 27 December 2011, 8:06 AM EST
Location: Üsküdar
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
[
you can use ps -ef PID not netstat command
but netsat -an is useful command for detail inf. about port status etc.
Ali
QUOTE=KhawHL]OS: Sun Solaris

How to know which process id from netstat command?

Thank you.[/QUOTE]
    #4  
Old 04-15-2009
seanovision seanovision is offline
Registered User
 
Join Date: Aug 2008
Last Activity: 15 April 2009, 5:11 PM EDT
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
I think I'm running into the same situation as KhawHL. I need to tie a port number that a process is listening on and identify that process.

netstat gives me ports that it's listening on, and I see suspicious ports.

ps -ef gives me process names and their PIDs.

lsof doesn't work on Sol9.

Is there another way to map a PID to port on Sol9?
Sponsored Links
Closed Thread

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
Check process kanexxx Shell Programming and Scripting 1 04-20-2009 06:25 AM
Check process in AIX lweegp UNIX for Dummies Questions & Answers 2 03-13-2006 10:31 PM
Check the process ust UNIX for Dummies Questions & Answers 1 03-01-2006 09:44 AM
check the process ust Shell Programming and Scripting 2 02-02-2006 01:07 PM
process check k@ssidy UNIX for Dummies Questions & Answers 13 06-17-2005 03:43 PM



All times are GMT -4. The time now is 05:44 AM.