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
.126.96.36.199.188.8.131.52.184.108.40.206.15 (mplsTunnelSessionAttributes) (/var/run/rpd_snmp) <<<< OIDs
.220.127.116.11.4.1.2618.104.22.168.1.1.3 (jnxRsvpSessionState) (/var/run/rpd_snmp)
.22.214.171.124.4.1.26126.96.36.199.1.1.4 (jnxRsvpSessionFrom) (/var/run/rpd_snmp)
.188.8.131.52.4.1.26184.108.40.206.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.