Support Support Downloads Knowledge Base Juniper Support Portal 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

[M/MX/T] How to enable mib2d traceoptions



Article ID: KB30808 KB Last Updated: 27 Apr 2016Version: 1.0

This article explains how to enable mib2d traceoptions in your configuration.


The mib2d process does not have its own traceoptions configuration hierarchy. Instead, it comes together with SNMP daemon traceoptions. Therefore, you must enable SNMP traceoptions.  First, enable the 'flag all' knob for SNMP traceoptions as follows:

    snmp {
        traceoptions {
        flag all;

There are two methods to enable SNMP traceoptions, which will lead to different results for mib2d process traceoptions. The position of mib2d traceoption results will be different depending on your configuration for other parameters of SNMP traceoptions:

  1. If you did not configure any 'file' knob under SNMP traceoptions, then there will be 3 individual files created under the folder /var/log:
    • snmpd
    • mib2d
    • rmopd
  2. The file /var/log/mib2d will contain the result for mib2d traceoptions.

  3. If you configure the 'file' knob under SNMP traceoptions, then there will only be one traceoptions file created in the folder /var/log, which is the file you configured in the 'file' knob.

    In the following configuration example, all SNMP related traceoption results (including snmpd, mib2d and rmond) will be stored in the file 'snmptrace' under /var/log folder:

  4. lab@jtac-MX960> show configuration snmp
    traceoptions {
        file snmptrace size 10m files 10;
        flag all;

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