Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How Identify processID using a specific port?

Status
Not open for further replies.

grodriguezma

IS-IT--Management
Apr 1, 2005
9
ES
Can anyone tell me a way to identify which processID is using a specific port in Solaris 5.8?
Thanks in Advance.
 
Thanks for info KenCunningham,
I'll check script mentioned.

Really, I'm searching for a tool similar to 'netstat' but including processID even if socket is in time-wait state.
Through 'lsof' command, I'm able to identify processID per port, but only for state 'established'.
regards
 
Try useing lsof command that lists pid and port info.
lsof -i -y > Somefile.
 
Thanks vptl for your help,
(even though my 'lsof' rejects '-y' option, output info is enough in any case).
regards,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top