- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Find process ID, using a port number in use
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
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
тАО08-28-2002 10:05 AM
тАО08-28-2002 10:05 AM
I am trying to find the process ID number and user details which use a particular port number. I found the port number in use using netstat -an
Now, I am trying to find which process is using the port number.
Can someone kindly guide me on this.
Regards and thanks in advance.
I shall update the points once i get the correct answer to all.
Anil
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2002 10:17 AM
тАО08-28-2002 10:17 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2002 10:21 AM
тАО08-28-2002 10:21 AM
Re: Find process ID, using a port number in use
The best tool for this is 'lsof'. For example, to find the process using port 161, do:
# lsof -i tcp:161
# lsof -i udp:161
If you don't have installed (usually in /opt), download it from here:
http://gatekeep.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.64/
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2002 10:22 AM
тАО08-28-2002 10:22 AM
Re: Find process ID, using a port number in use
You can make use of 'lsof' utility for doing all these functions. Get it from here, it's free:
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.64/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2002 10:23 AM
тАО08-28-2002 10:23 AM
Re: Find process ID, using a port number in use
You'll have to use the lsof utility & the command would be, I believe:
lsof -i TCP:port#
Of course substitute UDP if it's a UDP port.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2002 10:28 AM
тАО08-28-2002 10:28 AM
Re: Find process ID, using a port number in use
Hope you are happy with your points. I appreciate the help you guys provide.
Regards,
Anil