Description

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

Solution

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:

[edit]
    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
The file /var/log/mib2d will contain the result for mib2d traceoptions.
 
  • 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 :


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

 

Modification History

2022-08-19: Article reviewed for accuracy; no changes required; article valid and relevant