- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: To find what ports are used
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
Discussions
Discussions
Forums
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
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
тАО02-22-2004 03:42 AM
тАО02-22-2004 03:42 AM
Where are the ports to be used defined in the system. specially for the OS.
best regards
Faizer
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2004 03:56 AM
тАО02-22-2004 03:56 AM
Solution/etc/services is a file that will have the ports defined in it. But there is no guarantee that it will have all the ports. It is a good practice to add the ports in it but many times applications do not follow it.
You can find all the TCP ports opened on the system using "netstat -an |grep "LISTEN"" command. Without 'n' the above command will display the names of the ports as defined in /etc/services file. inetd brokers quiet a few Operating System services. You can turn them off in /etc/inetd.conf. You will need to restart inetd with {inetd -c} to get them into affect. The inetd services that you cannot turn off can be restricted using /var/adm/inetd.sec file. It is a good idea to replace standard telnet/ftp/remsh/rcp commands with ssh/scp/sftp that you can download from software.hp.com site.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2004 08:47 AM
тАО02-22-2004 08:47 AM
Re: To find what ports are used
While this may seem drastic, the majority of services are archaic legacy services and should only be enabled when a specific need is determined for the protocol. Now turning off everything means that telnet and ftp are disabled...you'll only be able to communicate with the system through the console and serial or modem ports. So you may wish to turn on telnet for now. However, the better solution os Secure Shell or ssh protocol to replace telnet. To completely replace telnet, you'll need ssh clients for PCs and other platforms to communicate with your HP-UX box.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2004 09:37 AM
тАО02-22-2004 09:37 AM
Re: To find what ports are used
Does not document it anywhere. Makes no note or reserveration in /etc/services
netstat -an or -rn will give you idea whats in use.
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.70/
lsof will let you look harder but you'll need to manuall set suid on the binary after seeing an install error.
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
тАО02-22-2004 10:19 PM
тАО02-22-2004 10:19 PM
Re: To find what ports are used
the Registered Ports, and the Dynamic and/or Private Ports.
The Well Known Ports are those from 0 through 1023.
The Registered Ports are those from 1024 through 49151
The Dynamic and/or Private Ports are those from 49152 through 65535
For more info on these ports, see http://www.iana.org/assignments/port-numbers
Berlene
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2004 10:23 PM
тАО02-22-2004 10:23 PM
Re: To find what ports are used
on HP-UX:
# netstat -an
for used ports
/etc/services
for port definition about all applications
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2004 08:54 AM
тАО02-24-2004 08:54 AM
Re: To find what ports are used
Now, to answer the question you actually asked, see the HP-UX Networking Ports Reference Guide here:
http://docs.hp.com/hpux/onlinedocs/5187-4242/5187-4242.html
Hope that helps.
Also, please don't forget to assign points to the folks who have been helpful to you.
-Keith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2004 01:46 AM
тАО02-25-2004 01:46 AM
Re: To find what ports are used
To check which are the listening ports currently on your server:
# netstat -an | grep LISTEN
For defining ports,
# vi /etc/services
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2004 01:56 AM
тАО02-25-2004 01:56 AM
Re: To find what ports are used
#netstat -an
/etc/services file will be containing list of ports and services which uses those ports
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2004 09:17 PM
тАО02-27-2004 09:17 PM
Re: To find what ports are used
I am unable to find the documnet at this link
http://docs.hp.com/hpux/onlinedocs/5187-4242/5187-4242.html