1 | NETSTAT [-a] [-b] [-e] [-f] [-n] [-o] [-p proto] [-r] [-s] [-x] [-t] [interval]
|
2 |
|
3 | -a Displays all connections and listening ports.
|
4 | -b Displays the executable involved in creating each connection or
|
5 | listening port. In some cases well-known executables host
|
6 | multiple independent components, and in these cases the
|
7 | sequence of components involved in creating the connection
|
8 | or listening port is displayed. In this case the executable
|
9 | name is in [] at the bottom, on top is the component it called,
|
10 | and so forth until TCP/IP was reached. Note that this option
|
11 | can be time-consuming and will fail unless you have sufficient
|
12 | permissions.
|
13 | -e Displays Ethernet statistics. This may be combined with the -s
|
14 | option.
|
15 | -f Displays Fully Qualified Domain Names (FQDN) for foreign
|
16 | addresses.
|
17 | -n Displays addresses and port numbers in numerical form.
|
18 | -o Displays the owning process ID associated with each connection.
|
19 | -p proto Shows connections for the protocol specified by proto; proto
|
20 | may be any of: TCP, UDP, TCPv6, or UDPv6. If used with the -s
|
21 | option to display per-protocol statistics, proto may be any of:
|
22 | IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, or UDPv6.
|
23 | -q Displays all connections, listening ports, and bound
|
24 | nonlistening TCP ports. Bound nonlistening ports may or may not
|
25 | be associated with an active connection.
|
26 | -r Displays the routing table.
|
27 | -s Displays per-protocol statistics. By default, statistics are
|
28 | shown for IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, and UDPv6;
|
29 | the -p option may be used to specify a subset of the default.
|
30 | -t Displays the current connection offload state.
|
31 | -x Displays NetworkDirect connections, listeners, and shared
|
32 | endpoints.
|
33 | -y Displays the TCP connection template for all connections.
|
34 | Cannot be combined with the other options.
|
35 | interval Redisplays selected statistics, pausing interval seconds
|
36 | between each display. Press CTRL+C to stop redisplaying
|
37 | statistics. If omitted, netstat will print the current
|
38 | configuration information once.
|