Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Example: Querying the IDP Series Device MIB

    You can use the reference tables in IDP Series MIB Object ID Reference to help you understand reports retrieved by your MIB reader. You can also use these tables to look up the OID you want to query with an snmpget or snmptable utility.

    The IDP OS image includes the most widely used, freely distributable SNMP command-line utilities available from http://www.net-snmp.org/. The following examples show snmpget and snmptable queries that specify OID by name and by number.

    Example: OID by Name


    [host]# snmpget -v2c -c public localhost JUNIPER-IDP-MIB::jnxIdpSensorCpuUsageOneMin.0
    JUNIPER-IDP-MIB::jnxIdpSensorCpuUsageOneMin.0 = Gauge32: 45

    Example: OID by Number


    [host]# snmpget -v2c -c public localhost 1.3.6.1.4.1.2636.3.9.1.10.0
    SNMPv2-SMI::enterprises.2636.3.9.1.10.0 = Gauge32: 53

    Example: OID by Name


    [host]# snmptable -v2c -c public localhost JUNIPER-IDP-MIB::jnxIdpSensorTxPktsDropPerIntfcTable
    SNMP table: JUNIPER-IDP-MIB::jnxIdpSensorTxPktsDropPerIntfcTable
    
     jnxIdpSensorIFTable6Index jnxIdpSensorTxdIntfcName jnxIdpSensorTxPktsDropped
                             1                   "eth1"                         0
                             2                   "eth7"                         0
                             3                   "eth6"                         0
                             4                   "eth9"                         0
                             5                   "eth8"                         0
                             6                   "eth3"                         0
                             7                   "eth2"                         0
                             8                   "eth5"                         0
                             9                   "eth4"                         0

    Example: OID by Number


    [host]# snmptable -v2c -c public localhost -m JUNIPER-IDP-MIB 1.3.6.1.4.1.2636.3.9.1.59
    SNMP table: JUNIPER-IDP-MIB::jnxIdpSensorTxPktsDropPerIntfcTable
    
     jnxIdpSensorIFTable6Index jnxIdpSensorTxdIntfcName jnxIdpSensorTxPktsDropped
                             1                   "eth1"                         0
                             2                   "eth7"                         0
                             3                   "eth6"                         0
                             4                   "eth9"                         0
                             5                   "eth8"                         0
                             6                   "eth3"                         0
                             7                   "eth2"                         0
                             8                   "eth5"                         0
                             9                   "eth4"                         0

    Note: You must use the -m option to reference the MIB file when you specify a numeric OID with snmptable.


    Published: 2011-02-08