Operating System - HP-UX
1833016 Members
2812 Online
110048 Solutions
New Discussion

determine what services using the particular port

 
SOLVED
Go to solution
Ricky_4
Frequent Advisor

determine what services using the particular port

Hi All,

We would like to determine what are daemon or services using this port 53336 as application developer and dba denied owning this port. As much as possible, we would like to limit the open port in prod.

We will highly apreciated your response.

Thanks.

Adriatico
3 REPLIES 3
Alex Glennie
Honored Contributor

Re: determine what services using the particular port

see http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.75/

fyi :

Additional lsof usage/syntax examples:
--------------------------------------
#lsof -nP -i tcp:512-1024 | wc -l
This will capture the TCP session in that port range and give the number.

#lsof -nP -i udp:512-1024 | wc -l
Does the same thing for UDP connections.

#lsof -nP -i tcp:842
Gives Specific Port information for tcp port 842.

#lsof -nP -i tcp:telnet
Gives Specific Port information for tcp telnet service.
Raj D.
Honored Contributor

Re: determine what services using the particular port

Hi Adriatico,

You can check for openports details with the help of lsof utility.

Here it is:

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.76/


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Sandman!
Honored Contributor
Solution

Re: determine what services using the particular port

Hi Adriatico...if you don't have lsof then you can verify with netstat as follows:

# netstat -an | awk 'z[split($4,z,".")]==53336'

cheers!