- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Finding Open ports
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
12-13-2007 11:46 PM
12-13-2007 11:46 PM
Finding Open ports
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2007 12:30 AM
12-14-2007 12:30 AM
Re: Finding Open ports
You can get lsof from:
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.78/
You can also use the 'netstat' command to see what is listening.
A 'netstat -a' will show a lot of network information. Have a look at 'man netstat' for more information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2007 12:41 AM
12-14-2007 12:41 AM
Re: Finding Open ports
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2007 12:53 AM
12-14-2007 12:53 AM
Re: Finding Open ports
I suppose there is no command which could give u a list of open and used port.
Br,
Kapil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2007 01:06 AM
12-14-2007 01:06 AM
Re: Finding Open ports
-----------------
There are lot many tools like nmap and satan..which could give you the ports opened from your machine to the server.(It may be illegal to use in your country may be) but They are widely used in network scanning for open ports. ( Blackheads may call it back door;) )
If that is not what you need you can still use the lsof with decent combination of UNIX supplied commands (grep, netstat)on the server itself. Combining options available in UNIX doesn't deface the value of a particular utility or command.It increases the power, thats why i love UNIX....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2007 02:08 AM
12-14-2007 02:08 AM
Re: Finding Open ports
One of the most versatile is nmap
which you can use if you not only want to check from a different host which ports are serviced by your host, but also which are open or closed (but reachable), viz. not filtered by a firewall.
nmap can also perform many sorts of stealth scans, or even scans that pretend to be coming from a different host (idle scan) which could be helpful in tricking some state inspecting firewalls or intrusion detection systems.
Where nmap lacks a bit however, sometimes can be where UDP port scans are of interest because it might not be able to tell whether a UDP port really is open or filtered.
For determining a real open UDP port the scanner would have to send a valid UDP datagram for the particular UDP service which would require knowledge of too many protocols at application layer, and catch a response datagram.
But there are other port scanners that partly cover this for the more general services that use UDP.
If you are only interested to quickly check on your host locally ports that service, the netstat command is more than sufficient
e.g.
$ netstat -an|awk '$NF~/LISTEN/{print a[split($4,a,".")]}'|sort -n