Learn Windows XP Professional: Troubleshooting TCP/IP - Part 1 (Page 3) Page 3
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. Displays
protocol statistics and current TCP/IP connections using NBT (NetBIOS over TCP/IP).
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 -
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.
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.
NBTSTAT [ [-a RemoteName] [-A IP address] [-c] [-n] [-r]
[-R] [-RR] [-s] [-S] [interval] ]
NETSTAT
[-a] [-e] [-n] [-o] [-s] [-p proto] [-r] [interval]

