Learn Windows XP Professional: Troubleshooting TCP/IP - Part 1 (Page 3)
September 2, 2002
- NetBT Statistics (Nbtstat.exe) is used for troubleshooting
network NetBIOS names over TCP/IP (NetBT) resolution
problems from the command line. It displays protocol
statistics and current TCP/IP connections that are using
When a network is functioning, NetBT resolves NetBIOS names
to IP addresses. It uses several options for NetBIOS name
resolution, including local cache lookup, WINS server query,
broadcast, Lmhosts and Hosts file lookup, and DNS server
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] ]
(adapter status) - Lists the remote machine's name table
given its name.
(Adapter status) - Lists the remote machine's name table
given its IP address.
(cache) - Lists NBT's cache of remote [machine] names and
their IP addresses.
(names) - Lists local NetBIOS names.
(resolved) - Lists names resolved by broadcast and via WINS.
(Reload) - Purges and reloads the remote cache name table.
(Sessions) - Lists sessions table with the destination IP
(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.
address - Dotted decimal representation of the IP address.
- Redisplays selected statistics, pausing interval seconds
between each display. Press Ctrl+C to stop redisplaying
NETSTAT - Netstat (Netstat.exe) displays TCP/IP protocol
statistics and active connections to and from your computer
from the command line and also provides an option to display
the number of bytes sent and received, as well as network
packets dropped (if any).
[-a] [-e] [-n] [-o] [-s] [-p proto] [-r] [interval]
Displays all connections and listening ports.
Displays Ethernet statistics. This may be combined with
the -s option.
Displays addresses and port numbers in numerical form.
Displays the owning process ID associated with each
-p proto -
Shows connections for the protocol specified by proto;
proto may be any of: TCP, UDP TCPv6, or UDPv6. If used
with the s option to display per-protocol statistics,
proto may be any of: IP, IPv6, ICMP, ICMPv6, TCP, TCPv6,
UDP, or UDPv6.
Displays the routing table.
Displays per-protocol statistics. By default, statistics
are shown for IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, and
UDPv6; the -p option may be used to specify a subset of
Redisplays selected statistics, pausing interval seconds
between each display. Press CTRL+C to stop redisplaying
statistics. If omitted, netstat will print the current
configuration information once.