- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- port information
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
02-03-2005 07:35 PM
02-03-2005 07:35 PM
port information
One simple question (good points worth !!)
How can you determine what process is running on the HP-UX system on port "XYZ" ?
Ofcourse "netstat -a" will just tell you whether the port XYZ is in use.
Any ideas? Thanks a lot,
Jaideep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2005 07:37 PM
02-03-2005 07:37 PM
Re: port information
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.74/
This will give you this info...
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2005 08:11 PM
02-03-2005 08:11 PM
Re: port information
have a look at :
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=217798
rcpinfo gives some info, but the solution is lsof.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2005 11:14 PM
02-03-2005 11:14 PM
Re: port information
try this:
lsof -i |more
or
lsof -i |grep XYZ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2005 11:25 PM
02-03-2005 11:25 PM
Re: port information
Output will be:
snmpdm 960 root 7u inet 0x4361f240 0t0 UDP *:49160 (Idle)
mib2agt 982 root 0u inet 0x43590200 0t0 UDP *:* (Unbound)
dced 1029 root 5u inet 0x43590b00 0t0 TCP *:135 (LISTEN)
dced 1029 root 7u inet 0x43590e00 0t0 UDP *:135 (Idle)
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2005 02:39 AM
02-04-2005 02:39 AM
Re: port information
lsof = ls open files.
Also available on other OS's.
- Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2005 05:42 PM
02-05-2005 05:42 PM
Re: port information
I tried installing this software (root) after downloading it from
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.74/
Below is the outcome........ I repeated the procedure for 4.73 verison as well..... same was the outcome.....
Any inputs on the (below) failure ?
Are there any other sites from where the Depots could be downloaded?
Thanks, Jaideep.
===============================================================
swinstall -s /opt/MY_DOWNLOADS/lsof-4.74-sd-11.11.depot lsof
================================================================
* Summary of Analysis Phase:
* 1 of 1 filesets had no Errors or Warnings.
* The Analysis Phase succeeded.
* Beginning the Install Execution Phase.
* Filesets: 1
* Files: 4
* Kbytes: 224
* Installing fileset "lsof.lsof-RUN,r=4.74" (1 of 1).
ERROR: Unknown owner and/or group for file "/usr/local/bin/lsof".
SUID and/or SGID bit was not set.
ERROR: Failed installing fileset "lsof.lsof-RUN,r=4.74". Check the
above output for details.
* Running install clean command /usr/lbin/sw/install_clean.
NOTE: tlinstall is searching filesystem - please be patient
NOTE: Successfully completed
* Beginning the Configure Execution Phase.
* Summary of Execution Phase:
ERROR: Corrupt lsof.lsof-RUN,r=4.74
ERROR: 1 of 1 filesets had Errors.
ERROR: The Execution Phase had errors. See the above output for
details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2005 08:13 PM
02-05-2005 08:13 PM
Re: port information
If this is the case, you could try installing the same depot twice as a workaround: on the first try it goes to "corrupt" state, but on the next try it will succeed because the group was already created.
You could also take the lsof source package and compile it: lsof does not need ANSI-C compiler, the HP-UX default cc (which is used to rebuild the kernel) is sufficient.
The best way to use lsof to identify a process running on network port XYZ would be to run:
lsof -i tcp:XYZ
or
lsof -i udp:XYZ
depending on whether the process is using TCP or UDP protocol.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2005 07:00 PM
02-06-2005 07:00 PM
Re: port information
I am however hitting a core dump when executing the binary (lsof).
Looks like the binary itself is corrupt.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2005 07:55 PM
02-06-2005 07:55 PM
Re: port information
The binary format can be checked, if it actually is for HPUX, with file.
file lsof
Will give you output of what type of binary and some more details.
Regards,
Bob