{"id":13,"date":"2008-12-12T06:56:06","date_gmt":"2008-12-12T13:56:06","guid":{"rendered":"https:\/\/www.rackbuzz.com\/?p=13"},"modified":"2011-01-22T12:31:54","modified_gmt":"2011-01-22T19:31:54","slug":"cisco-6509-temperature-monitoring-with-cacti","status":"publish","type":"post","link":"https:\/\/www.rackbuzz.com\/?p=13","title":{"rendered":"Cisco 6509 Temperature Monitoring with Cacti"},"content":{"rendered":"<p>Hey Everyone,<\/p>\n<p>I wanted to get some simple intake\/exhaust temperatures monitored with Cacti, but I hit a few snags. While I realize perfectly well that this is extremely old information, I couldn&#8217;t find anything about it on the InterTubes, so I&#8217;m going to post it to this little blog.<\/p>\n<p>I have several 6509 engines, some with slightly varying physical configurations. For example, one particular switch has 6408 blades in slots 3 and 4, and a SUP720 in slot 5. Another has only one 6408, in slot 2, and a SUP720 in slot 5. I was assuming that pulling these values would be a simple cake[snmp]walk, but it turns out things aren&#8217;t so simple.<\/p>\n<p>This is the relevant portion of the output from `sh env temp` on switch 1 (slots 3,4,5 populated) :<\/p>\n<pre><span style=\"color: #000000;\">module 3 outlet temperature: 32C<\/span>\r\n<span style=\"color: #000000;\">module 3 inlet temperature: 27C<\/span>\r\n<span style=\"color: #000000;\">module 4 outlet temperature: 33C<\/span>\r\n<span style=\"color: #000000;\">module 4 inlet temperature: 27C<\/span>\r\n<span style=\"color: #000000;\">module 5 outlet temperature: 36C<\/span>\r\n<span style=\"color: #000000;\">module 5 inlet temperature: 29C<\/span><\/pre>\n<p>And this is the output from Switch 2 (slots 2 and 5 populated) :<\/p>\n<pre>module 2 outlet temperature: 31C\r\nmodule 2 inlet temperature: 25C\r\nmodule 5 outlet temperature: 37C\r\nmodule 5 inlet temperature: 29C<\/pre>\n<p>Things are still hopeful at this point, but when I tried to create data templates for the OIDs, it got a little more interesting.\u00c2\u00a0 Using the OIDs returned from an snmpwalk of switch 2, I created data templates (and graph templates) in Cacti to graph the intake and exhaust temperatures for both slots. I discovered that these graphs were either inaccurate or broken when I applied them to switch 1.<\/p>\n<p>I have since discovered that the OID indexing is done by the number of slots populated, and not by the slot number itself. Even if every one of your switches has a SUP720 in slot 5, the correct OIDs to monitor any of the temperature sensors for slot 5 may be different depending on what is in slots 1-4.<\/p>\n<p>Here is the relevant output (with colors &amp; comments) from an snmpwalk of switch 1 (slots 3,4,5 populated) :<\/p>\n<pre><span style=\"color: #003366;\">enterprises.9.9.91.1.1.1.1.4.1001 = 1  &lt;-- Value for 1st populated slot (6408)\r\nenterprises.9.9.91.1.1.1.1.4.1002 = 32 <\/span><span><span style=\"color: #003366;\">&lt;-- Value for 1st populated slot\r\n<\/span><\/span><span style=\"color: #003366;\">enterprises.9.9.91.1.1.1.1.4.1003 = 27<\/span> <span><span style=\"color: #003366;\">&lt;-- Value for 1st populated slot\r\n<\/span><\/span><span style=\"color: #800000;\">enterprises.9.9.91.1.1.1.1.4.2001 = 1  &lt;-- Value for 2nd populated slot (6408)\r\nenterprises.9.9.91.1.1.1.1.4.2002 = 33 &lt;-- Value for 2nd populated slot\r\nenterprises.9.9.91.1.1.1.1.4.2003 = 27 &lt;-- Value for 2nd populated slot<\/span>\r\nenterprises.9.9.91.1.1.1.1.4.3002 = 1  &lt;-- Value for 3rd populated slot (SUP720)\r\nenterprises.9.9.91.1.1.1.1.4.3003 = 35 &lt;-- Value for 3rd populated slot\r\nenterprises.9.9.91.1.1.1.1.4.3004 = 29 &lt;-- Value for 3rd populated slot\r\nenterprises.9.9.91.1.1.1.1.4.3005 = 41 &lt;-- Value for 3rd populated slot\r\nenterprises.9.9.91.1.1.1.1.4.3006 = 42 &lt;-- Value for 3rd populated slot\r\nenterprises.9.9.91.1.1.1.1.4.3007 = 30 &lt;-- Value for 3rd populated slot\r\nenterprises.9.9.91.1.1.1.1.4.3008 = 30 &lt;-- Value for 3rd populated slot\r\nenterprises.9.9.91.1.1.1.1.4.3009 = 30 &lt;-- Value for 3rd populated slot\r\nenterprises.9.9.91.1.1.1.1.4.3010 = 31 &lt;-- Value for 3rd populated slot\r\nenterprises.9.9.91.1.1.1.1.4.3011 = 31 &lt;-- Value for 3rd populated slot\r\nenterprises.9.9.91.1.1.1.1.4.3012 = 30 &lt;-- Value for 3rd populated slot\r\nenterprises.9.9.91.1.1.1.1.4.3016 = 38 &lt;-- Value for 3rd populated slot\r\nenterprises.9.9.91.1.1.1.1.4.3017 = 37 &lt;-- Value for 3rd populated slot\r\nenterprises.9.9.91.1.1.1.1.4.3020 = 45 &lt;-- Value for 3rd populated slot\r\nenterprises.9.9.91.1.1.1.1.4.3021 = 25 &lt;-- Value for 3rd populated slot<\/pre>\n<p>Let&#8217;s compare this output to the same relevent section from switch 2 (slots 2,5 populated) :<\/p>\n<pre><span style=\"color: #003366;\">enterprises.9.9.91.1.1.1.1.4.1001 = 1  &lt;-- Value for 1st populated slot (6408)\r\nenterprises.9.9.91.1.1.1.1.4.1002 = 29 &lt;-- Value for 1st populated slot\r\nenterprises.9.9.91.1.1.1.1.4.1003 = 23 &lt;-- Value for 1st populated slot<\/span>\r\nenterprises.9.9.91.1.1.1.1.4.2002 = 1  &lt;-- Value for 2nd populated slot (SUP720)\r\nenterprises.9.9.91.1.1.1.1.4.2003 = 37 &lt;-- Value for 2nd populated slot\r\nenterprises.9.9.91.1.1.1.1.4.2004 = 29 &lt;-- Value for 2nd populated slot\r\nenterprises.9.9.91.1.1.1.1.4.2005 = 43 &lt;-- Value for 2nd populated slot\r\nenterprises.9.9.91.1.1.1.1.4.2006 = 43 &lt;-- Value for 2nd populated slot\r\nenterprises.9.9.91.1.1.1.1.4.2007 = 30 &lt;-- Value for 2nd populated slot\r\nenterprises.9.9.91.1.1.1.1.4.2008 = 29 &lt;-- Value for 2nd populated slot\r\nenterprises.9.9.91.1.1.1.1.4.2009 = 29 &lt;-- Value for 2nd populated slot\r\nenterprises.9.9.91.1.1.1.1.4.2010 = 29 &lt;-- Value for 2nd populated slot\r\nenterprises.9.9.91.1.1.1.1.4.2011 = 30 &lt;-- Value for 2nd populated slot\r\nenterprises.9.9.91.1.1.1.1.4.2012 = 30 &lt;-- Value for 2nd populated slot\r\nenterprises.9.9.91.1.1.1.1.4.2016 = 35 &lt;-- Value for 2nd populated slot\r\nenterprises.9.9.91.1.1.1.1.4.2017 = 35 &lt;-- Value for 2nd populated slot\r\nenterprises.9.9.91.1.1.1.1.4.2020 = 45 &lt;-- Value for 2nd populated slot\r\nenterprises.9.9.91.1.1.1.1.4.2021 = 26 &lt;-- Value for 2nd populated slot<\/pre>\n<p>A few things to note here:<\/p>\n<ul>\n<li>The index number for the SUP module changes depending on which slots above it are populated.<\/li>\n<li>The temperature values returned for the SUP module are significantly more comprehensive than those of the 6408 (this is a no-brainer, but it bears mentioning for ease of reading the output above.)<\/li>\n<li>The first entry for each of the 6408 OIDs is &#8220;x001&#8221; and the value is 1. The temperature readings are &#8220;x002&#8221; (exhaust) and &#8220;x003&#8221; (intake), but this is not the case for the SUP720. For the SUP270, the first OID returned is &#8220;x002&#8221;, and that value is 1. The temperature sensors for egress and ingress return on &#8220;x003&#8221; and &#8220;x004&#8221;, respectively. This throws a particularly nasty monkey wrench into the mix when trying to plot these values using data templates.<\/li>\n<\/ul>\n<p>Now that I know this information, I&#8217;m still stuck with a relatively kludgy solution: create individual data templates for each scenario and apply graphs on a per-device basis.\u00c2\u00a0 Since I like to automate things, this does stick in my craw, but because I have a fairly low number of 6509s and, as it turns out, only two different physical configuration layouts, it&#8217;s acceptable. For now.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hey Everyone, I wanted to get some simple intake\/exhaust temperatures monitored with Cacti, but I hit a few snags. While I realize perfectly well that this is extremely old information, I couldn&#8217;t find anything about it on the InterTubes, so I&#8217;m going to post it to this little blog. I have several 6509 engines, some [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[6,5],"class_list":["post-13","post","type-post","status-publish","format-standard","hentry","category-technology","tag-cacti","tag-mrtg"],"_links":{"self":[{"href":"https:\/\/www.rackbuzz.com\/index.php?rest_route=\/wp\/v2\/posts\/13","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rackbuzz.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rackbuzz.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rackbuzz.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rackbuzz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13"}],"version-history":[{"count":4,"href":"https:\/\/www.rackbuzz.com\/index.php?rest_route=\/wp\/v2\/posts\/13\/revisions"}],"predecessor-version":[{"id":79,"href":"https:\/\/www.rackbuzz.com\/index.php?rest_route=\/wp\/v2\/posts\/13\/revisions\/79"}],"wp:attachment":[{"href":"https:\/\/www.rackbuzz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rackbuzz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rackbuzz.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}