cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2517
Views
0
Helpful
2
Replies

How to get inline power via SNMP for Catalyt 9k

fhk-cwempe
Level 1
Level 1

I want to monitor the PoE-usage of your new Catalyst 9000 (like C9400) switches.

 

For older Catalyst 4500 I used this OID: 1.3.6.1.4.1.9.9.117.1.1.4.1.4.16

Multiplied with 0.5 (for 5V) I get the load in Watt.

 

But this OID does not work for the new generation.

 

I found this OID: .1.3.6.1.2.1.105.1.3.1.1.4

Which returns the load per LineCard.

 

But I want to get the load for the whole chassis, like this:

 

Switch#sh power inline

Available:8130.0(w)  Used:328.1(w)  Remaining:7801.9(w)

Is there an OID for this?

2 Replies 2

fhk-cwempe
Level 1
Level 1

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.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: