Operating System - HP-UX
1753882 Members
7588 Online
108809 Solutions
New Discussion юеВ

Re: Finding port number of a service

 
Raghvinder Sangwan
Occasional Contributor

Finding port number of a service

How can one get a list of all the services running on an hp-ux server along
with the port numbers they are using? I am aware that some information can be
obtained from /etc/services but what about services not listed in
/etc/services?

Thanks!
Raghu
3 REPLIES 3
Anthony Goonetilleke_1
Regular Advisor

Re: Finding port number of a service

Try netstat -a

regards,
AG
Kondala Raju
Advisor

Re: Finding port number of a service

Hi Raghu ,
In 10.x & 11.x you can use rpcinfo -p

good luck
Raghvinder Sangwan
Occasional Contributor

Re: Finding port number of a service

Hi Kondala:

rpcinfo would only list registered RPC services and not all services are RPC
services. Is there something that gives me a list of all the services (RPC and
non-RPC)?

Anthony in this thread discussion suggested netstat. While netstat gives me a
list of all the services along with the port numbers, the output from netstat
does not list the name of the service. Therefore, it is not obvious which
service is running on what port.

Thanks!
Raghu