Specifications

Ridgeline Concepts and Solutions Guide
357
variable may be helpful in diagnosing problems with a device or its configuration, if its behavior as
seen through the Ridgeline software is not as expected.
Use of this utility assumes you are familiar with SNMP MIBs, and can determine the OID the variable
you want to retrieve, as well as the meaning of the results that are returned.
NOTE
The SNMPCLI utility uses SNMP version 1.
Using the SNMPCLI Utility
The three scripts are located in the Ridgeline user\scripts\bin directory under the Ridgeline install
directory (by default
\Program Files\Extreme Networks\Ridgeline 3.0 under Windows, or
/opt/ExtremeNetworks/Ridgeline3.0 under Linux or Solaris). You must have the
user.war\scripts\bin directory as your current directory in order to run these scripts.
The SNMPCLI utility supports the following three commands:
snmpcli snmpget <options> returns the value of a specified OID.
For example, to get the value of the object (the variable
extremePrimaryPowerOperational in the
Extreme Networks MIB) whose OID is .
1.3.6.1.4.1.1916.1.1.1.10.0 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.10.0
snmpcli snmpnext <options> returns the value of the next OID (subsequent to the OID you
specify) in the MIB tree.
For example, you can use this command to get the value of the object whose OID is
.
1.3.6.1.4.1.1916.1.1.1.10.0 on the device at 10.205.0.99, by entering the following command:
snmpcli snmpnext -a 10.205.0.99 -o .1.3.6.1.4.1.1916.1.1.1.10
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 14 specifies the options you can use with these commands:
Table 14: 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