- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Port Status
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
03-14-2003 12:30 AM
03-14-2003 12:30 AM
Port Status
Such as port.status port 184
Any input would be greatly appreciated
Regards,
Will
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2003 12:57 AM
03-14-2003 12:57 AM
Re: Port Status
try netstat -a
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2003 01:51 AM
03-14-2003 01:51 AM
Re: Port Status
my suggestion try:
netstat -a|grep 184
because the list from 'netstat -a' can be pretty long.
Best regards,
Kan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2003 02:14 AM
03-14-2003 02:14 AM
Re: Port Status
Port numbers are substituted with service names from /etc/services when you give netstat -a command. Therefore grep 184 will not work.
#netstat -an | grep 184
Will give the proper output
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2003 03:30 AM
03-14-2003 03:30 AM
Re: Port Status
like the others already have replied, netstat is the first tool of choice.
Just some minute supplement,
you can further narrow the dump by specifying if the local or remote port is meant you are interested in.
If it is a local server then you'd go for the 4th column
e.g.
netstat -an|awk '$4~/\.184$/'
or a remote listening socket
netstat -an|awk '$5~/\.184$/'
If you are only interested in internet sockets then you could narrow the dump by further supplying "-f inet" to netstat.
The sockets' states are displayed in the last column.
Apart from the ubiquitious netstat command the lsof tool has much more to offer, but is not shipped per default with HP-UX
If you compiled lsof from the source yourself or got hold of a binary you could do somethink like
lsof -i tcp:184
This will also list you the processes which use these sockets.
lsof has a myriad of options to show you far more than you ever dared to ask for.
Read the manpage of lsof
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2003 05:40 AM
03-14-2003 05:40 AM
Re: Port Status
All sockets or ports are open files. This makes it a candidate for the "..list open files..." command, lsof. Use:
lsof -U port