System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to check open ports/sockets on hp-ux

 
Viney Kumar
Regular Advisor

How to check open ports/sockets on hp-ux

How to check open ports/sockets on hp-ux
4 REPLIES
VK2COT
Honored Contributor

Re: How to check open ports/sockets on hp-ux

Hello,

One of many ways:

# netstat -an

Cheers,

VK2COT
VK2COT - Dusan Baljevic
Prashanth Waugh
Esteemed Contributor

Re: How to check open ports/sockets on hp-ux

Hi,
u can use the below command
netstat -na | grep -i listen
netstat -na | grep
To list all files using any protocol on ports 513
lsof -i :513
Regards
Prashant
For success, attitude is equally as important as ability
PAVIC Thierry
Frequent Advisor

Re: How to check open ports/sockets on hp-ux

You can install and use this tool : lsof

I use it for knowing what process use the port 2100

lsof -nP -i tcp:2100
Viney Kumar
Regular Advisor

Re: How to check open ports/sockets on hp-ux

thanks to all