Summary:
Checking for MIB Objects Registered with SNMPD
Symptoms:
For the SNMP process to be able to access data related to a MIB object, the MIB object must be registered with snmpd. When an SNMP subagent comes up online, it tries to register the associated MIB objects with snmpd. Snmpd maintains a mapping of objects and the subagents with which the objects are associated. However, the registration attempt fails occasionally, and the objects remain unregistered with snmpd until the next time the subagent restarts and successfully registers the objects. When a network management system polls for data related to objects that are not registered with snmpd, snmpd returns either a noSuchName error (for SNMPv1 objects) or a noSuchObject error (for SNMPv2 objects).
Solution:
You can use the following commands to check for MIB objects that are registered with snmpd:
• show snmp registered-objects—Creates /var/log/snmp_reg_objs file that contains the list of registered objects and their mapping to various subagents.
• file show /var/log/snmp_reg_objs—Displays the content of /var/log/snmp_reg_objs file.
The following example shows the steps for creating and displaying the /var/log/snmp_reg_objs file:
root> show snmp registered-objects
root> show snmp registered-objects
root>
{master:0}
root> file show /var/log/snmp_reg_objs
--------------------------------------------------------------
Registered MIB Objects
root_name =
--------------------------------------------------------------
.1.0.8802.1.1.2.1.1.1 (lldpMessageTxInterval) (/var/run/lldpd_snmp)
.1.0.8802.1.1.2.1.1.2 (lldpMessageTxHoldMultiplier) (/var/run/lldpd_snmp)
.1.0.8802.1.1.2.1.1.3 (lldpReinitDelay) (/var/run/lldpd_snmp)
.1.0.8802.1.1.2.1.1.4 (lldpTxDelay) (/var/run/lldpd_snmp)
.1.0.8802.1.1.2.1.1.5 (lldpNotificationInterval) (/var/run/lldpd_snmp)
.1.0.8802.1.1.2.1.1.6.1.2 (lldpPortConfigAdminStatus) (/var/run/lldpd_snmp)
.1.0.8802.1.1.2.1.1.6.1.3 (lldpPortConfigNotificationEnable) (/var/run/lldpd_snmp)
.1.0.8802.1.1.2.1.1.6.1.4 (lldpPortConfigTLVsTxEnable) (/var/run/lldpd_snmp)
.1.0.8802.1.1.2.1.1.7.1.1 (lldpConfigManAddrPortsTxEnable) (/var/run/lldpd_snmp)
.1.0.8802.1.1.2.1.2.1 (lldpStatsRemTablesLastChangeTime) (/var/run/lldpd_snmp)
.1.0.8802.1.1.2.1.2.2 (lldpStatsRemTablesInserts) (/var/run/lldpd_snmp)
.1.0.8802.1.1.2.1.2.3 (lldpStatsRemTablesDeletes) (/var/run/lldpd_snmp)
.1.0.8802.1.1.2.1.2.4 (lldpStatsRemTablesDrops) (/var/run/lldpd_snmp)
.1.0.8802.1.1.2.1.2.5 (lldpStatsRemTablesAgeouts) (/var/run/lldpd_snmp)
.1.0.8802.1.1.2.1.2.6.1.2 (lldpStatsTxPortFramesTotal) (/var/run/lldpd_snmp)
.1.0.8802.1.1.2.1.2.7.1.2 (lldpStatsRxPortFramesDiscardedTotal) (/var/run/lldpd_snmp)
.1.0.8802.1.1.2.1.2.7.1.3 (lldpStatsRxPortFramesErrors) (/var/run/lldpd_snmp)
.1.0.8802.1.1.2.1.2.7.1.4 (lldpStatsRxPortFramesTotal) (/var/run/lldpd_snmp)
.1.0.8802.1.1.2.1.2.7.1.5 (lldpStatsRxPortTLVsDiscardedTotal) (/var/run/lldpd_snmp)
.1.0.8802.1.1.2.1.2.7.1.6 (lldpStatsRxPortTLVsUnrecognizedTotal) (/var/run/lldpd_snmp)
.1.0.8802.1.1.2.1.2.7.1.7 (lldpStatsRxPortAgeoutsTotal) (/var/run/lldpd_snmp)
.1.0.8802.1.1.2.1.3.1 (lldpLocChassisIdSubtype) (/var/run/lldpd_snmp)
.1.0.8802.1.1.2.1.3.2 (lldpLocChassisId) (/var/run/lldpd_snmp)
.1.0.8802.1.1.2.1.3.3 (lldpLocSysName) (/var/run/lldpd_snmp)
.1.0.8802.1.1.2.1.3.4 (lldpLocSysDesc) (/var/run/lldpd_snmp)
.1.0.8802.1.1.2.1.3.5 (lldpLocSysCapSupported) (/var/run/lldpd_snmp)
.1.0.8802.1.1.2.1.3.6 (lldpLocSysCapEnabled) (/var/run/lldpd_snmp)
{master:0}
root> file show /var/log/snmp_reg_objs | grep drops
.1.0.8802.1.1.2.1.2.4 (lldpStatsRemTablesDrops) (/var/run/lldpd_snmp)
.1.3.6.1.2.1.11.31 (snmpSilentDrops) ()
.1.3.6.1.2.1.11.32 (snmpProxyDrops) ()
.1.3.6.1.2.1.79.1.2.4 (ptopoConnTabDrops) (/var/run/lldpd_snmp)
.1.3.6.1.4.1.2636.3.3.1.1.11 (ifJnxInQDrops) (/var/run/mib2d-11)
.1.3.6.1.4.1.2636.3.3.1.1.22 (ifJnxBucketDrops) (/var/run/mib2d-11)
.1.3.6.1.4.1.2636.3.3.1.1.27 (ifJnxOutQDrops) (/var/run/mib2d-11)
.1.3.6.1.4.1.2636.3.10.1.1.16 (jnxAtmIfOutVCQueueDrops) (/var/run/mib2d-11)
.1.3.6.1.4.1.2636.3.10.2.1.11 (jnxAtmVCTailQueuePktDrops) (/var/run/mib2d-11)
.1.3.6.1.4.1.2636.3.10.4.1.10 (jnxAtmTrunkTailQueuePktDrops) (/var/run/mib2d-11)
.1.3.6.1.4.1.2636.3.11.1.1.7 (jnxIpv6StatsFragDrops) (/var/run/mib2d-11)
.1.3.6.1.4.1.2636.3.11.1.1.30 (jnxIpv6StatsOptRateDrops) (/var/run/mib2d-11)
.1.3.6.1.4.1.2636.3.19.2.1.4 (jnxPMonNoMemDrops) (/var/run/mib2d-11)
.1.3.6.1.4.1.2636.3.19.2.1.5 (jnxPMonNotIPDrops) (/var/run/mib2d-11)
.1.3.6.1.4.1.2636.3.19.2.1.6 (jnxPMonNotIPv4Drops) (/var/run/mib2d-11)
.1.3.6.1.4.1.2636.3.21.3.1.4 (jnxCosAtmVcQstatsOutNonRedDrops) (/var/run/mib2d-11)
.1.3.6.1.4.1.2636.3.21.4.1.10 (jnxCosAtmTrunkQstatsOutDrops) (/var/run/mib2d-11)
NOTE: The /var/log/snmp_reg_objs file contains only those objects that are associated with Junos OS processes that are up and running, and are registered with snmpd, at the time of executing the show snmp registered-objects command. If a MIB object related to a Junos OS process that is up and running is not shown in the list of registered objects, you may want to restart the software process to retry object registration with SNMPD.