湖濱散記部落格的樹心幽徑[login][主頁]
283:XP的netstat及nbtstat

(1)
C:\Documents and Settings\user>netstat

Active Connections

  Proto  Local Address          Foreign Address        State
  TCP    teacher:1100           163.25.20.99:13000     TIME_WAIT
  TCP    teacher:1163           203.69.141.40:http     TIME_WAIT
  TCP    teacher:1164           203.69.141.64:http     TIME_WAIT
  TCP    teacher:1205           liteapps.mcafee.com:https  TIME_WAIT
  TCP    teacher:1207           liteapps.mcafee.com:https  TIME_WAIT
  TCP    teacher:1263           163.25.20.99:13111     TIME_WAIT
  TCP    teacher:1264           163.25.20.99:13111     TIME_WAIT
  TCP    teacher:1265           163.25.20.99:13111     TIME_WAIT
  TCP    teacher:1275           a118-214.247-54.deploy.akamaitechnologies.com:ht
tp  TIME_WAIT
  TCP    teacher:1276           163.25.20.99:13111     TIME_WAIT
  TCP    teacher:1277           163.25.20.99:13111     TIME_WAIT
  TCP    teacher:1279           a118-214.247-54.deploy.akamaitechnologies.com:ht
tp  TIME_WAIT
  TCP    teacher:1280           163.25.20.99:13111     TIME_WAIT
  TCP    teacher:1281           163.25.20.99:13111     TIME_WAIT
  TCP    teacher:1282           163.25.20.99:13000     TIME_WAIT
  TCP    teacher:1283           163.25.20.99:13111     TIME_WAIT
  TCP    teacher:1284           163.25.20.99:13111     TIME_WAIT
  TCP    teacher:1285           163.25.20.99:13000     TIME_WAIT
  TCP    teacher:1286           163.25.20.99:13000     TIME_WAIT
  TCP    teacher:1287           163.25.20.99:13111     ESTABLISHED

(2)

C:\Documents and Settings\user>nbtstat

Displays protocol statistics and current TCP/IP connections using NBT
(NetBIOS over TCP/IP).

NBTSTAT [ [-a RemoteName] [-A IP address] [-c] [-n]
        [-r] [-R] [-RR] [-s] [-S] [interval] ]

  -a   (adapter status) Lists the remote machine's name table given its name
  -A   (Adapter status) Lists the remote machine's name table given its
                        IP address.
  -c   (cache)          Lists NBT's cache of remote [machine] names and their IP
 addresses
  -n   (names)          Lists local NetBIOS names.
  -r   (resolved)       Lists names resolved by broadcast and via WINS
  -R   (Reload)         Purges and reloads the remote cache name table
  -S   (Sessions)       Lists sessions table with the destination IP addresses
  -s   (sessions)       Lists sessions table converting destination IP
                        addresses to computer NETBIOS names.
  -RR  (ReleaseRefresh) Sends Name Release packets to WINS and then, starts Refr
esh

  RemoteName   Remote host machine name.
  IP address   Dotted decimal representation of the IP address.
  interval     Redisplays selected statistics, pausing interval seconds
               between each display. Press Ctrl+C to stop redisplaying
               statistics.

 

C:\Documents and Settings\user>nbtstat -c

區域連線 2:
Node IpAddress: [192.168.1.66] Scope Id: []

                  NetBIOS Remote Cache Name Table

        Name              Type       Host Address    Life [sec]
    ------------------------------------------------------------
    S09            <00>  UNIQUE          192.168.1.9         455
    S17            <00>  UNIQUE          192.168.1.17        442
    S25            <00>  UNIQUE          192.168.1.25        437
    S33            <00>  UNIQUE          192.168.1.33        440

 


C:\Documents and Settings\user>nbtstat -r

    NetBIOS Names Resolution and Registration Statistics
    ----------------------------------------------------

    Resolved By Broadcast     = 5
    Resolved By Name Server   = 0

    Registered By Broadcast   = 6
    Registered By Name Server = 0

    NetBIOS Names Resolved By Broadcast
---------------------------------------------
           S17            <00>
           S09            <00>
           S17            <00>
           S33            <00>
           S25            <00>

 


select id,article_id,topic,text from lt_articles_text where article_id =283; ok. update lt_articles set num_reads=num_reads +1 where id=283; ok.