10-06-2023 06:58 AM
Hi,
I'm trying to obtain values from the command output "show power inline police"
SW011#show power inline police
Module Available Used Remaining
(Watts) (Watts) (Watts)
------ --------- -------- ---------
1 370.0 360.0 10.0
2 370.0 340.7 29.3
3 67.0 0.0 67.0
Interface Admin Oper Admin Oper Cutoff Oper
State State Police Police Power Power
--------- ------ ---------- ---------- ---------- ------ -----
Gi1/0/1 auto on none n/a n/a 4.4
Gi1/0/2 auto on none n/a n/a 3.5
Gi1/0/3 auto on none n/a n/a 4.4
Gi1/0/4 auto on none n/a n/a 4.0
Gi1/0/5 auto on none n/a n/a 5.0
Gi1/0/6 auto on none n/a n/a 3.5
Gi1/0/7 auto on none n/a n/a 3.3
Gi1/0/8 auto on none n/a n/a 3.7
Gi1/0/9 auto on none n/a n/a 3.6
Gi1/0/10 auto on none n/a n/a 3.7
Gi1/0/11 auto on none n/a n/a 3.8
Gi1/0/12 auto on none n/a n/a 4.3
Gi1/0/13 auto on none n/a n/a 3.9
I was able to get the value of
Module Available Used Remaining
(Watts) (Watts) (Watts)
------ --------- -------- ---------
1 370.0 360.0 10.0
2 370.0 340.7 29.3
3 67.0 0.0 67.0
But i'm not able to find in MiB the "oper power" value. Do someone know the OID for that and how to calculate the value if its not an integer?
10-07-2023 09:31 AM
check below document :
10-08-2023 05:32 AM
Hi,
read it already but as understood the OID return only: "Available: Used: Remaining:" value and looking for the value from port individual consumption
10-08-2023 08:56 AM
Not that i know that worked for me before, instead i run the script and get the output and make NMS to use that values based on the input (bit if pain work, but that works)
10-08-2023 09:28 AM
Yeah, me too.
Run python script that log into switch, run command "show power inline police" and parse the output.
SNMP will be simplier but as long as i cannot find the operation power by interface is useless for me.
The MIB https://www.circitor.fr/Mibs/Html/P/POWER-ETHERNET-MIB.php => also does not show to me operation power by interface. Only Module / Available / Used / Remaining in total
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide