Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Community Member

Power consumption via SNMP

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.

Everyone's tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions

Re: Power consumption via SNMP

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

2 REPLIES

Re: Power consumption via SNMP

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

Community Member

Re: Power consumption via SNMP

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.

7201
Views
5
Helpful
2
Replies
CreatePlease to create content