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:
'flag all'
[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:
'file'
/var/log
snmpd
mib2d
rmopd
/var/log/mib2d
snmptrace'
/var/log folder
lab@jtac-MX960> show configuration snmptraceoptions { file snmptrace size 10m files 10; flag all;}