sonic-net / sonic-platform-daemons

Platform module daemons for SONiC
Other
23 stars 152 forks source link

Syslog for transceiver high/low temperature alarm #465

Open chiourung opened 6 months ago

chiourung commented 6 months ago

Add syslog for high/low temperature alarm/warning(compare the temperature with threshold)

Description

Add syslog for high/low temperature alarm/warning(compare the temperature with threshold)

Motivation and Context

The ZR transceiver has a protective mechanism that shuts down the transceiver when the temperature is high. However, the user is not aware when the ZR shuts down due to high temperature. Add syslog for this situation.

How Has This Been Tested?

syslog:

NOTICE pmon#xcvrd: Ethernet504: temperature status change from normal to temperature high warning

NOTICE pmon#xcvrd: Ethernet504: temperature status change from temperature high warning to temperature high alarm

NOTICE pmon#xcvrd: Ethernet504: temperature status change from temperature high alarm to normal

NOTICE pmon#xcvrd: Ethernet480: temperature status change from normal to temperature high warning

NOTICE pmon#xcvrd: Ethernet488: temperature status change from normal to temperature high warning

NOTICE pmon#xcvrd: Ethernet480: temperature status change from temperature high warning to temperature high alarm

NOTICE pmon#xcvrd: Ethernet488: temperature status change from temperature high warning to normal

NOTICE pmon#xcvrd: Ethernet480: temperature status change from temperature high alarm to normal

Additional Information (Optional)

prgeor commented 6 months ago

@chiourung please fix teh build failrue

prgeor commented 5 months ago

@chiourung Please update these secions

Description Motivation and Contex