- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- services using one specific port
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2004 05:58 AM
07-05-2004 05:58 AM
I would like to know which services are using one especific port. I use netstat -na but i cant see the service name using this form. Some body knows how can i get that information?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2004 06:22 AM
07-05-2004 06:22 AM
Re: services using one specific port
A program does not need to have an entry in /etc/services in order to use a network port although it is considered good form to do so with well-known ports (ports less than 256) and strongly recommended for ports 256 to about 10,000.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2004 06:22 AM
07-05-2004 06:22 AM
Re: services using one specific port
A lot of port use is documented there.
There are other netstat command line options that might be helpful.
If however you are totally in the dark a sniffer can provide you a gui look at things on your box.
Here is a quite cool gui sniffer that can analyze all network traffic in X
http://hpux.connect.org.uk/hppd/hpux/Gtk/Applications/ethereal-0.9.15/
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2004 06:28 AM
07-05-2004 06:28 AM
Re: services using one specific port
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2004 06:33 AM
07-05-2004 06:33 AM
Re: services using one specific port
http://www.software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B9901AA
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2004 09:16 AM
07-05-2004 09:16 AM
Re: services using one specific port
16564/java
tcp 0 0 salato-apl17.grup:43536 salato-apl16.grupo:3060 ESTABLISHED 16564/java
tcp 0 0 salato-apl17.grup:43537 salato-apl16.grupo:3060 ESTABLISHED 16564/java
tcp 0 0 salato-apl17.grup:43538 salato-apl16.grupo:3060 ESTABLISHED 16564/java
tcp 0 0 salato-apl17.grup:43539 salato-apl16.grupo:3060 ESTABLISHED 16564/java
tcp 0 0 salato-apl17.grup:43544 salato-apl16.grupo:3060 ESTABLISHED 16564/java
tcp 0 0 salato-apl17.grup:43545 salato-apl16.grupo:3060 ESTABLISHED 16564/java
tcp 0 0 salato-apl17.grup:44558 salato-apl16.grupo:3060 ESTABLISHED -
Is there one similar command on HP-UX.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2004 10:23 AM
07-05-2004 10:23 AM
Solutionthe option -n to the command netstat avoid resolving ip and port into hostnames and services.
If you use only netstat -a, the system will try to resolve al the ip adress and tcp/udp ports
The option -n (no resolv) is valid with any other netstat option, like -r to see the routing table:
with netstat -rn you will see only info in numerical form
with netstat -r the system will try to resolv ip and network addresses.
Obviously the command is faster with the option -n
Hope this helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2004 12:11 PM
07-05-2004 12:11 PM
Re: services using one specific port
You can also use lsof.
This is not s standard feature of HP-UX so you will need to install it.
# lsof -i
# lsof -i :
lsof is much better than netstat for showing service names and port numbers.
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2004 02:26 AM
07-06-2004 02:26 AM
Re: services using one specific port
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2004 02:37 AM
07-06-2004 02:37 AM
Re: services using one specific port
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2004 02:37 AM
07-06-2004 02:37 AM
Re: services using one specific port
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2004 02:39 AM
07-06-2004 02:39 AM
Re: services using one specific port
http://hpux.ee.ualberta.ca/hppd/hpux/Sysadmin/lsof-4.71/
Rgds...Geoff