- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Unknown process holds TCP/9000
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
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
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
05-07-2014 08:00 AM - last edited on 05-07-2014 06:40 PM by Maiko-I
05-07-2014 08:00 AM - last edited on 05-07-2014 06:40 PM by Maiko-I
Unknown process holds TCP/9000
Hello
Yet another topic on how to identify process, that binded specified port :)
netstat shows that port TCP/9000 is in LISTEN state (i can connect with telnet to it, but no banner shown):
root@srv:/ # netstat -an | grep 9000
tcp 0 0 *.9000 *.* LISTEN
root@srv:/ #
lsof says nothing:
root@srv:/ # lsof -i | grep 9000
root@srv:/ # lsof -nP -i tcp:9000
root@srv:/ #
And there are no such entries in /etc/services nor /etc/inetd.conf (i have tried to stop inetd too, port still binded):
root@srv:/ # grep 9000 /etc/inetd.conf
root@srv:/ # grep 9000 /etc/services
root@srv:/ #
PS. This is HP-UX 11i v3, September 2012 on pa-risc box.
P.S. This thread has been moved from HP-UX > System Administration to HP-UX > networking. - Hp Forum Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2014 02:57 PM
05-07-2014 02:57 PM
Re: Unknown process holds TCP/9000
I think your version of lsof may have a problem.
I was doing some testing on one of my servers.
See below:
# netstat -an | grep 2049
tcp 0 0 *.2049 *.* LISTEN
udp 0 0 *.2049 *.*
# lsof | grep 2049
# lsof -i tcp:2049
# lsof -i udp:2049
# lsof -i :2049
# lsof -v
lsof version information:
revision: 4.84
<...snip...>
I then researched to see if there is a newer version of lsof and there is. I downloaded and installed lsof version 4.87 from the HP-UX porting and archive centre ( http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.87/ ).
Now the results are:
# lsof -v
lsof version information:
revision: 4.87
<...snip...>
# lsof -i tcp:2049
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
nfsd 2407 root 6u IPv4 0x11873fdc00 0t0 TCP *:nfsd (LISTEN)
# lsof -i udp:2049
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
nfsd 2407 root 5u IPv4 0x11874bd100 0t0 UDP *:nfsd (Idle)
# lsof -i :2049
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
nfsd 2407 root 5u IPv4 0x11874bd100 0t0 UDP *:nfsd (Idle)
nfsd 2407 root 6u IPv4 0x11873fdc00 0t0 TCP *:nfsd (LISTEN)
So, you might consider installing a new version of lsof if yours is not 4.87 and then see what results you get. The install does NOT require a reboot of the server.
- Tags:
- lsof
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2014 11:29 PM - edited 05-07-2014 11:29 PM
05-07-2014 11:29 PM - edited 05-07-2014 11:29 PM
Re: Unknown process holds TCP/9000
Thank you for quick reply.
I have updated to lsof 4.87 and it works fine (previously i have version 4.82.001 from "HP-UX Internet Express for HP-UX 11i v3"). Sort of funny to see externals build works better then official :)
root@srv:/ # lsof -i tcp:9000
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
rpc.statd 1930 daemon 7u IPv4 0x12cb575780 0t0 TCP *:9000 (LISTEN)
Looks like the daemon was hanging because "/usr/sbin/rpc.statd stop" doesnt stop it at all.
After kill and restart via "/usr/sbin/rpc.statd start" it works fine