LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 07-20-2004, 11:16 PM   #1
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
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?
 
Old 07-20-2004, 11:56 PM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 47
Perhaps you are not running netstat as root.
 
Old 07-21-2004, 12:08 AM   #3
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Original Poster
Rep: Reputation: 31
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.
 
Old 09-01-2004, 01:17 AM   #4
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Original Poster
Rep: Reputation: 31
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.
 
Old 09-01-2004, 11:48 PM   #5
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 47
Here is a snapshot from my netstat -nap listing , as non-root and as root.
Code:
as nonroot
<snip>
udp        0      0 0.0.0.0:631             0.0.0.0:*                           -                   
<snip>
unix  3      [ ]         STREAM     CONNECTED     167004 -                   
unix  5      [ ]         STREAM     CONNECTED     167010 -                   /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     166983 -                   
<snip>
unix  2      [ ]         DGRAM                    3593   -                   
<snip>

as root
<snip>
tcp        0      0 10.x.11.xx:35026     10.x.0.x:389         ESTABLISHED 2227/evolution-womb 
udp        0      0 0.0.0.0:631             0.0.0.0:*                           24472/cupsd         
<snip>
unix  2      [ ]         DGRAM                    3593   1507/xinetd
as a non-root user, all details are not shown.

Last edited by ppuru; 09-01-2004 at 11:52 PM.
 
Old 09-02-2004, 12:16 AM   #6
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Original Poster
Rep: Reputation: 31
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

tcp        0      0 66.92.204.251:80        142.59.120.43:3046      ESTABLISHED -
tcp        0      0 66.92.204.251:80        142.59.120.43:3047      ESTABLISHED -
tcp        0      0 66.92.204.251:80        24.55.108.78:1873       ESTABLISHED -
tcp        0      0 66.92.204.251:80        24.55.108.78:1875       ESTABLISHED -
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
apache acting weird Red Squirrel Linux - Software 2 08-19-2005 09:47 PM
cdrom acting weird Vindane Slackware 5 05-30-2004 01:53 AM
Radeon acting weird... r_jensen11 Linux - Hardware 9 05-09-2004 02:41 AM
apache acting weird... Red Squirrel Linux - Newbie 1 03-03-2004 09:29 PM
Weird results with netstat nekromancer Linux - Networking 3 02-17-2004 02:36 AM


All times are GMT -5. The time now is 08:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration