This article describes a way to find the version of NET-SNMP that has been included in a particular JunOS version.
Since there is no direct way to find out the included NET-SNMP version for a particular Junos OS, a workaround is to restart the mib2d daemon using the following command:
restart mib-process immediately
After running the aforementioned command, the mib2d kills the existing thread for mib2d and re-spawns a new one in seconds. Then run the command below to check the NET-SNMP version that is reported in the messages:
user@router> show log messages | match "NET-SNMP" | match mib2d
May 25 07:38:15.434 jtac-lab-re0 mib2d[5920]: LIBJSNMP_NS_LOG_INFO: INFO: ns_subagent_open_session: NET-SNMP version 5.3.1 AgentX subagent Open-Sent!
Note: The command 'restart mib-process immediately' does not impact traffic. The process is respawned in seconds and during this brief time the network monitoring via SNMP is disrupted.
'restart mib-process immediately'