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

How trap PWRMON-2-MODULE_FAILURE trough SNMP?

Hi,

 

We have an Cisco ASR9010 (IOS-XR) some messages regarding power supply failures.

pwrmon[379]: %PLATFORM-PWRMON-2-MODULE_FAILURE : Power-module 0/PM0/SP failure condition raised

 

The problem is that we did not receive any traps of this. Cisco told us there exists no SNMP trap for this and we need to poll the status. Does any one know what OID to be used of how we can read the status with SNMP?

 

Kindly regards,

 

Maikel

1 Accepted Solution

Accepted Solutions

AFROJ AHMAD
Cisco Employee
Cisco Employee

Hi Maikel,

To check the power supply status::

 

ASR9k supports the entity mib 1.3.6.1.2.1.47, which will give you the entity for PEMs and
supports the ciscoEntityFRUControlMIB 1.3.6.1.4.1.9.9.117 to check the status of the
entity.

For example here I have 2 AC PEMs, one is connected to the power and another is not:

RP/0/RSP0/CPU0#admin show environment power-supply
R/S/I   Modules         Capacity        Status
                        (W)
0/PM0/*
        host    PM      3000            Ok

0/PM1/*
        host    PM      0               Unpowered


:~$ snmpwalk -v2c -c lan-1 1.3.6.1.2.1.47.1.1.1.1.2 | grep -i "ac power mod"
ENTITY-MIB::entPhysicalDescr.21657197 = STRING: 3kW AC Power Module
ENTITY-MIB::entPhysicalDescr.66531208 = STRING: 3kW AC Power Module

:~$ snmpwalk -v2c -c lan-1 1.3.6.1.2.1.47.1.1.1.1.7 | grep -i "power-mod"
ENTITY-MIB::entPhysicalName.21657197 = STRING: power-module 0/PM1/SP
ENTITY-MIB::entPhysicalName.66531208 = STRING: power-module 0/PM0/SP

:~$ snmpwalk -v2c -c lan-1 1.3.6.1.4.1.9.9.117.1.1.2.1.2.66531208
CISCO-SMI::ciscoMgmt.117.1.1.2.1.2.66531208 = INTEGER: 2

:~$ snmpwalk -v2c -c lan-1 1.3.6.1.4.1.9.9.117.1.1.2.1.2.21657197
CISCO-SMI::ciscoMgmt.117.1.1.2.1.2.21657197 = INTEGER: 1

2 means On and 1 is OFF
http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInp
ut=1.3.6.1.4.1.9.9.117.1.1.2.1.2#oidContent


Note, to poll ciscoEntityFRUControlMIB we need to add systemowner to the community
configuration on the ASR:
!
 snmp-server community ww SystemOwner
!

 

Hope it will help

 

Thanks-

Afroz

***Ratings Encourages Contributors *****

Thanks- Afroz [Do rate the useful post] ****Ratings Encourages Contributors ****

View solution in original post

2 Replies 2

AFROJ AHMAD
Cisco Employee
Cisco Employee

Hi Maikel,

To check the power supply status::

 

ASR9k supports the entity mib 1.3.6.1.2.1.47, which will give you the entity for PEMs and
supports the ciscoEntityFRUControlMIB 1.3.6.1.4.1.9.9.117 to check the status of the
entity.

For example here I have 2 AC PEMs, one is connected to the power and another is not:

RP/0/RSP0/CPU0#admin show environment power-supply
R/S/I   Modules         Capacity        Status
                        (W)
0/PM0/*
        host    PM      3000            Ok

0/PM1/*
        host    PM      0               Unpowered


:~$ snmpwalk -v2c -c lan-1 1.3.6.1.2.1.47.1.1.1.1.2 | grep -i "ac power mod"
ENTITY-MIB::entPhysicalDescr.21657197 = STRING: 3kW AC Power Module
ENTITY-MIB::entPhysicalDescr.66531208 = STRING: 3kW AC Power Module

:~$ snmpwalk -v2c -c lan-1 1.3.6.1.2.1.47.1.1.1.1.7 | grep -i "power-mod"
ENTITY-MIB::entPhysicalName.21657197 = STRING: power-module 0/PM1/SP
ENTITY-MIB::entPhysicalName.66531208 = STRING: power-module 0/PM0/SP

:~$ snmpwalk -v2c -c lan-1 1.3.6.1.4.1.9.9.117.1.1.2.1.2.66531208
CISCO-SMI::ciscoMgmt.117.1.1.2.1.2.66531208 = INTEGER: 2

:~$ snmpwalk -v2c -c lan-1 1.3.6.1.4.1.9.9.117.1.1.2.1.2.21657197
CISCO-SMI::ciscoMgmt.117.1.1.2.1.2.21657197 = INTEGER: 1

2 means On and 1 is OFF
http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInp
ut=1.3.6.1.4.1.9.9.117.1.1.2.1.2#oidContent


Note, to poll ciscoEntityFRUControlMIB we need to add systemowner to the community
configuration on the ASR:
!
 snmp-server community ww SystemOwner
!

 

Hope it will help

 

Thanks-

Afroz

***Ratings Encourages Contributors *****

Thanks- Afroz [Do rate the useful post] ****Ratings Encourages Contributors ****

Works like you said. Thanks for the help.