Netstat
Displays protocol statistics and current TCP/IP network connections. This
command is available only if the TCP/IP protocol has been installed.
netstat [-a] [-e] [-n] [-s] [-p protocol] [-r] [interval]
Parameters
-a
Displays all connections and listening ports; server connections are normally
not shown.
-e
Displays Ethernet statistics. This may be combined with the -s option.
-n
Displays addresses and port numbers in numerical form (rather than attempting
name look-ups).
-s
Displays per-protocol statistics. By default, statistics are shown for TCP,
UDP, ICMP, and IP; the -p option may be used to specify a subset of the default.
-p protocol
Shows connections for the protocol specified by proto; proto may be tcp or udp. If used with the -s option to display per-protocol statistics, proto may be tcp, udp, icmp, or ip.
-r
Displays the contents of the routing table.
interval
Redisplays selected statistics, pausing interval seconds between each display. Press CTRL+C to stop redisplaying statistics. If this parameter is omitted, netstat prints the current configuration information once.
More Information About Netstat
Netstat--Notes