Learn Windows XP Professional: Troubleshooting TCP/IP - Part 1 (Page 3) Page 3

By ServerWatch Staff (Send Email)
Posted Sep 2, 2002


NBTSTAT - 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 NetBT.

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 query.

Displays 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] ]

  • -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.


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).

NETSTAT [-a] [-e] [-n] [-o] [-s] [-p proto] [-r] [interval]

  • -a - Displays all connections and listening ports.

  • -e - Displays Ethernet statistics. This may be combined with the -s option.

  • -n - Displays addresses and port numbers in numerical form.

  • -o - Displays the owning process ID associated with each connection.

  • -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.

  • -r - Displays the routing table.

  • -s - 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 the default.

  • interval - 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.



Comment and Contribute

Your name/nickname

Your email

(Maximum characters: 1200). You have characters left.