{"id":727,"date":"2023-12-17T13:10:23","date_gmt":"2023-12-17T18:10:23","guid":{"rendered":"http:\/\/csic.som.emory.edu\/~lzhou\/blogs\/?p=727"},"modified":"2023-12-17T13:10:23","modified_gmt":"2023-12-17T18:10:23","slug":"mellanox-msn2100-switch-fan-tolerance","status":"publish","type":"post","link":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/?p=727","title":{"rendered":"Mellanox MSN2100 Switch fan tolerance"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">My Mellanox MSN2100 switch constantly has the &#8220;system status&#8221; LED on red since purchase.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By looking into its system status:<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">show system-health detail<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">System status summary<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">System status LED red<br>Services:<br>Status: OK<br>Hardware:<br>Status: Not OK<br>Reasons: Failed to get speed tolerance for fan4<br>Failed to get speed tolerance for fan3<br>Failed to get speed tolerance for fan2<br>Failed to get speed tolerance for fan1<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">System services and devices monitor list<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Name Status Type<br>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;-<br>sonic OK System<br>rsyslog OK Process<br>root-overlay OK Filesystem<br>var-log OK Filesystem<br>routeCheck OK Program<br>dualtorNeighborCheck OK Program<br>diskCheck OK Program<br>container_checker OK Program<br>vnetRouteCheck OK Program<br>memory_check OK Program<br>container_memory_snmp OK Program<br>container_memory_gnmi OK Program<br>container_eventd OK Program<br>database:redis OK Process<br>syncd:syncd OK Process<br>bgp:zebra OK Process<br>bgp:staticd OK Process<br>bgp:bgpd OK Process<br>bgp:fpmsyncd OK Process<br>bgp:bgpcfgd OK Process<br>teamd:teammgrd OK Process<br>teamd:teamsyncd OK Process<br>teamd:tlm_teamd OK Process<br>swss:orchagent OK Process<br>swss:portsyncd OK Process<br>swss:neighsyncd OK Process<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">swss:fdbsyncd OK Process<br>swss:vlanmgrd OK Process<br>swss:intfmgrd OK Process<br>swss:portmgrd OK Process<br>swss:buffermgrd OK Process<br>swss:vrfmgrd OK Process<br>swss:nbrmgrd OK Process<br>swss:vxlanmgrd OK Process<br>swss:coppmgrd OK Process<br>swss:tunnelmgrd OK Process<br>eventd:eventd OK Process<br>snmp:snmpd OK Process<br>snmp:snmp-subagent OK Process<br>lldp:lldpd OK Process<br>lldp:lldp-syncd OK Process<br>lldp:lldpmgrd OK Process<br>gnmi:gnmi-native OK Process<br>fan1 Not OK Fan<br>fan2 Not OK Fan<br>fan3 Not OK Fan<br>fan4 Not OK Fan<br>ASIC OK ASIC<br>PSU 1 OK PSU<br>PSU 2 OK PSU<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">System services and devices ignore list<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Name Status Type<br>&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8211; &#8212;&#8212;<br>psu.voltage Ignored Device<br>psu.temperature Ignored Device<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It shows that it cannot obtain fan tolerance data from the database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Researching the system files, it is found in file \/usr\/local\/lib\/python3.9\/dist-packages\/sonic_platform\/fan.py, the fan tolerance is hard set to 50%.  And this is not passed to \/usr\/local\/lib\/python3.9\/dist-packages\/health_checker\/hardware_checker.py via function data_dict.get(&#8216;speed_tolerance&#8217;, None)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There is a simple fix of this: comment out the line #105 of the hardware_checker.py , replace it a hard setting<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">speed_tolerance = 50<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And the system status LED turns green.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>My Mellanox MSN2100 switch constantly has the &#8220;system status&#8221; LED on red since purchase. By looking into its system status: show system-health detail System status summary System status LED redServices:Status: OKHardware:Status: Not OKReasons: Failed to get speed tolerance for fan4Failed to get speed tolerance for fan3Failed to get speed tolerance for fan2Failed to get speed [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,3],"tags":[],"class_list":["post-727","post","type-post","status-publish","format-standard","hentry","category-computer-tips","category-mri-technical-support","post-blog"],"_links":{"self":[{"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=\/wp\/v2\/posts\/727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=727"}],"version-history":[{"count":1,"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=\/wp\/v2\/posts\/727\/revisions"}],"predecessor-version":[{"id":728,"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=\/wp\/v2\/posts\/727\/revisions\/728"}],"wp:attachment":[{"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=727"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}