Networking / Beginners

Using the nbtstat Command

nbtstat is a Windows-only command that can help solve problems with NetBIOS name resolution. (nbt stands for NetBIOS over TCP/IP.) You can use any of the switches listed in Table 6-1 to specify what nbtstat output you want to display. For example, you can use an -a switch to display the cached name table for a specified computer, like this:

C:\>nbtstat -a WK07-001

Local Area Connection:
Node IpAddress: [192.168.1.110] Scope Id: []

	NetBIOS Remote Machine Name Table

	Name 			Type 	  Status
	---------------------------------------------
	WK07-001       <00> 	UNIQUE  Registered
	WORKGROUP      <00> 	GROUP   Registered
	WK07-001       <20> 	UNIQUE  Registered
	WORKGROUP      <1E> 	GROUP   Registered
	WORKGROUP      <1D> 	UNIQUE  Registered
	..__MSBROWSE__.<01> 	GROUP   Registered

	MAC Address = 00-12-3F-A7-17-BAC:\>
C:\>

Table-1 lists the switches that you can use with nbtstat and explains the function of each switch.

nbtstat Command Switches
SwitchWhat It Does
-a nameLists the specified computer's name table given the computer's name
-A IP-addressLists the specified computer's name table given the computer's IP address
-cLists the contents of the NetBIOS cache
-nLists locally registered NetBIOS names
-rDisplays a count of the names resolved by broadcast and via WINS
-RPurges and reloads the cached name table from the LMHOSTS file
-RRReleases and then reregisters all names
-SDisplays the sessions table using IP addresses
-sDisplays the sessions table and converts destination IP addresses to computer NetBIOS names
[Previous] [Contents] [Next]