#!/usr/bin/python from sonic_platform.chassis import Chassis a = Chassis() for thermal in a.get_all_thermals(): print "Name:",thermal.get_name() print "\tTemperature: {}C [{}]".format(thermal.get_temperature(), type(thermal.get_temperature())) print "\tLow Threshold: {}C [{}]".format(thermal.get_low_threshold(), type(thermal.get_low_threshold())) print "\tHigh Threshold: {}C [{}]".format(thermal.get_high_threshold(), type(thermal.get_high_threshold()))