
CHAPTER 13: MIB NAVIGATOR
Built-In Commands (cont’d)
snmpset The snmpset command enables you to set the value of an object in other SNMP devices. This command requires the appropriate community string and OID.
When defining a new leaf, the set command prompts you for a value type. Possible value types are as follows:
(i)nteger - number (c)ounter - number (g)auge - number (t)ime ticks - number
o(p)aque - “value” (value with quotation marks) (s)tring - “value” (value with quotation marks) (o)id - number/number.number
(a)ddress - IP address/dotted decimal (m)ac - physical address/hex string (n)ull - no type
| Format: | snmpset <IPADDRESS> <COMMUNITY- | |
|
| NAME> | |
|
|
| |
| Example | MIBNav> snmpset 122.44.1.2 public |
|
|
|
|
|
|
| 1.3.6.1.2.1.1.4.0 “Cyrus/MIS” |
|
|
|
|
|
|
|
|
|
snmptree | The snmptree command provides a display of all objects in | ||||
| the device and their corresponding values. |
| |||
| Format: | snmptree <IPADDRESS> |
| ||
|
|
|
| ||
|
|
| |||
| Example | MIBNav> snmptree 122.144.89.10 public | |||
|
|
|
| ||
| # /1/3/6/1/2/1/1/1 sysDescr | STRING | EM Rev X.X.X.X | ||
| # /1/3/6/1/2/1/1/2 | sysObjectID OBJECT ID | 1.3.6.1.4.1.52 | ||
| # /1/3/6/1/2/1/1/3 sysUpTime | TIME TICKS 8098654 | |||
| # /1/3/6/1/2/1/1/4 | sysContact | STRING | SlyStallone/MIS | |
| # /1/3/6/1/2/1/1/5 sysName | STRING | Trng EMME2 | ||
| # /1/3/6/1/2/1/1/6 | sysLocation | STRING | 1st floor closet | |
| # /1/3/6/1/2/1/1/7 | sysServices | INTEGER | 1 | |
|
|
|
|
|
|
|