- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Which process is using which port
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-10-2007 06:52 AM
12-10-2007 06:52 AM
Which process is using which port
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2007 07:00 AM
12-10-2007 07:00 AM
Re: Which process is using which port
Best bet is to install lsof.
losf is found.
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.78/
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
12-10-2007 07:03 AM
12-10-2007 07:03 AM
Re: Which process is using which port
Lsof is usefull tool.
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.78/
# lsof -i tcp:4000
Regards,
Robvert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2007 08:03 AM
12-10-2007 08:03 AM
Re: Which process is using which port
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2007 08:10 AM
12-10-2007 08:10 AM
Re: Which process is using which port
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2007 08:14 AM
12-10-2007 08:14 AM
Re: Which process is using which port
You can try netstat, but there is a change netstat will only report that the port is in use.
# netstat -an | grep 4000
example below.
# netstat -an | grep 65154
tcp4 0 0 *.65154 *.* LISTEN
# lsof -i tcp:65154
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 430100 was 255u IPv4 0xf100020003cc3390 0t0 TCP *:65154 (LISTEN)
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2007 08:17 AM
12-10-2007 08:17 AM
Re: Which process is using which port
Example for port 2301:
# lsof -i :2301
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
smhstartd 2270 root 3u IPv4 0x2970880 0t0 TCP *:2301 (LISTEN)
Download and install this tool.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2007 10:30 AM
12-10-2007 10:30 AM
Re: Which process is using which port
1. Check the /etc/services file to see which for which service which port are used.
2. netstat -an|grep 4000
3. or you can do lsof.