cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
811
Views
1
Helpful
4
Replies

Power over Ethernet - OID

jakubgm
Level 1
Level 1

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

jakubgm_0-1696600165059.png


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?



4 Replies 4

jakubgm
Level 1
Level 1

Hi,

read it already but as understood the OID return only: "Available: Used: Remaining:" value and looking for the value from port individual consumption 

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)

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

jakubgm
Level 1
Level 1

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

Review Cisco Networking for a $25 gift card