This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
sonic-buildimage/device
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
..
accton [Accton] AS4630-54TE Support SystemHealthMonitor (#8183) 2021-07-24 16:27:34 -07:00
alphanetworks [sonic-utilities] Update submodule; Build and install as a Python 3 wheel (#5926) 2020-11-25 10:28:36 -08:00
arista [Arista] Improve 7280CR3 platform configurations (#8234) 2021-07-24 13:42:27 -07:00
barefoot [barefoot][device] Drop platform API 1.0 (#7716) 2021-05-26 11:55:25 -07:00
broadcom Per-switching silicon Common config for Broadcom Supported Platforms (#7493) 2021-06-03 23:18:02 -07:00
celestica [device/celestica]: Fix failed test cases of Haliburton platform API (#7579) 2021-07-23 06:18:39 -07:00
centec [Centec][arm64] support new board E530-48s4x and E530-24x2q (#7189) 2021-05-01 10:37:07 -07:00
cig [sonic-utilities] Update submodule; Build and install as a Python 3 wheel (#5926) 2020-11-25 10:28:36 -08:00
common/pddf/plugins [sonic-utilities] Update submodule; Build and install as a Python 3 wheel (#5926) 2020-11-25 10:28:36 -08:00
dell DellEMC S6100: Determine pcie.yaml revision based on firmware (#7875) 2021-06-29 15:19:54 -07:00
delta [BCM Config] Update TD3 bcm.config files to use ISSU capable premium CANCUN 6.4.1 (#6651) 2021-02-02 21:48:26 -08:00
facebook/x86_64-facebook_wedge100-r0 In SAI 3.5 by default we are supporting 256 Group with 64 Memeber each. (#5400) 2020-09-22 11:21:12 -07:00
ingrasys [yang] update yang model, add autoneg to sonic-port (#5963) 2021-03-30 08:27:58 -07:00
inventec [yang] update yang model, add autoneg to sonic-port (#5963) 2021-03-30 08:27:58 -07:00
juniper [platform] Update QSFP method name 'parse_qsfp_dom_capability' -> 'parse_dom_capability' (#6695) 2021-02-05 14:41:05 -08:00
marvell [sonic-utilities] Update submodule; Build and install as a Python 3 wheel (#5926) 2020-11-25 10:28:36 -08:00
mellanox [Mellanox] [master] Added D48C40 SKU for 4600C platform (#8201) 2021-07-19 10:07:35 -07:00
mitac/x86_64-mitac_ly1200_b32h0_c3-r0 [sonic-utilities] Update submodule; Build and install as a Python 3 wheel (#5926) 2020-11-25 10:28:36 -08:00
nokia/armhf-nokia_ixs7215_52x-r0 [Nokia ixs7215] Platform API 2.0 improvements (#6787) 2021-02-23 09:25:14 -08:00
pegatron/x86_64-pegatron_porsche-r0 [sonic-utilities] Update submodule; Build and install as a Python 3 wheel (#5926) 2020-11-25 10:28:36 -08:00
quanta [Quanta] Add and update platform and device files (#6971) 2021-06-21 09:24:41 -07:00
ragile/x86_64-ragile_ra-b6510-48v8c-r0 [Platform/Ragile] Support RA-B6510-48v8c platform (#7620) 2021-06-03 10:51:01 -07:00
ruijie/x86_64-ruijie_b6510-48vs8cq-r0 [Ruijie] Add ruijie platform & device (#4954) 2021-02-24 16:45:27 -08:00
virtual/x86_64-kvm_x86_64-r0 Revert "[multi-asic][vs]: Add context_config.json files for multi-asic vs (#7697)" (#8147) 2021-07-11 15:00:04 -07:00
wnc/x86_64-wnc_osw1800-r0 [yang] update yang model, add autoneg to sonic-port (#5963) 2021-03-30 08:27:58 -07:00