In order to contemporary measure temprature on junos device , you’ll need to send specific SNMP traps to the SNMP clients configured on the junos device . In this article I’ll take EX switch 12.3R9 as an example.
First, configure the SNMP client/s and other configurations related to our situation:
set snmp client-list SNMP-RO 10.1.1.1/32
set snmp community TEST-ro authorization read-only
set snmp community TEST-ro client-list-name SNMP-RO
set snmp trap-options source-address 10.1.99.254
set snmp trap-group TEST-ro version v2
While 10.1.1.1 is the server which is pulling out this traps, e.g : PRTG
You need to know which temprature you need to pull. So run the command: show chassis environment on the EX switch:
Now, you need to find the related OID for this temprature, follow KB17526 to find this out. You’ll see it is : jnxOperatingTemp . and it is 220.127.116.11.4.1.2618.104.22.168.1.7
So run this command on switch to find the full OID of the specific FPC / sensor :
sh sn mib walk 22.214.171.124.4.1.26126.96.36.199.1.7
So you’ll need to run on the SNMP server (for example PRTG server) the following OID:
188.8.131.52.4.1.26184.108.40.206.220.127.116.11.0.0 in order to get contemporary temprature on FPC 0 Sensor CPU Die Temp
Note: There is no specific values as timeout. The moment when the command is issued the temperature output are collected from the device when the help of sensors.