PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : prozesse bzw port übersicht



NeoR7
06.02.03, 10:18
hi leute..

also..mi ps aux kann ich mir ja anzeigen lassen, welche prozesse laufen..
gibt es auch ne möglichkeit zu sehen.. welcher prozess welchen port nutzt..
bzw..welche ports gerade aktiv sind.


gruß

taylor
06.02.03, 10:24
Dafür gibt es netstat. Der Befehl ist recht umfangreich, also wirf mal einen Blick in seine Manual Page.

NeoR7
06.02.03, 11:18
hm. leider seh ich da ned..auf welchen port des alles läuft..oder..

nur die pid und den user...

oder überseh ich es einfach nur!!

gruß

Jorge
06.02.03, 11:25
Original geschrieben von NeoR7
hm. leider seh ich da ned..auf welchen port des alles läuft..oder..

nur die pid und den user...


Es kommt auf die richtigen Parameter bei netstat an:



thsfs-lx:~ # netstat -a
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:shell *:* LISTEN
tcp 0 0 *:smux *:* LISTEN
tcp 0 0 *:netbios-ssn *:* LISTEN
tcp 0 0 *:sunrpc *:* LISTEN
tcp 0 0 *:www-http *:* LISTEN
tcp 0 0 *:omni *:* LISTEN
tcp 0 0 thsfs-lx-2nd.osc:domain *:* LISTEN
tcp 0 0 thsfs-lx.osc.tis:domain *:* LISTEN
tcp 0 0 localhost:domain *:* LISTEN
tcp 0 0 *:ssh *:* LISTEN
tcp 0 0 localhost:953 *:* LISTEN
tcp 0 0 localhost:smtp *:* LISTEN
tcp 0 20 thsfs-lx.osc.tis:ssh ths-carsten.osc.ti:2051 ESTABLISHED
tcp 0 0 thsfs-lx.os:netbios-ssn Joerg.osc.tis:iad3 ESTABLISHED
tcp 0 0 thsfs-lx.os:netbios-ssn Jacek.osc.t:dmdocbroker ESTABLISHED
tcp 0 0 thsfs-lx.os:netbios-ssn Charly.osc.tis:1029 ESTABLISHED
tcp 0 0 thsfs-lx-2n:netbios-ssn Carsten.os:tve-announce ESTABLISHED
udp 0 0 localhost:2948 *:*
udp 0 0 localhost:3974 *:*
udp 0 0 thsfs-lx.osc:netbios-ns *:*
udp 0 0 thsfs-lx-2nd:netbios-ns *:*
udp 0 0 *:netbios-ns *:*
udp 0 0 thsfs-lx.os:netbios-dgm *:*
udp 0 0 thsfs-lx-2n:netbios-dgm *:*
udp 0 0 *:netbios-dgm *:*
udp 0 0 *:1307 *:*
udp 0 0 *:1308 *:*
udp 0 0 *:1309 *:*
udp 0 0 *:husky *:*
udp 0 0 *:rxmon *:*
udp 0 0 *:sti-envision *:*
udp 0 0 *:snmp *:*
udp 0 0 *:pdps *:*
udp 0 0 *:1315 *:*
udp 0 0 *:1316 *:*
udp 0 0 *:1317 *:*
udp 0 0 *:1318 *:*
udp 0 0 *:1319 *:*
udp 0 0 *:1324 *:*
udp 0 0 thsfs-lx-2nd.osc:domain *:*
udp 0 0 thsfs-lx.osc.tis:domain *:*
udp 0 0 localhost:domain *:*
udp 0 0 localhost:3796 *:*
udp 0 0 localhost:3800 *:*
udp 0 0 *:sunrpc *:*
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 1351 /var/run/sendmail/control
unix 7 [ ] DGRAM 631 /dev/log
unix 2 [ ] DGRAM 342024
unix 2 [ ] DGRAM 3842
unix 2 [ ] DGRAM 1450
unix 2 [ ] DGRAM 1349
unix 2 [ ] DGRAM 1253
thsfs-lx:~ #


Einevollständige Liste der Portnummern und der zugehörigen Dienste findest Du hier: http://www.iana.org/assignments/port-numbers

Jasper
06.02.03, 14:08
Original geschrieben von NeoR7
hm. leider seh ich da ned..auf welchen port des alles läuft..oder..


netstat -nlp -A inet

-j

X-piet
06.02.03, 14:31
hallo @all,

Bin neu hier, und erstmal ein Lob an Dieser Stelle für das interessante Forum.

@NeoR7



netstat -tupa


hilft Dir hoffentlich weiter. :-)

X-piet

taylor
06.02.03, 14:32
Original geschrieben von Jasper
netstat -nlp -A inet

Vielen Dank Japser, guter Tip! Hab's mir gleich notiert :)

X-piet
06.02.03, 14:41
Nachtrag,

für netstat -tupa muss man zum root wechseln bzw su.

Dann doch eher Jaspers Parameter verwenden. ;-)

X-piet