NBTSTAT

(nbtstat)


该诊断命令使用 NBTTCP/IP 上的 NetBIOS)显示协议统计和当前 TCP/IP 连接。该命令只有在安装了 TCP/IP 协议之后才可用。

 

nbtstat [-a remotename] [-A IP address] [-c] [-n] [-R] [-r] [-S] [-s] [interval]

 

参数

 

-a remotename 使用远程计算机的名称列出其名称表。

 

-A IP address 使用远程计算机的 IP 地址并列出名称表。

 

-c 给定每个名称的 IP 地址并列出 NetBIOS 名称缓存的内容。

 

-n 列出本地 NetBIOS 名称。已注册表明该名称已被广播 (Bnode) 或者 WINS(其他节点类型)注册。

 

-R 清除 NetBIOS 名称缓存中的所有名称后,重新装入 Lmhosts 文件。

 

-r 列出 Windows 网络名称解析的名称解析统计。在配置使用 WINS Windows 2000 计算机上,此选项返回要通过广播或 WINS 来解析和注册的名称数。

 

-S 显示客户端和服务器会话,只通过 IP 地址列出远程计算机。

 

-s 显示客户端和服务器会话。尝试将远程计算机 IP 地址转换成使用主机文件的名称。

 

interval 重新显示选中的统计,在每个显示之间暂停 interval 秒。按 CTRL+C 停止重新显示统计信息。如果省略该参数,nbtstat 打印一次当前的配置信息。

 


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 Refresh

 

  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.