Symptom
1. No SNMP trap was sent on any of Power Supply/FAN failure. Power Supply failure should be part of ENVMON traps, it is IOS code defect if it doesn't send trap.
2. Syslog on Power Supply/FAN are not being generated consistently. There are syslog message on one try, then no syslog message on another try. It is IOS code defect if it doesn't generate syslog consistently. The EEM is trying to catch syslog pattern and generate customer SNMP trap, but it is useless if syslog message is not even generated.
3. Syslog generated about FAN failure has no indication of which Chassis it's referring to.
the issue is not the logs are not sent, it's that the environmental alarm is not aware of the issue on PSU.
We tried changing the snmp-traps to all, however we did received the traps of PSU down, however not the traps for coming up.
When we enable all snmp traps except yslog today, we did receive traps of PSU going down, but inconsistent. In one test, both traps of PS3 and PS4 down shows up, and in another test, only PS3 shows up.
At 15:57, I did another test to shutdown PS3 and PS4 on Chassis-2. Following syslog shows up. But only PS3 down shows up in capture of SNMP traps. Attached C9606-PS3-shows-up.pcapng.
017069: Nov 3 2020 15:57:44.525 EST: %IOSXE_PEM-3-FANFAIL: The fan in P3/0 is encountering a failure condition
017070: Nov 3 2020 15:59:16.360 EST: %IOSXE_PEM-6-FANOK: The fan in P4/0 is functioning properly
017071: Nov 3 2020 15:59:18.007 EST: %IOSXE_PEM-6-PEMOK: The PEM in Chassis 2 slot P4 is functioning properly
017072: Nov 3 2020 15:59:18.956 EST: %IOSXE_PEM-6-PEMOK: The PEM in Chassis 2 slot P3 is functioning properly
Conditions
any manipulation with the PSU i.e. connecting/disconnecting/going bad does not create a syslog.
Further Problem Description
Syslog on Power Supply/FAN are not being generated consistently. There are syslog message on one try, then no syslog message on another try.