Nbtstat

See Also

Applies To: Windows Server 2008,Windows Server 2008 R2

Nbtstat

Displays NetBIOS over TCP/IP (NetBT) protocol statistics, NetBIOS name tables for both the local computer and remote computers, and the NetBIOS name cache. Nbtstat allows a refresh of the NetBIOS name cache and the names registered with Windows Internet Name Service (WINS). Used without parameters, nbtstat displays help.

Syntax

nbtstat[-aRemoteName] [-AIPAddress] [-c] [-n] [-r] [-R] [-RR] [-s] [-S] [Interval]

Parameters












Remarks

Heading

Description

Input

The number of bytes received.

Output

The number of bytes sent.

In/Out

Whether the connection is from the computer (outbound) or from another computer to the local computer (inbound).

Life

The remaining time that a name table cache entry will live before it is purged.

Local Name

The local NetBIOS name associated with the connection.

Remote Host

The name or IP address associated with the remote computer.

<03>

The last byte of a NetBIOS name converted to hexadecimal. Each NetBIOS name is 16 characters long. This last byte often has special significance because the same name might be present several times on a computer, differing only in the last byte. For example, <20> is a space in ASCII text.

Type

The type of name. A name can either be a unique name or a group name.

Status

Whether the NetBIOS service on the remote computer is running (Registered) or a duplicate computer name has registered the same service (Conflict).

State

The state of NetBIOS connections.

State

Description

Connected

A session has been established.

Associated

A connection endpoint has been created and associated with an IP address.

Listening

This endpoint is available for an inbound connection.

Idle

This endpoint has been opened but cannot receive connections.

Connecting

A session is in the connecting phase and the name-to-IP address mapping of the destination is being resolved.

Accepting

An inbound session is currently being accepted and will be connected shortly.

Reconnecting

A session is trying to reconnect (it failed to connect on the first attempt).

Outbound

A session is in the connecting phase and the TCP connection is currently being created.

Inbound

An inbound session is in the connecting phase.

Disconnecting

A session is in the process of disconnecting.

Disconnected

The local computer has issued a disconnect and it is waiting for confirmation from the remote system.

Examples

To display the NetBIOS name table of the remote computer with the NetBIOS computer name of CORP07, type:

nbtstat -a CORP07

To display the NetBIOS name table of the remote computer assigned the IP address of 10.0.0.99, type:

nbtstat -A 10.0.0.99

To display the NetBIOS name table of the local computer, type:

nbtstat -n

To display the contents of the local computer NetBIOS name cache, type:

nbtstat -c

To purge the NetBIOS name cache and reload the #PRE-tagged entries in the local Lmhosts file, type:

nbtstat -R

To release the NetBIOS names registered with the WINS server and re-register them, type:

nbtstat -RR

To display NetBIOS session statistics by IP address every five seconds, type:

nbtstat -S 5

Formatting legend

Format

Meaning

Italic

Information that the user must supply

Bold

Elements that the user must type exactly as shown

Ellipsis (...)

Parameter that can be repeated several times in a command line

Between brackets ([])

Optional items

Between braces ({}); choices separated by pipe (|). Example: {even|odd}

Set of choices from which the user must choose only one

Courier font

Code or program output

See Also

Command-line reference A-ZCommand shell overviewNetBIOS name resolution