[lug] hung port

Duncan McGreggor duncan at adytumsolutions.com
Tue Oct 19 13:57:04 MDT 2004


On Oct 19, 2004, at 3:45 PM, Jason Davis wrote:

>> netstat -pn|grep 80
>> lsof -i|grep http
>>
>> There is an open port with no process associated with it. Does anyone
>> know how to close an orphan port without rebooting the server?
>
> bring the ethernet down?

Unfortunately, it's a remote server, and I don't have remote console 
access. For fear of client down-time, I had to do a reboot :-(

However, in the post-aftermath calm, I looked at man netstat again and 
saw the -e and -ee options. Here's a sample:

netstat -nlpee --inet
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         
State       User       Inode      PID/Program name
tcp        0      0 10.175.255.131:80       0.0.0.0:*               
LISTEN      0          10628278   23103/httpd2-prefor
tcp        0      0 127.0.0.1:25            0.0.0.0:*               
LISTEN      0          6297       3504/master
udp        0      0 10.175.255.131:9996     0.0.0.0:*                   
         0          10655712   3878/flow-capture
udp        0      0 10.175.255.131:123      0.0.0.0:*                   
         0          10451502   32353/ntpd
raw        0      0 0.0.0.0:1               0.0.0.0:*               7   
         0          10484332   16123/ping
raw        0      0 0.0.0.0:1               0.0.0.0:*               7   
         0          10448025   30611/ping

Caveat: I know nothing about sockets...

So, I wonder if there was an inode associated with that hung port (I 
would assume yes, but then I would have assumed there was also a 
process associated with it) and, if so, how that could have helped...

Anyone have any experience digging around with sockets like this?

d




More information about the LUG mailing list