I just found this OID: 1.3.6.1.4.1.9.9.402.1.3.1.4
see: https://mibs.observium.org/mib/CISCO-POWER-ETHERNET-EXT-MIB/#
I get the expected total values.
But they are still mapped to the installed LineCards.
SNMPv2-SMI::enterprises.9.9.402.1.3.1.4.1 = Gauge32: 433153
SNMPv2-SMI::enterprises.9.9.402.1.3.1.4.2 = Gauge32: 433153
SNMPv2-SMI::enterprises.9.9.402.1.3.1.4.7 = Gauge32: 433153
SNMPv2-SMI::enterprises.9.9.402.1.3.1.4.8 = Gauge32: 433153
Switch#sh power inline
Available:7840.0(w) Used:433.2(w) Remaining:7406.8(w)
I am looking for an OID with an index that is the same for each of our switches.
Here it is ".1", ".2", ".7 and ".8".
But what about a switch where only Slot 3 and 9 have LineCards.
Then my template would not work.
Maybe I need to invest time to make the template dynamic and check which LineCards dop exist.