[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

AW: AW: nbtstat -S



NATHAN WROTE.

<I guess I should have been more specific - what I'm after is a
<command to give the list of currently connected TCP sessions from the
<linux host machine.





Did you read my P.S.:? How does netstat work for you???

e.g. DOS ------------------------- (sorry for the "krauty" language in here
:-P)

Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

C:\Dokumente und Einstellungen\simmel>netstat

Aktive Verbindungen

  Proto  Lokale Adresse         Remoteadresse          Status
  TCP    hobbes:1225            STORAGE:netbios-ssn    HERGESTELLT
  TCP    hobbes:2056            baym-gw3.msgr.hotmail.com:http  HERGESTELLT

C:\Dokumente und Einstellungen\simmel>

or e.g.
Linux ------------------------------------------------------------------


lucy:~# netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0    132 lucy.anymotion.de:ssh   192.168.0.16:2060
ESTABLISHED
tcp        0      0 lucy.anymo:microsoft-ds 192.168.0.121:1061
ESTABLISHED
tcp        0      0 lucy.anymot:netbios-ssn 192.168.0.110:1040
ESTABLISHED
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags       Type       State         I-Node Path
unix  3      [ ]         DGRAM                    110      /dev/log
unix  1      [ ]         STREAM     CONNECTED     31307    @0000020b
unix  1      [ ]         STREAM     CONNECTED     31298    @0000020a
unix  1      [ ]         STREAM     CONNECTED     31804    @0000020e
unix  1      [ ]         STREAM     CONNECTED     31587    @0000020d
unix  1      [ ]         STREAM     CONNECTED     31335    @0000020c
unix  1      [ W ]       STREAM     CONNECTED     31805
/var/run/mysqld/mysql
d.sock
unix  1      [ W ]       STREAM     CONNECTED     31588
/var/run/mysqld/mysql
d.sock
unix  1      [ W ]       STREAM     CONNECTED     31336
/var/run/mysqld/mysql
d.sock
unix  1      [ W ]       STREAM     CONNECTED     31308
/var/run/mysqld/mysql
d.sock
unix  1      [ W ]       STREAM     CONNECTED     31299
/var/run/mysqld/mysql
d.sock
unix  0      [ ]         DGRAM                    25098
unix  0      [ ]         DGRAM                    248
unix  0      [ ]         DGRAM                    114
lucy:~#


You can even be more specific and use switches, consult man netstat to get
more info on this.....


HTH,
Simmel



Reply to: