show network status using SNMP
snmpnetstat host community [-an] snmpnetstat host community [-inr] snmpnetstat host community [-s] snmpnetstat host community [-n] [-I interface] [interval] snmpnetstat host community [-p protocol]
The snmpnetstat utility displays network-related statistics retrieved from a remote system using the SNMP protocol.
The snmpnetstat utility tries to match the host, network, and port with entries in the TCP/IP configuration files. If one of these matches, snmpnetstat displays the corresponding symbolic names. If none of these match or if you specify -n, snmpnetstat displays the addresses numerically.
The interface display shows a table of cumulative statistics on packets transferred, errors, and collisions. It also displays the network addresses of the interface and the maximum transmission unit (MTU). If you specify an interval, snmpnetstat shows a continuous display. The first line of the continuous display is a summary of statistics accumulated since the system was last booted; subsequent lines show values accumulated over the preceding interval.
If you specify: | The interface display shows: |
---|---|
[-n] -i | table of cumulative stats for all interfaces |
[-n] -I interface | table of cumulative stats for interface |
interval | continuous column of stats for the primary interface and continuous table of cumulative stats for all interfaces |
-I interface interval | continuous column of stats for interface and continuous table of cumulative stats for all interfaces |
The routing table display shows the available routes and the status of each. Each route consists of a destination host or network and a gateway to use in forwarding packets. Direct routes are created for each interface attached to the local host.
This field: | Shows: |
---|---|
Destination | destination host or network |
Gateway | gateway to use in forwarding packets OR address of the outgoing interface if the route is direct |
Flags | state of the route, where: D = was created dynamically by a redirect G = to a gateway H = destination is a host M = has been modified by a redirect U = up |
Interface | network interface used for the route |
netstat,
snmpd,
snmpget,
snmpgetnext,
snmpstatus,
snmptest,
snmptrap,
snmptrapd,
snmpwalk,
mib.txt file,
/etc/hosts file,
/etc/networks file,
/etc/protocols file,
/etc/services file
RFC 1065, RFC 1066, RFC
1067, ISO 8824 (ASN.1)
Marshall T. Rose, The Simple Book: An Introduction to
Internet Management, 2nd ed. (Prentice-Hall, 1994,
ISBN 0-13-177254-6)