Operating System - HP-UX
1832951 Members
2743 Online
110048 Solutions
New Discussion

which port to which service

 
SOLVED
Go to solution
Erol KAHRAMAN
Advisor

which port to which service

hi,
i have a HP-UX(OS 11iv1) box.When i scanned my box i found that i have a lot of open ports.I checked my /etc/services file and found some of them, but there ara a couple of ports that i cannot found in file.
In linux command there is a command such as
"netstat -tulpn", which show the services ports. Is there any equivalent command in HP-UX ?

3 REPLIES 3
Ivan Krastev
Honored Contributor
Solution

Re: which port to which service

Try with lsof - http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.77/


lsof -i TCP|grep ":"



regards,
ivan
Ivan Krastev
Honored Contributor

Re: which port to which service

Erol KAHRAMAN
Advisor

Re: which port to which service

thx ivan,
lsof command is what i am looking for.