[Contents] [Prev] [Next] [Index] [Report an Error]


Step 2: Query a MIB With SNMPGet

Purpose

Send an SNMP request to check that the SNMP configuration is correct.

Action

To query a MIB with SNMPGet, enter the following command:

user@nms % snmpget hostname community oid

Sample Output

user-nms % snmpget tp1 public .1.3.6.1.2.1.1.1.0
system.sysDescr.0 = m7i internet router, kernel 6.0R1.5

user-nms % snmpget tp1 public sysDescr.0
system.sysDescr.0 = m7i internet router, kernel 6.0R1.5

What It Means

The sample output shows a query from a network management station (nms) for the description of the system running on the router tp1. The OID is entered in numerical form in the command line, and a description (sysDescr.0) is obtained in the output. You can also use sysDescr.0 in the command line to obtain the same output.


[Contents] [Prev] [Next] [Index] [Report an Error]