Technical data
netstat
-f address_family
Limits reports to the specified address family. The address families that can be
specified might include the following:
inet Specifies reports of the AF_INET family, if present in the kernel.
inet6 Specifies reports of the AF_INET6 family, if present in the
kernel.
all Lists information about all address families in the system.
any Lists information about any address families in the system.
"-H"
Displays the current ARP table (behaves like
arp -a
.)
Use quotation marks to preserve the case of this option.
-i
Displays the state of configured interfaces. (Interfaces that are statically
configured into the system but not located at system startup are not shown.)
When used with the
-a
flag,
-i
displays IP and link-level addresses associated
with the interfaces.
You can use the
-i
flag to retrieve your system’s hardware address.
You can use the
-p
flag to specify a protocol for which to display statistics.
"-I" interface
Displays information about the specified interface. Use quotation marks to
preserve the case of this option.
-p protocol
Displays statistics for the specified protocol. Use the
-i
flag with the
-p
flag.
-m
Displays information about memory allocated to data structures associated with
network operations.
"-M"
Displays Internet protocol multicast routing information. When used with the
-s
flag,
"-M"
displays IP multicast statistics. Use quotation marks to preserve the
case of this option.
-n
Displays network address in numerical format with network masks in CIDR
format. When this flag is not specified, the address is displayed as host name and
port number. This flag can be used with any of the display formats.
-r
Displays the host’s routing tables. When used with the
-s
flag,
-r
shows the
host’s routing statistics instead of its routing tables.
-s
Displays statistics for each protocol.
-t
Displays timer information. Use with the
-I
interface or
-i
flag.
A–20 Troubleshooting Utilities Reference