netstat --programs

HornOx

Registered User
netstat -p funktioniert auf meinem Server nicht mehr so wie es sollte, es werden werde die PIDs noch die Programmnamen der Programme angezeigt die die Verbindung nützten :(
Code:
devmode:~# netstat --help
[...]
        -p, --programs           display PID/Program name for sockets
[...]
devmode:~# netstat -lptn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name   
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN     -                   
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN     -                   
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     -                   
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN     -                   
tcp        0      0 0.0.0.0:993             0.0.0.0:*               LISTEN     -                   
tcp        0      0 0.0.0.0:995             0.0.0.0:*               LISTEN     -                   
devmode:~# whoami 
root
Debian Sarge, Server4You vServer, bin als root (UserID 0) angemeldet. Weder ein "apt-get install --reinstall net-tools" noch ein "dpkg-reconfigure net-tools" hat was gebracht. Ich bin mir sicher das der Befehl früher funktioniert hat und auf meinem Rechner zu hause funkt er auch wie gewünscht:
Code:
hornox:~# netstat -lntp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name   
tcp        0      0 0.0.0.0:993             0.0.0.0:*               LISTEN     4502/perl           
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN     20364/mysqld        
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN     4718/apache2        
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     30989/sshd          
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN     2492/exim4

Ist kein kritisches Problem aber ich finds einfach komisch wenn sowas plötzlich aufhört zu funktionieren. Kann mal ein anderer vServer Kunde schauen ob das bei ihm funktioniert (dann wüßte ich ob das ein Kernel Problem ist oder ich meine Installation zerschossen hab)

Gibts eigentlich irgendwo in /proc die Möglichkeit eine TCP-Verbindung einer PID zuzuordnen? /proc/net/tcp enthält nur die UID :(
 
Hi,

also mein VServer max (Suse 9) sagt:

xxxxxxxx:~ # netstat -lntp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 676/xinetd
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1699/httpd2-prefork
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 676/xinetd
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 676/xinetd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 770/sshd
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 676/xinetd
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 1699/httpd2-prefork
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 676/xinetd
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1674/mysqld
 
hier ist meine ausgabe

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:783 0.0.0.0:* LISTEN 11072/spamd -d -c -
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 11906/httpd
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 4800/xinetd
tcp 0 0 62.75.151.219:53 0.0.0.0:* LISTEN 3553/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 3553/named
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 4800/xinetd
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 3553/named
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 11906/httpd
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 4800/xinetd
tcp 0 0 0.0.0.0:7300 0.0.0.0:* LISTEN 4800/xinetd
tcp 0 0 0.0.0.0:37 0.0.0.0:* LISTEN 4165/sshd
tcp 0 0 0.0.0.0:199 0.0.0.0:* LISTEN 2272/snmpd
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 6912/mysqld
tcp 0 0 0.0.0.0:2222 0.0.0.0:* LISTEN 4800/xinetd
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 4800/xinetd
 
Back
Top