TWSD-1228: AVX power supply–related warnings are not displaying the appropriate power supply unit name when a failure occurs

Review Request #1160 — Created Nov. 14, 2025 and updated

ngurunathan
AVX2
AVX_2_7_5
TWSD-1228
bsrivalli, stevenku, weikai, wli

Made changes to display power supply unit name when failure occurs in /var/log/avx.log. Also made changes in "show system warn" code to display failed power supply unit name.

Before fix:
AVX#tailf /var/log/avx.log
ALERT 2025 Nov 14 04:09:07 Backup power fail.

AN(config)#sh system warn
One of the power supplies has failed.

After fix:
AVX#tailf /var/log/avx.log
ALERT 2025 Nov 14 04:09:07 Backup power(PSU 1) fail.

AN(config)#sh system warn
One of the power supplies has failed. PSU 1 has failed.

Loading...