User guide
ExtremeWare EPICenter Software Installation and User Guide B-7
The SNMPCLI Utility
The SNMPCLI Utility
The SNMPCLI utility provides three basic SNMP query capabilities, that can be used to
accessthevaluesofMIBobjectskeptby theSNMP agentsofthedevicesyouaremanaging.
Accessing these variable may be helpful in diagnosing problems with a device or its
configuration, if its behavior as seen through the EPICenter 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.
Using the SNMPCLI Utility
The three scripts are located in the EPICenter user\scripts\bin directory under the
EPICenter install directory (by default
\epc3_1 under Windows, or /opt/epc3_1 under
Solaris).Youmusthavethe
user\scripts\bin directoryasyourcurrentdirectoryin 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