You can use the script automation to create a custom SNMP OID. The process will then run a script on demand. In your case you would choose an unused OID from the MIB and have the script run show chassis power to return the desired information.
Documentation for the process starts here.
https://www.juniper.net/documentation/us/en/software/junos/automation-scripting/topics/concept/junos-script-automation-snmp-script-overview.html
------------------------------
Steve Puluka BSEET - Juniper Ambassador
IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP - Retired)
http://puluka.com/home------------------------------
Original Message:
Sent: 10-22-2024 04:51
From: CHRIS MAUGHAN
Subject: SNMP report on current power consumption
HI All
i am being tasked with reporting on current power consumption via snmp. for all srx models
i can see theres an oid/mib for this i.e.
juniper-power-supply-unit-mib / 1.3.6.1.4.1.2636.3.58.1
however if i invoke "show snmp mib walk 1.3.6.1.4.1.2636.3.58" this does not exist on any of my SRX devices.
i can obviously "show chassis power" and this displays all the required stats but this is not much use for remote reporting.
my question is am i barking up the wrong tree and is there another oid that references the chassis current power draw ?
thanks all
------------------------------
CHRIS MAUGHAN
------------------------------