############################ Test Script ######################### root@sonic:/home/admin# root@sonic:/home/admin# cat thermal_test.py from sonic_platform.chassis import Chassis chas = Chassis() for a in chas.get_all_thermals(): print "Name:",a.get_name() print "Presence:",a.get_presence(),", Status:",a.get_status() print "Temperature:",a.get_temperature(),"C", \ ", High Threshold:",a.get_high_threshold(),"C\n" ################################################################### root@sonic:/home/admin# python thermal_test.py Name: ASIC On-board Presence: True , Status: True Temperature: 32.687 C , High Threshold: 50.000 C Name: NIC Presence: True , Status: True Temperature: 30.562 C , High Threshold: 50.000 C Name: System Front Presence: True , Status: True Temperature: 30.812 C , High Threshold: 50.000 C Name: DIMM Presence: True , Status: True Temperature: 34.000 C , High Threshold: 85.000 C Name: PSU1-Sensor 1 Presence: True , Status: True Temperature: 34.500 C , High Threshold: 100.000 C Name: PSU1-Sensor 2 Presence: True , Status: True Temperature: 34.500 C , High Threshold: 100.000 C Name: PSU2-Sensor 1 Presence: True , Status: True Temperature: 34.500 C , High Threshold: 100.000 C Name: PSU2-Sensor 2 Presence: True , Status: True Temperature: 34.000 C , High Threshold: 100.000 C Name: CPU Core 0 Presence: True , Status: True Temperature: 30.000 C , High Threshold: 95.000 C Name: CPU Core 1 Presence: True , Status: True Temperature: 29.000 C , High Threshold: 95.000 C root@sonic:/home/admin#