June 2007

Using Windows online diagnostic tools

The netstat command

The netstat command displays current TCP/IP network connections and protocol statistics.

Netstat command syntax

The netstat command uses the following syntax:

netstat [-a] [-e] [-n] [-s] [-p proto] [-r] [interval]

netstat command parameters

Table 9: netstat command parameters

Parameter

Description

 

 

-a

Displays all connections and listening ports.

 

 

-e

Displays Ethernet statistics. This can be combined with

 

the -s option.

 

 

-n

Displays addresses and port numbers in numeric form.

 

 

-s

Displays statistics for each protocol.

 

 

-p proto

Shows connections for the protocol specified by proto.

 

Proto can be tcp or udp. If used with the -s option, proto

 

can be tcp, udp, or ip.

 

 

-r

Displays the contents of the routing table.

 

 

interval

Redisplays selected statistics, pausing between each

 

display. Press Ctrl+C to stop redisplaying.

 

 

1005r Server Maintenance and Diagnostics

57

Page 57
Image 57
Nortel Networks 1005r manual Netstat command parameters, Netstat command syntax