- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- port related information
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
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
06-12-2005 11:51 AM
06-12-2005 11:51 AM
I know hpux keeps port related information in /etc/services file.
Is there any other place where port related information are stored on hpux11i ?
Thanks in advance!
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2005 12:15 PM
06-12-2005 12:15 PM
SolutionSome applications listen on specific ports when they are started (Apache is an example) and don't have /etc/services entries. The Apache port information is kept in httpd.conf. Each application could have something in its own configuration file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2005 12:30 AM
06-13-2005 12:30 AM
Re: port related information
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2005 01:41 AM
06-13-2005 01:41 AM
Re: port related information
So, if you run:
# lsof -i | grep LISTEN
you will get a list of all the TCP ports all processes on your server are currently listening to. Output will be something like this:
inetd 1255 root 5u inet 0x434364c0 0t0 TCP *:ftp (LISTEN)
inetd 1255 root 6u inet 0x43436640 0t0 TCP *:telnet (LISTEN)
itaagtd 1762 root 4u inet 0x43a256c0 0t0 TCP *:5052 (LISTEN)
diaglogd 19958 root 1u inet 0x540e5940 0t0 TCP *:62742 (LISTEN)
memlogd 19959 root 0u inet 0xcd846e80 0t0 TCP *:62745 (LISTEN)
Can be a very useful tool for this sort of thing. You can download it for free from here:
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.74/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2005 01:52 AM
06-13-2005 01:52 AM
Re: port related information
As mentioned, get the lsof tool. This can provide much information as to port usage.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2005 12:11 AM
06-14-2005 12:11 AM
Re: port related information
Lots of apps have their own configuration (or command-line option) which port is used for what, either with the direct port number or with the name as defined in /etc/services (like inetd / xinetd).
In the end, use `netstat -a` to list the active usage.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2005 07:15 AM
06-14-2005 07:15 AM
Re: port related information
In replies u can find lsof & netstat as well as
protocals information also find by
#netstat -s