User Guide
Troubleshooting 133
Novell DNS/DHCP Management Utility Administration Guide
103-000164-001
September 4, 2001
Novell Confidential
Manual 99a38 July 17, 2001
Using NETSTAT
NETSTAT is an advanced utility that should be used only by those who have
a detailed understanding of TCP/IP and must troubleshoot very complex
problems. NETSTAT displays protocol statistics and current TCP/IP network
connections.
The NETSTAT command has the following syntax:
NETSTAT [-a] [-e] [-n] [-s] [-p proto] [-r]
[interval]
Table 14, “NETSTAT Options,” on page 133 explains the use of the NETSTAT
options.
Table 14 NETSTAT Options
-s Adds the host and associates the internet address inet_addr with the physical
address eth_addr. The physical address is given as six hexadecimal bytes
separated by hyphens. The entry is permanent.
eth_addr Specifies a physical address.
if_addr If present, specifies the Internet address of the interface whose address
translation table should be modified. If not present, the first applicable
interface is used.
Option Meaning
-a Displays all connections and listening ports, but not those of the server side.
-e Displays Ethernet statistics. This might be combined with the -s option.
-n Displays addresses and port numbers in numerical form.
-p proto Shows connections for the protocol specified by proto (either TCP or UDP). If
used with the -s option to display per protocol statistics, proto can be TCP,
UDP, or IP.
-r Displays the contents of the routing table.
-s Displays per protocol statistics. By default, statistics are shown for TCP, UDP,
and IP. The -p option can be used to specify a subset of the default.
Option Meaning