Operating System - HP-UX
1832574 Members
6275 Online
110043 Solutions
New Discussion

Re: finding which process sends a data to port number

 
Sup
Advisor

finding which process sends a data to port number

Hi,

Configured Inetd to start a program called statClient using port number 5281. Only one process called sendTOClient suppose send request to port number 5281. My from startClient log, It looks like some other applications sending some data to 5281. Is there command or tool to find out which process ( process name ) who sends request to 5281. Already tried netsta command.

Thanx in Advance


2 REPLIES 2
James R. Ferguson
Acclaimed Contributor

Re: finding which process sends a data to port number

Hi:

Probably your best method (easist) is to use 'lsof' for example:

# lsof -i tcp:161
# lsof -i udp:161

If you don't haqve 'lsof', download it from the Porting Archives.

Regards!

...JRF...
Stefan Farrelly
Honored Contributor

Re: finding which process sends a data to port number

you want lsof. You can use it to search by port number and it will show all processes using it.

you can download from;

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.64/
Im from Palmerston North, New Zealand, but somehow ended up in London...