This article describes how to generate the OIDs on the SRX itself
How to generate the OIDs on the SRX itself for the registered objects
Please follw the below steps to generate the OIDs on the SRX itself for the registered objects:
root@abc # run show snmp registered-objects
The above command will not generate any output
root@abc # run show log snmp_reg_objcs | match " pattern for which the OID needs to be generated "
root@abc# run show log snmp_reg_objs | match session
.220.127.116.11.18.104.22.168.22.214.171.124.15 (mplsTunnelSessionAttributes) (/var/run/rpd_snmp) <<<< OIDs
.126.96.36.199.4.1.26188.8.131.52.1.1.3 (jnxRsvpSessionState) (/var/run/rpd_snmp)
.184.108.40.206.4.1.26220.127.116.11.1.1.4 (jnxRsvpSessionFrom) (/var/run/rpd_snmp)
.18.104.22.168.4.1.2622.214.171.124.1.1.5 (jnxRsvpSessionTo) (/var/run/rpd_snmp)
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.