netstat -nap acting weird
I use netstat a lot. Sometimes I have noticed when I run...
netstat -nap | grep ESTAB it doesn't show the program name at the very end of each line. Like normally I see httpd or qmail-remote or some other command name that is involved with the established connection. Lately it's been just showing a single dash. Any idea what that's about? Machine in question is running FC1. I tried restarting those processes, but it doesn't help. Haven't tried rebooting the system yet because I'm waiting on my traffic to die down a little before I put-off a bunch of people. But I'm pretty sure a reboot will fix it, as I seem to recall that working for me in the past. Any idea what causes that? Maybe another forum or mailing list where I can ask? Is there a mailing list for the maintainers of netstat? |
Perhaps you are not running netstat as root.
|
No, I'm usually always running as root.
Just to be sure, I logged completely out and logged back in as root and it's still doing it. |
More on this problem.... I thought this was never going to happen again, but I just noticed something.... It started happening again right when the month rolled over. Now all my programs are listed as dashes. It was working fine a couple of hours ago, but now the first of the month has just rolled over on the clock and it's doing it again.
Any ideas why? I looked at my cron stuff, but none of them were set to go off at midnight. Maybe it has something to do with the clock somehow. |
Here is a snapshot from my netstat -nap listing , as non-root and as root.
Code:
|
Right. But I'm always running as root. Always. I never use su or sudo or anything. I authenticate using RSA private keys under SSH2.
What I actually am doing is using the following command... watch 'netstat -nap | grep EST' Which displays a continuous feed of netstat output that I can use to watch connections come and go. Right after midnight... poof.... it looks like this... Code:
Every 2s: netstat -nap | grep EST | egrep -v "sshd|smbd|:22" Wed Sep 1 23:14:29 2004 |
All times are GMT -5. The time now is 12:41 PM. |