10.2.8 How to Read SNMP Parameters via the CLI
About Reading SNMP
Parameters
SNMP get
SNMP getnext
E-DOC-CTC-20051017-0155 v1.0
The
,
snmp get
snmp getNext
GetNext or Walk SNMP settings and/or counters from a MIB object. The MIB object
is identified by the MIB object's ID. This is only used for ebugging purposes.
Use the following CLI command to read a specific object ID:
{Administrator}[snmp]=>get [objectid = <string>]
With [objectID] the MIB ID of the object. This must include the instance which is 0
for scalar objects e.g.
1.3.6.1.2.1.1.1.0
Example
To update the traffic load, use:
{Administrator}[snmp]=>1.3.6.1.2.1.10.94.1.1.7.1.12.601
VB_counter
.1.3.6.1.2.1.10.94.1.1.7.1.12.601
{Administrator}[snmp]=>1.3.6.1.2.1.10.94.1.1.7.1.12.601
VB_counter
.1.3.6.1.2.1.10.94.1.1.7.1.12.601
{Administrator}[snmp]=>1.3.6.1.2.1.10.94.1.1.7.1.12.601
VB_counter
.1.3.6.1.2.1.10.94.1.1.7.1.12.601
{Administrator}[snmp]=>1.3.6.1.2.1.10.94.1.1.7.1.12.601
VB_counter
.1.3.6.1.2.1.10.94.1.1.7.1.12.601
Use the following CLI command to get the next available object ID:
{Administrator}[snmp]=>get [objectid = <string>]
With [objectid] the object identity to getNext from.
Example:
To get the iP address table, use:
{Administrator}[snmp]getnext objectid .1.3.6.1.2.1.4.20.1.1
VB_ipAdr
.1.3.6.1.2.1.4.20.1.1.127.0.0.1
{Administrator}[snmp]getnext
VB_ipAdr
.1.3.6.1.2.1.4.20.1.1.192.168.1.254 192.168.1.254
=>
The object ID is only required the first time. The second time a getnext is
executed, the SpeedTouch™ will start looking from the previous object ID
and
commands allow you to Get,
snmp walk
or
sysDescription.0
84275
84277
84278
84279
127.0.0.1
Chapter 10
SpeedTouch™ Monitoring
149