- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Ports in listening mode
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
09-23-2010 05:52 PM
09-23-2010 05:52 PM
Ports in listening mode
Guys
What's the easiest way to identify if a port on our unix box is in listening mode or not ?
I'm trying to identify if tsm ports ie 1500 to 1516 are in listening or not ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2010 05:56 PM
09-23-2010 05:56 PM
Re: Ports in listening mode
By the way im trying to use netstat -an|grep 1516 but nothing displays, and more importanly which bits tells u if it's listening ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2010 06:15 PM
09-23-2010 06:15 PM
Re: Ports in listening mode
#telnet IP 1516
You can see if its listening else connection refused.
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2010 06:26 PM
09-23-2010 06:26 PM
Re: Ports in listening mode
netstat -an|grep LISTEN|grep \.15..
(Note the two training "." characters)
Run this on the server where you expect the process to be listening. If you get nothing then there is no process currently listening on a port in that range.
If you have lsof you can run:
lsof -i:1500-1516
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2010 09:51 PM
09-24-2010 09:51 PM
Re: Ports in listening mode
Sory for the late reply as I was away in remote location.
Thanks guys, appreciate your prompt help.
I knew telnet to port one but I wasn't quite
sure about netstat one which Jim has clarified.
Many Thanks again..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2010 04:07 AM
09-25-2010 04:07 AM
Re: Ports in listening mode
If you are curious, what process is listening on that port, you can use lsof to check it:
# lsof -i :1500
lsof is an extra tool, you should install it separately. You can download the HP-UX version of it from the porting center:
http://hpux.ewi.tudelft.nl/
Only a short supplement: if you would be on linux, there's no need for "grep -i listen", there is a -l switch for netstat...
Regards,
Viktor
Unix operates with beer.