sonic-buildimage/device/accton
SeanWu fed8957b47
[Accton] AS4630-54TE Support SystemHealthMonitor (#8183)
1. Implement FanDrawer-Fan hierarchy.
2. Enable thermalctld, disable pcied.
3. Implement SystemLED in Chassis.
4. Correct Fan direction
5. Implement require Fan APIs for SystemHealthMonitoring.
6. Handle non-ascii character while reading PSU model/serial num.

```
Check if System-health can pass the check and display the SystemLED correctly.


///////// booting, DIAG_LED = GREEN_BLINKING /////////

root@sonic:/tmp# show system-health detail 
System is currently booting...
root@sonic:/tmp# cat /sys/class/leds/diag/brightness 
5


///////// container_checker fail, DIAG_LED = AMBER /////////

root@sonic:/sys/bus/i2c/devices# show system-health detail
System status summary

  System status LED  STATUS_LED_COLOR_AMBER
  Services:
    Status: OK
  Hardware:
    Status: Not OK
    Reasons: container_checker is not Status ok

System services and devices monitor list

Name                        Status    Type
--------------------------  --------  ----------
container_checker           Not OK    Program
sonic                       OK        System
rsyslog                     OK        Process
root-overlay                OK        Filesystem
var-log                     OK        Filesystem
routeCheck                  OK        Program
diskCheck                   OK        Program
container_memory_telemetry  OK        Program
FAN-1F                      OK        Fan
FAN-1R                      OK        Fan
FAN-2F                      OK        Fan
FAN-2R                      OK        Fan
FAN-3F                      OK        Fan
FAN-3R                      OK        Fan
PSU-1 FAN-1                 OK        Fan
PSU-2 FAN-1                 OK        Fan
PSU 1                       OK        PSU
PSU 2                       OK        PSU

System services and devices ignore list

Name             Status    Type
---------------  --------  ------
asic             Ignored   Device
psu.temperature  Ignored   Device

///////// skip container_checker, DIAG_LED = GREEN /////////

root@sonic:/sys/bus/i2c/devices# vi /usr/share/sonic/device/x86_64-accton_as4630_54te-r0/system_health_monitoring_config.json 
root@sonic:/sys/bus/i2c/devices# 
root@sonic:/sys/bus/i2c/devices# 
root@sonic:/sys/bus/i2c/devices# show system-health detail
System status summary

  System status LED  STATUS_LED_COLOR_GREEN
  Services:
    Status: OK
  Hardware:
    Status: OK

System services and devices monitor list

Name                        Status    Type
--------------------------  --------  ----------
sonic                       OK        System
rsyslog                     OK        Process
root-overlay                OK        Filesystem
var-log                     OK        Filesystem
routeCheck                  OK        Program
diskCheck                   OK        Program
container_memory_telemetry  OK        Program
FAN-1F                      OK        Fan
FAN-1R                      OK        Fan
FAN-2F                      OK        Fan
FAN-2R                      OK        Fan
FAN-3F                      OK        Fan
FAN-3R                      OK        Fan
PSU-1 FAN-1                 OK        Fan
PSU-2 FAN-1                 OK        Fan
PSU 1                       OK        PSU
PSU 2                       OK        PSU

System services and devices ignore list

Name               Status    Type
-----------------  --------  -------
container_checker  Ignored   Service
psu.temperature    Ignored   Device
asic               Ignored   Device
```


Signed-off-by: Sean Wu <sean_wu@edge-core.com>
2021-07-24 16:27:34 -07:00
..
x86_64-accton_as4630_54pe-r0 [accton] Add sensors.conf to multiple models (#7494) 2021-05-12 12:42:20 -07:00
x86_64-accton_as4630_54te-r0 [Accton] AS4630-54TE Support SystemHealthMonitor (#8183) 2021-07-24 16:27:34 -07:00
x86_64-accton_as5712_54x-r0 [accton] Add sensors.conf to multiple models (#7494) 2021-05-12 12:42:20 -07:00
x86_64-accton_as5812_54t-r0 [accton] Add sensors.conf to multiple models (#7494) 2021-05-12 12:42:20 -07:00
x86_64-accton_as5812_54x-r0 [accton] Add sensors.conf to multiple models (#7494) 2021-05-12 12:42:20 -07:00
x86_64-accton_as5835_54t-r0 [accton] Add sensors.conf to multiple models (#7494) 2021-05-12 12:42:20 -07:00
x86_64-accton_as5835_54x-r0 [AS5835-54x] Add get_status api and fix bug to fan.py (#7784) 2021-06-03 08:43:26 -07:00
x86_64-accton_as6712_32x-r0 [accton] Add sensors.conf to multiple models (#7494) 2021-05-12 12:42:20 -07:00
x86_64-accton_as7116_54x-r0 [platform] Update QSFP method name 'parse_qsfp_dom_capability' -> 'parse_dom_capability' (#6695) 2021-02-05 14:41:05 -08:00
x86_64-accton_as7212_54x-r0 [sonic-utilities] Update submodule; Build and install as a Python 3 wheel (#5926) 2020-11-25 10:28:36 -08:00
x86_64-accton_as7312_54x-r0 [sonic-platform-common] Update submodule (#6742) 2021-02-10 06:12:49 -08:00
x86_64-accton_as7312_54xs-r0 [sonic-utilities] Update submodule; Build and install as a Python 3 wheel (#5926) 2020-11-25 10:28:36 -08:00
x86_64-accton_as7315_27xb-r0 [accton] Add sensors.conf to multiple models (#7494) 2021-05-12 12:42:20 -07:00
x86_64-accton_as7326_56x-r0 [accton]: Support LED (1G) on AS7326-56X (#8185) 2021-07-16 07:47:05 -07:00
x86_64-accton_as7512_32x-r0 [sonic-utilities] Update submodule; Build and install as a Python 3 wheel (#5926) 2020-11-25 10:28:36 -08:00
x86_64-accton_as7712_32x-r0 [accton] Add sensors.conf to multiple models (#7494) 2021-05-12 12:42:20 -07:00
x86_64-accton_as7716_32x-r0 [accton] Add sensors.conf to multiple models (#7494) 2021-05-12 12:42:20 -07:00
x86_64-accton_as7716_32xb-r0 [sonic-utilities] Update submodule; Build and install as a Python 3 wheel (#5926) 2020-11-25 10:28:36 -08:00
x86_64-accton_as7726_32x-r0 [accton] Add sensors.conf to multiple models (#7494) 2021-05-12 12:42:20 -07:00
x86_64-accton_as7816_64x-r0 [accton] Add sensors.conf to multiple models (#7494) 2021-05-12 12:42:20 -07:00
x86_64-accton_as9716_32d-r0 [accton] Add sensors.conf to multiple models (#7494) 2021-05-12 12:42:20 -07:00
x86_64-accton_as9726_32d-r0 [Platform] Accton add to support as9726-32d platform. (#7479) 2021-05-11 19:06:36 -07:00
x86_64-accton_minipack-r0 [sonic-utilities] Update submodule; Build and install as a Python 3 wheel (#5926) 2020-11-25 10:28:36 -08:00