The SNMPCLI Utility
EPICenter Concepts and Solutions Guide
245
● snmpcli snmpwalk <options> returns the value of the entries in a table.
For example, to get the value of the entries in the
extremeFanStatusTable, which is OID
.
1.3.6.1.4.1.1916.1.1.1.9 on the device at 10.205.0.99, enter the following command:
snmpcli snmpget -a 10.205.0.99 -o .1.3.6.1.4.1.1916.1.1.1.9
Table 13 specifies the options you can use with these commands:
SNMPCLI Examples
The following examples illustrate the usage of these commands.
● To retrieve the values of the extremePrimaryPowerOperational and
extremeRedundantPowerStatus variables for the Extreme Networks device with IP address 10.205.0
99, with read community string “purple” and a timeout of 1000 ms, enter the following command:
snmpcli snmpget -a 10.205.0.99 -r purple -t 1000 -o .1.3.6.1.4.1.1916.1.1.1.10.0 -
o .1.3.6.1.4.1.1916.1.1.1.11.0
This returns the following:
IP Address: 10.205.0.99
Read community string: purple
Timeout(ms): 1000
OUTPUT:
OID: .1.3.6.1.4.1.1916.1.1.1.10.0 ; VALUE: 1
OID: .1.3.6.1.4.1.1916.1.1.1.11.0 ; VALUE: 1
● To retrieve the values from the extremeFanStatusTable variables for the Extreme Networks device
with IP address 10.205.0.99, with the default read community string (public) and a default timeout,
enter the following command:
snmpcli snmpwalk -a 10.205.0.99 -o .1.3.6.1.4.1.1916.1.1.1.9
This returns the following:
IP Address: 10.205.0.99
Read community string: public
Timeout(ms): 500
OUTPUT:
OID: .1.3.6.1.4.1.1916.1.1.1.9.1.1.1 ; VALUE: 1
OID: .1.3.6.1.4.1.1916.1.1.1.9.1.1.2 ; VALUE: 2
OID: .1.3.6.1.4.1.1916.1.1.1.9.1.1.3 ; VALUE: 3
OID: .1.3.6.1.4.1.1916.1.1.1.9.1.2.1 ; VALUE: 2
OID: .1.3.6.1.4.1.1916.1.1.1.9.1.2.2 ; VALUE: 2
OID: .1.3.6.1.4.1.1916.1.1.1.9.1.2.3 ; VALUE: 2
Table 13: SnmpCli command options
Option Value Default
-a Device IP address. This option can be specified more than once. This option is
required.
None
-i Number of indices to use when walking a MIB table (1 or 2). 1
-o Object Identifier (OID) of the MIB object whose value you want to retrieve, or that is
the starting point for the values you want. This option is required.
None
-r Read community string public
-t Timeout value for SNMP request, in milliseconds. 500 ms