- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- port number
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
10-27-2005 06:31 PM
10-27-2005 06:31 PM
Is there any command or anyway for getting the port number of HP-UX11i server?Please help me out.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2005 06:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2005 06:36 PM
10-27-2005 06:36 PM
Re: port number
do u mean ports of services, e.g. telnet ftp, http, e.g? if so, please refer to /etc/services for the standard ports.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2005 06:37 PM
10-27-2005 06:37 PM
Re: port number
# netstat -an|grep -i listen
# netstat -an|grep -i estab
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2005 06:37 PM
10-27-2005 06:37 PM
Re: port number
lsof -i tcp
lsof -i udp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2005 06:41 PM
10-27-2005 06:41 PM
Re: port number
HAve a look at:
/etc/services
/etc/protocols
# netstat -a
# rpcinfo
# man services
# man protocols
That should help.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2005 06:42 PM
10-27-2005 06:42 PM
Re: port number
Check this file : /etc/services
This is a file for all registered port in HP-UX, the one with mark means the port is blocked and the one with unmark means the port is used as per normal.
More details, check the man page :
# man services
Hope this information can help you.
Cheers,
AW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2005 06:50 PM
10-27-2005 06:50 PM
Re: port number
netstat -an
If the ports are shown in names you can find them in /etc/services.
Here is the link for lsof
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.76/
lsof -i tcp
lsof -i udp
Regards,
Borislav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2005 08:35 PM
10-27-2005 08:35 PM
Re: port number
Following link gives a list of ports on any unix machines;
http://www.iana.org/assignments/port-numbers
This holds good for HP-UX as well. So look at this link to find all port numbers and relavant services.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2005 09:02 PM
10-27-2005 09:02 PM
Re: port number
You have the answers to your request now, I would just add /etc/services is a valid source only if the Sysadm has kept it up to date...
So dont trust only this file but double check with netstat and lsof...
And if you add new services, dont forget to update /etc/services.
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2005 05:22 PM
10-28-2005 05:22 PM
Re: port number
It depends on what ports the various listener are looking for. /etc/services is a nice way for us humans to put name to number.
If I understand your question. I would suggest that you look at port scanner like nmap
http://www.insecure.org/nmap/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2005 05:04 AM
10-29-2005 05:04 AM
Re: port number
1) /etc/services
2) netstat -na
3) lsof
-Arun