HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- port useage hpux 11i
Operating System - HP-UX
1836534
Members
4324
Online
110102
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-17-2006 03:20 AM
03-17-2006 03:20 AM
i'm trying to find what application is using a specific port. I see references to a command 'lsof' but this command doesn't work on my hp ux11i box(pa risc 64). I tried the netstat -an|grep 3938 but that just told me it was in use.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2006 03:25 AM
03-17-2006 03:25 AM
Solution
You can try downloading the source code for lsof and/or a copy of the pre-compiled binary from here:
http://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/
http://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/
Remember, wherever you go, there you are...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2006 03:41 AM
03-17-2006 03:41 AM
Re: port useage hpux 11i
when you say "it doesn't work" do you mean you can't find it? You might try this link and download the binary, unzip it, and put in in your path like /usr/sbin or /usr/local/sbin.
http://ftp.br.xemacs.org/pub/unix-tools/lsof/binaries/hpux/
http://ftp.br.xemacs.org/pub/unix-tools/lsof/binaries/hpux/
If it has wheels or a skirt, you can't afford it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2006 04:31 AM
03-17-2006 04:31 AM
Re: port useage hpux 11i
Hi Donald,
netstat -an will give you the port usage also, however it could be listing a port on a remote system also. You need to be specific on your filtering criteria i.e.
# netstat -an | awk '{if(z[split($4,z,".")]==3938) print $0}'
...the awk construct splits $4 (Local Address) and compares the port no. to the last split-field. Or use lsof, downloading it from http://hpux.cs.utah.edu/, as:
# lsof -i:3938
the benefit of lsof is that it gives the process that's listening/bound to that port.
hope it helps!
netstat -an will give you the port usage also, however it could be listing a port on a remote system also. You need to be specific on your filtering criteria i.e.
# netstat -an | awk '{if(z[split($4,z,".")]==3938) print $0}'
...the awk construct splits $4 (Local Address) and compares the port no. to the last split-field. Or use lsof, downloading it from http://hpux.cs.utah.edu/, as:
# lsof -i:3938
the benefit of lsof is that it gives the process that's listening/bound to that port.
hope it helps!
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP