05-23-2014 04:31 AM - edited 03-07-2019 07:31 PM
I have a stack of 2960S switches and I want to get total PoE power available and consumed via SNMP. I've tried the cisco MIB browser and looked on google but any OID I try to query returns nothing.
Does anyone have the correct OIDs to use? Can I get those two numbers (total available and consumed) per switch in the stack? Can I just get the overall numbers? I'm not interested in the per interface values, only the overall values.
Thanks
05-26-2014 07:44 AM
I got the OIDs to use but it doesn't seem to be returning the correct values.
1.3.6.1.2.1.105.1.3.1.1.2 for total
1.3.6.1.2.1.105.1.3.1.1.4 for consumed
The .2 OID returns 740 per switch in the stack which is what I expected. The .4 OID doesn't return anything close to the real value.
Show inline power says I'm using 42, 114, 46 and 57 per switch. The SNMP values are 12, 24, 8 and 20.
Anyone know what's going on?
09-08-2015 01:37 PM
Any luck getting this to work? Running into the exact same problem with the "consumed" power being inaccurate. Thanks.
02-15-2017 03:00 AM
Hi,
There is a difference in actual power usage, and the amount of power the system reserves from power budget.
I have the same problem, i need to know how much power is actually left from the budget for me to connect new devices..
Anyway, output of #show power inline is the power based on the output of "#show cdp entry"[device name].
For example i have an AIR-CAP2702I-E-K9
"Power drawn: 16.800 Watts" from CDP.
#sh power inline
Module Available Used Remaining
(Watts) (Watts) (Watts)
------ --------- -------- ---------
1 485.0 478.6 6.4
Interface Admin Oper Power Device Class Max
(Watts)
--------- ------ ---------- ------- ------------------- ----- ----
Gi1/0/2 auto on 16.8 AIR-CAP2702I-E-K9 4 30.0
The output you see with SNMP is the OID being read that shows the actual Watts as used by the connected device.
The counter you see is the SNMP OID of "Oper power"
#sh power inline police
Module Available Used Remaining
(Watts) (Watts) (Watts)
------ --------- -------- ---------
1 485.0 478.6 6.4
Interface Admin Oper Admin Oper Cutoff Oper
State State Police Police Power Power
--------- ------ ---------- ---------- ---------- ------ -----
Gi1/0/2 auto on none n/a n/a 6.7
Totals: 182.1
So i too am looking for the OID that show me to remaining watts based on the amount of power a devices like APs reserve in the POE budget.
Would be great if this could be done with SNMP, otherwise i need to script this.
Have you found a SNMP solution to this problem?
02-16-2017 11:09 AM
Sadly, no, I have not found a solution.
04-20-2018 03:03 AM
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: