cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
14975
Views
5
Helpful
2
Replies

Power consumption via SNMP

joncombe1
Level 1
Level 1

I have been asked to collect data periodically from switches using SNMP.

The "show power" command gives me that information on the command line (see below), but I am unable to find this data via SNMP. Is this data available via SNMP? Does something specific have to be enabled to allow it? The switch in question is running the following software if it helps.

Cisco IOS Software, Catalyst 4500 L3 Switch Software  (cat4500e-ENTSERVICESK9-M), Version 12.2(53)SG2

show power
Power                                             Fan      Inline
Supply  Model No          Type       Status       Sensor   Status
------  ----------------  ---------  -----------  -------  -------
PS1     PWR-C45-4200ACV   AC 4200W   good         good     good
PS1-1                         220V   good
PS1-2                         220V   good
PS2     PWR-C45-4200ACV   AC 4200W   good         good     good
PS2-1                         220V   good
PS2-2                         220V   good

Power supplies needed by system    : 1
Power supplies currently available : 2

Power Summary                      Maximum
(in Watts)              Used     Available
----------------------   ----     ---------
System Power (12V)       1162        1360
Inline Power (-50V)      1007        2998
Backplane Power (3.3V)     40          40
----------------------   ----     ---------
Total                    2209 (not to exceed Total Maximum Available = 4200)

Power Measurement    Inline Power (-50V)
(in Watts)             (+/- 50Watts)
------------------   -------------------
PS1                         350
PS2                         350
------------------   -------------------
Total                       700

Thanks for any help.

Jon.

1 Accepted Solution

Accepted Solutions

Ganesh Hariharan
VIP Alumni
VIP Alumni

I have been asked to collect data periodically from switches using SNMP.

The "show power" command gives me that information on the command line (see below), but I am unable to find this data via SNMP. Is this data available via SNMP? Does something specific have to be enabled to allow it? The switch in question is running the following software if it helps.

Cisco IOS Software, Catalyst 4500 L3 Switch Software  (cat4500e-ENTSERVICESK9-M), Version 12.2(53)SG2

show power
Power                                             Fan      Inline
Supply  Model No          Type       Status       Sensor   Status
------  ----------------  ---------  -----------  -------  -------
PS1     PWR-C45-4200ACV   AC 4200W   good         good     good
PS1-1                         220V   good
PS1-2                         220V   good
PS2     PWR-C45-4200ACV   AC 4200W   good         good     good
PS2-1                         220V   good
PS2-2                         220V   good

Power supplies needed by system    : 1
Power supplies currently available : 2

Power Summary                      Maximum
(in Watts)              Used     Available
----------------------   ----     ---------
System Power (12V)       1162        1360
Inline Power (-50V)      1007        2998
Backplane Power (3.3V)     40          40
----------------------   ----     ---------
Total                    2209 (not to exceed Total Maximum Available = 4200)

Power Measurement    Inline Power (-50V)
(in Watts)             (+/- 50Watts)

Hi,

Try with below mib for power consumption OID is available as long as cdp is enabled.

Perhaps one of these MIBs will display the info you are looking for.

cefcFRUPowerSupplyGroupTable.1.1
cefcFRUPowerSupplyGroupTable.1.2
cefcFRUPowerSupplyGroupTable.1.3
cefcFRUPowerSupplyGroupTable.1.4
cefcFRUPowerSupplyGroupTable.1.5
cefcFRUPowerStatusTable.1.1
cefcFRUPowerStatusTable.1.2
cefcFRUPowerStatusTable.1.3
cefcMaxDefaultInLinePower
cefcFRUPowerSupplyValueTable.1.1
cefcFRUPowerSupplyValueTable.1.2
cefcFRUPowerSupplyValueTable.1.3
cefcFRUPowerSupplyValueTable.1.4
ciscoEntityFRUControlMIB.1.1.5

Hope to help !!

Ganesh.H

Remember to rate the helpful post

View solution in original post

2 Replies 2

Ganesh Hariharan
VIP Alumni
VIP Alumni

I have been asked to collect data periodically from switches using SNMP.

The "show power" command gives me that information on the command line (see below), but I am unable to find this data via SNMP. Is this data available via SNMP? Does something specific have to be enabled to allow it? The switch in question is running the following software if it helps.

Cisco IOS Software, Catalyst 4500 L3 Switch Software  (cat4500e-ENTSERVICESK9-M), Version 12.2(53)SG2

show power
Power                                             Fan      Inline
Supply  Model No          Type       Status       Sensor   Status
------  ----------------  ---------  -----------  -------  -------
PS1     PWR-C45-4200ACV   AC 4200W   good         good     good
PS1-1                         220V   good
PS1-2                         220V   good
PS2     PWR-C45-4200ACV   AC 4200W   good         good     good
PS2-1                         220V   good
PS2-2                         220V   good

Power supplies needed by system    : 1
Power supplies currently available : 2

Power Summary                      Maximum
(in Watts)              Used     Available
----------------------   ----     ---------
System Power (12V)       1162        1360
Inline Power (-50V)      1007        2998
Backplane Power (3.3V)     40          40
----------------------   ----     ---------
Total                    2209 (not to exceed Total Maximum Available = 4200)

Power Measurement    Inline Power (-50V)
(in Watts)             (+/- 50Watts)

Hi,

Try with below mib for power consumption OID is available as long as cdp is enabled.

Perhaps one of these MIBs will display the info you are looking for.

cefcFRUPowerSupplyGroupTable.1.1
cefcFRUPowerSupplyGroupTable.1.2
cefcFRUPowerSupplyGroupTable.1.3
cefcFRUPowerSupplyGroupTable.1.4
cefcFRUPowerSupplyGroupTable.1.5
cefcFRUPowerStatusTable.1.1
cefcFRUPowerStatusTable.1.2
cefcFRUPowerStatusTable.1.3
cefcMaxDefaultInLinePower
cefcFRUPowerSupplyValueTable.1.1
cefcFRUPowerSupplyValueTable.1.2
cefcFRUPowerSupplyValueTable.1.3
cefcFRUPowerSupplyValueTable.1.4
ciscoEntityFRUControlMIB.1.1.5

Hope to help !!

Ganesh.H

Remember to rate the helpful post

Thank you so much Ganesh that has answered my question.

I converted the first value to the numeric version:-

1.3.6.1.4.1.9.9.117.1.1.1

Then via SNMP I get these outputs


SNMPv2-SMI::enterprises.9.9.117.1.1.1.1.1.15 = INTEGER: 2
SNMPv2-SMI::enterprises.9.9.117.1.1.1.1.2.15 = STRING: "centiAmpsAt12V"
SNMPv2-SMI::enterprises.9.9.117.1.1.1.1.3.15 = INTEGER: 11333
SNMPv2-SMI::enterprises.9.9.117.1.1.1.1.4.15 = INTEGER: 9683
SNMPv2-SMI::enterprises.9.9.117.1.1.1.1.5.15 = INTEGER: 2

I remember that to calculate power consumption in watts it's current * voltage. As this value is in Centi Amps it's 11333*0.01*12 = 1359.96


This matches the reported values I seen via the telnet interface:-

Power Summary                      Maximum
(in Watts)              Used     Available
----------------------   ----     ---------
System Power (12V)       1162        1360

So I'm confident it's giving me the correct values. Thanks again for your help.

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:

Review Cisco Networking products for a $25 gift card