Show network status using SNMP
snmpnetstat [-d] [-p port] -v 1 host community [-ainrs] [-P protocol] [-I interface] [interval] snmpnetstat [-d] [-p port] [-v 2] host noAuth [-ainrs] [-P protocol] [-I interface] [interval] snmpnetstat [-d] [-p port] [-v 2] host srcparty dstparty context [-ainrs] [-P protocol] [-I interface] [interval]
Neutrino
The snmpnetstat utility displays network-related statistics retrieved from a remote system using the SNMP protocol.
If you're using SNMP version 2, the following files must be configured:
For a description on how to configure the files please see the file page for each of the configuration files listed above. If you wish to change the location of your configuration files, you must include a snmpd.conf file.
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. |
-I interface interval | Continuous column of stats for interface and continuous table of cumulative stats for all interfaces. |
interval | Continuous column of stats for the primary 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. |
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 |
Gateway | Gateway to use in forwarding packets. Or: Address of the outgoing interface if the route is direct. |
Interface | Network interface used for the route. |
netstat, snmpd, snmpget, snmpgetnext, snmpstatus, snmptest, snmptranslate, snmptrap, snmptrapd, snmpwalk
/etc/acl.conf, /etc/context.conf, /etc/hosts, /etc/mib.txt, /etc/networks, /etc/party.conf, /etc/protocols, /etc/services, /etc/snmpd.conf, /etc/view.conf files
Based on
ISO 8824 (ASN.1), RFC 1065, RFC 1066, RFC1067
RFC 1441, RFC 1445, RFC1446
RFC 1448, RFC 1449
Marshall T. Rose, The Simple Book: An Introduction to Internet Management, Revised 2nd ed. (Prentice-Hall, 1996, ISBN 0-13-451659-1)