This article explains how to get the system booted time using SNMP MIB OID.
How do I find the last chassis system boot time information? When using OID .1.3.6.1.2.1.1.3.0 (sysUpTime), I can only get the time information of "Protocols started"
Example:
root# run show system uptime Current time: 2017-07-10 02:13:01 UTC System booted: 2017-07-07 01:23:32 UTC (3d 00:49 ago) Protocols started: 2017-07-07 01:25:44 UTC (3d 00:47 ago) Last configured: 2017-07-09 02:30:36 UTC (23:42:25 ago) by root 2:13AM up 3 days, 49 mins, 1 user, load averages: 0.01, 0.07, 0.07 root# run show snmp mib get ascii .1.3.6.1.2.1.1.3.0 sysUpTime.0 = 26204009
Use the following OID to get the system booted time:
Name jnxBoxInstalled OID 1.3.6.1.4.1.2636.3.1.5.0
root# run show system uptime Current time: 2017-07-10 02:13:45 UTC System booted: 2017-07-07 01:23:32 UTC (3d 00:50 ago) Protocols started: 2017-07-07 01:25:44 UTC (3d 00:48 ago) Last configured: 2017-07-09 02:30:36 UTC (23:43:09 ago) by root 2:13AM up 3 days, 50 mins, 1 user, load averages: 0.00, 0.06, 0.07 root# run show snmp mib get ascii 1.3.6.1.4.1.2636.3.1.5.0 jnxBoxInstalled.0 = 26221400