Power consumption via SNMP

Answered Question
Jul 14th, 2010
User Badges:

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.

Correct Answer by Ganesh Hariharan about 6 years 11 months ago

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

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
Correct Answer
Ganesh Hariharan Fri, 07/16/2010 - 03:08
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Member's Choice, February 2016

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

joncombe1 Fri, 07/16/2010 - 05:57
User Badges:

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.

Actions

This Discussion

Related Content