TCPIP Utilities

Internet CS

Troubleshooting NetBIOS names by using nbtstat

 

Please comment on this article here

 

NetBIOS over TCP/IP (NetBT) resolves NetBIOS names to IP addresses. TCP/IP provides many options for NetBIOS name resolution, including local cache lookup, WINS server query, broadcast, DNS server query, and Lmhosts and Hosts file lookup.

Nbtstat is a useful tool for troubleshooting NetBIOS name resolution problems. You can use the nbtstat command to remove or correct preloaded entries:

  • nbtstat -n displays the names that were registered locally on the system by programs such as the server and redirector.
  • nbtstat -c shows the NetBIOS name cache, which contains name-to-address mappings for other computers.
  • nbtstat -R purges the name cache and reloads it from the Lmhosts file.
  • nbtstat -RR releases NetBIOS names registered with a WINS server and then renews their registration.
  • nbtstat -a name performs a NetBIOS adapter status command against the computer specified by name. The adapter status command returns the local NetBIOS name table for that computer plus the media access control address of the adapter.
  • nbtstat -S lists the current NetBIOS sessions and their status, including statistics, as shown in the following example:
    NetBIOS connection table
    
    Local name State     In/out Remote Host    Input   Output
    ------------------------------------------------------------------
    CORP1 <00> Connected Out    CORPSUP1<20>   6MB     5MB
    CORP1 <00> Connected Out    CORPPRINT<20>  108KB   116KB
    CORP1 <00> Connected Out    CORPSRC1<20>   299KB   19KB
    CORP1 <00> Connected Out    CORPEMAIL1<20> 324KB   19KB
    CORP1 <03> Listening

 

 

 

eXTReMe Tracker

Links: