Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

Checking for MIB Objects Registered with SNMPD



Article ID: KB17695 KB Last Updated: 04 Mar 2017Version: 2.0
Checking for MIB Objects Registered with SNMPD
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).
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> file show /var/log/snmp_reg_objs
Registered MIB Objects
root_name =
.1.0.8802. (lldpMessageTxInterval) (/var/run/lldpd_snmp)
.1.0.8802. (lldpMessageTxHoldMultiplier) (/var/run/lldpd_snmp)
.1.0.8802. (lldpReinitDelay) (/var/run/lldpd_snmp)
.1.0.8802. (lldpTxDelay) (/var/run/lldpd_snmp)
.1.0.8802. (lldpNotificationInterval) (/var/run/lldpd_snmp)
.1.0.8802. (lldpPortConfigAdminStatus) (/var/run/lldpd_snmp)
.1.0.8802. (lldpPortConfigNotificationEnable) (/var/run/lldpd_snmp)
.1.0.8802. (lldpPortConfigTLVsTxEnable) (/var/run/lldpd_snmp)
.1.0.8802. (lldpConfigManAddrPortsTxEnable) (/var/run/lldpd_snmp)
.1.0.8802. (lldpStatsRemTablesLastChangeTime) (/var/run/lldpd_snmp)
.1.0.8802. (lldpStatsRemTablesInserts) (/var/run/lldpd_snmp)
.1.0.8802. (lldpStatsRemTablesDeletes) (/var/run/lldpd_snmp)
.1.0.8802. (lldpStatsRemTablesDrops) (/var/run/lldpd_snmp)
.1.0.8802. (lldpStatsRemTablesAgeouts) (/var/run/lldpd_snmp)
.1.0.8802. (lldpStatsTxPortFramesTotal) (/var/run/lldpd_snmp)
.1.0.8802. (lldpStatsRxPortFramesDiscardedTotal) (/var/run/lldpd_snmp)
.1.0.8802. (lldpStatsRxPortFramesErrors) (/var/run/lldpd_snmp)
.1.0.8802. (lldpStatsRxPortFramesTotal) (/var/run/lldpd_snmp)
.1.0.8802. (lldpStatsRxPortTLVsDiscardedTotal) (/var/run/lldpd_snmp)
.1.0.8802. (lldpStatsRxPortTLVsUnrecognizedTotal) (/var/run/lldpd_snmp)
.1.0.8802. (lldpStatsRxPortAgeoutsTotal) (/var/run/lldpd_snmp)
.1.0.8802. (lldpLocChassisIdSubtype) (/var/run/lldpd_snmp)
.1.0.8802. (lldpLocChassisId) (/var/run/lldpd_snmp)
.1.0.8802. (lldpLocSysName) (/var/run/lldpd_snmp)
.1.0.8802. (lldpLocSysDesc) (/var/run/lldpd_snmp)
.1.0.8802. (lldpLocSysCapSupported) (/var/run/lldpd_snmp)
.1.0.8802. (lldpLocSysCapEnabled) (/var/run/lldpd_snmp)

root> file show /var/log/snmp_reg_objs | grep drops   
.1.0.8802. (lldpStatsRemTablesDrops) (/var/run/lldpd_snmp)
. (snmpSilentDrops) ()
. (snmpProxyDrops) ()
. (ptopoConnTabDrops) (/var/run/lldpd_snmp)
. (ifJnxInQDrops) (/var/run/mib2d-11)
. (ifJnxBucketDrops) (/var/run/mib2d-11)
. (ifJnxOutQDrops) (/var/run/mib2d-11)
. (jnxAtmIfOutVCQueueDrops) (/var/run/mib2d-11)
. (jnxAtmVCTailQueuePktDrops) (/var/run/mib2d-11)
. (jnxAtmTrunkTailQueuePktDrops) (/var/run/mib2d-11)
. (jnxIpv6StatsFragDrops) (/var/run/mib2d-11)
. (jnxIpv6StatsOptRateDrops) (/var/run/mib2d-11)
. (jnxPMonNoMemDrops) (/var/run/mib2d-11)
. (jnxPMonNotIPDrops) (/var/run/mib2d-11)
. (jnxPMonNotIPv4Drops) (/var/run/mib2d-11)
. (jnxCosAtmVcQstatsOutNonRedDrops) (/var/run/mib2d-11)
. (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.
Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search