Operating System - HP-UX
1833877 Members
1897 Online
110063 Solutions
New Discussion

tcp connection to process relation.

 
SOLVED
Go to solution
Kishor Bagul
Occasional Contributor

tcp connection to process relation.

How do we related tcp connection detail found by netstat -an |grep 1101 to process associated with it.

Thnaks,
Chris
4 REPLIES 4
S.K. Chan
Honored Contributor

Re: tcp connection to process relation.

Mike Hassell
Respected Contributor
Solution

Re: tcp connection to process relation.

SST,

I'm not sure how this is possible using just 'netstat' in HP-UX, however downloading and installing 'lsof' will give you this information. You can download a copy here:

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

Once you have it installed, run the command and grep for that port and you should find the information you're after. It's a nice util and it comes in handy. Hope that helps.

-Mike
The network is the computer, yeah I stole it from Sun, so what?
Uday_S_Ankolekar
Honored Contributor

Re: tcp connection to process relation.

Hi,

Get lsof it's a good tool to have

Here is the link:

http://hpux.cs.utah.edu/hppd/


Good Luck..
Wodisch
Honored Contributor

Re: tcp connection to process relation.

Hello Chris,

use it like here:

lsof -i udp:161
lsof -i tcp:23

and you should see the processes using those ports (snmpdm, and inetd, on standard HP-UX).

HTH,
Wodisch