- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to find which porcess is 'listening' on certai...
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
тАО09-02-2002 08:15 PM
тАО09-02-2002 08:15 PM
when I do 'netstat -a' I get the following output for a port (7500)
tcp4 0 0 *.7500 *.* LISTEN
I want to know which process is listening on this port. I don't get any conclusive report from 'ps -ef'.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-02-2002 08:24 PM
тАО09-02-2002 08:24 PM
SolutionYou can use 'lsof' and can be downloaded in
http://hpux.cs.utah.edu/
e.g. lsof -i tcp:7500
and then it will give you the process id that listening on this port
Hope this help !
Regards,
Patrick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-02-2002 08:24 PM
тАО09-02-2002 08:24 PM
Re: How to find which porcess is 'listening' on certain port
lsof is useful in this case. search forums for lsof, u will find lot of answers.
#lsof -i:7500
will list all the processes which use this port.
regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2002 02:13 AM
тАО09-03-2002 02:13 AM
Re: How to find which porcess is 'listening' on certain port
Thanks. Juanma.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2002 02:37 AM
тАО09-03-2002 02:37 AM
Re: How to find which porcess is 'listening' on certain port
iam attaching lsof binary. unshar it (sh lsof64.shar) and use it. it generates one execuatable and man page. hope it will be useful.
regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2002 02:45 AM
тАО09-03-2002 02:45 AM
Re: How to find which porcess is 'listening' on certain port
AMOD.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2002 03:11 AM
тАО09-03-2002 03:11 AM
Re: How to find which porcess is 'listening' on certain port
lsof should work!
E.g.
============================================================
$ /home/lsof -i:1521
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
oracle 19677 ias902 14u inet 0x4a997380 0t6924 TCP myserver.home.mu:49870->slx
2.cmt.mu:1521 (ESTABLISHED)
tnslsnr 19702 ias902 8u inet 0x4a427b40 0t0 TCP *:1521 (LISTEN)
tnslsnr 19702 ias902 9u inet 0x4abd8980 0t6924 TCP myserver.home.mu:1521->slx2
.cmt.mu:49870 (ESTABLISHED)
$ pwd
============================================================
I downloaded the source and compiled it on my HP-UX 11.11. It is working fine ;)
Hope this helps!
Best Regards
yogeeraj