##################### Test Script ####################### root@sonic:/home/admin# [3/9633] root@sonic:/home/admin# cat thermal_test.py from sonic_platform.chassis import Chassis chas = Chassis() for thermal in chas.get_all_thermals(): print "Name:",thermal.get_name() print "Presence:",thermal.get_presence(),", Status:",thermal.get_status() print "Temperature:",thermal.get_temperature(),"C", \ ", High Threshold:",thermal.get_high_threshold(),"C\n" root@sonic:/home/admin# ########################################################### root@sonic:/home/admin# root@sonic:/home/admin# python thermal_test.py Name: CPU On-board Presence: True , Status: True Temperature: 36.700 C , High Threshold: 100.000 C Name: ASIC On-board Rear Presence: True , Status: True Temperature: 39.500 C , High Threshold: 85.000 C Name: System Front Left Presence: True , Status: True Temperature: 27.100 C , High Threshold: 50.000 C Name: System Front Right Presence: True , Status: True Temperature: 27.800 C , High Threshold: 50.000 C Name: CPU Core 0 Presence: True , Status: True Temperature: 31.000 C , High Threshold: 98.000 C Name: CPU Core 1 Presence: True , Status: True Temperature: 31.000 C , High Threshold: 98.000 C Name: CPU Core 2 Presence: True , Status: True Temperature: 31.000 C , High Threshold: 98.000 C Name: CPU Core 3 Presence: True , Status: True Temperature: 31.000 C , High Threshold: 98.000 C root@sonic:/home/admin# root@sonic:/home/admin#