<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ipunct &#187; Cisco</title>
	<atom:link href="http://www.ipunct.net/blog/category/cisco/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ipunct.net</link>
	<description>IT-Lösungen auf den Punkt gebracht</description>
	<lastBuildDate>Sun, 05 Sep 2010 12:37:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Cisco Catalyst 2970 monitoring via SNMP</title>
		<link>http://www.ipunct.net/blog/2009/03/cisco-catalyst-2970-monitoring-via-snmp/</link>
		<comments>http://www.ipunct.net/blog/2009/03/cisco-catalyst-2970-monitoring-via-snmp/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 14:29:56 +0000</pubDate>
		<dc:creator>Mario Rasser</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[SNMP]]></category>
		<category><![CDATA[Catalayst]]></category>
		<category><![CDATA[NagiosGrapher]]></category>

		<guid isPermaLink="false">http://blog.ipunct.net/?p=3</guid>
		<description><![CDATA[This article will explain some parts of monitoring a Cisco Catalyst 2970 switch via SNMP and Nagios. Together with NagiosGrapher it gets an powerful combination to have a longtime overview about that device and you can create nice graphics like that: Prepare the switch for SNMP requests from a SNMP polling host (here 192.168.200.200) : [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">This article will explain some parts of monitoring a<strong> <a href="http://www.cisco.com"target="_blank"rel="external"title="Cisco" >Cisco</a> Catalyst 2970</strong> switch via <strong>SNMP</strong> and <strong><a href="http://www.nagios.org"target="_blank"rel="external"title="Nagios" >Nagios</a></strong>. Together with NagiosGrapher it gets an powerful combination to have a longtime overview about that device and you can create nice graphics like that:</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-4" title="switch_gigabitethernet0_10_1current" src="http://www.ipunct.net/wp-content/uploads/2009/03/switch_gigabitethernet0_10_1current.png" alt="switch_gigabitethernet0_10_1current" width="490" height="223" /></p>
<h4>Prepare the switch for SNMP requests from a SNMP polling host (here <code>192.168.200.200)</code> :</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">access-list <span style="color: #000000;">60</span> permit 192.168.200.200
snmp-server community yoursnmpcommunitystring RO <span style="color: #000000;">60</span>
snmp-server location <span style="color: #ff0000;">&quot;near the backbone&quot;</span>
snmp-server contact <span style="color: #ff0000;">&quot;admin@myswitch.de&quot;</span></pre></div></div>

<p style="text-align: left;"><span id="more-7"></span></p>
<h4>Play around with SNMP</h4>
<p>First install snmp and get the CISCO-MIBS and install them on your system (optional).</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> snmp
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp.cisco.com<span style="color: #000000; font-weight: bold;">/</span>pub<span style="color: #000000; font-weight: bold;">/</span>mibs<span style="color: #000000; font-weight: bold;">/</span>v2<span style="color: #000000; font-weight: bold;">/</span>v2.tar.gz</pre></div></div>

<p>Extract the needed MIBS from the <code>v2.tar.gz</code>, e.g. <code>CISCO-ENVMON-MIB.my</code> to <code>/usr/share/snmp/mibs/CISCO-ENVMON-MIB.my</code>. Maybe you&#8217;ve to have a look in the files dependencies.</p>
<p>Get some Status information from the ENVMON mib:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">snmpwalk <span style="color: #660033;">-m</span> CISCO-ENVMON-MIB <span style="color: #660033;">-v2c</span> <span style="color: #660033;">-OS</span> <span style="color: #660033;">-c</span>  yoursnmpcommunitystring switch-fqdn .1.3.6.1.4.1.9.9.13
CISCO-ENVMON-MIB::ciscoEnvMonPresent.0 = INTEGER: <span style="color: #000000;">100</span>
CISCO-ENVMON-MIB::ciscoEnvMonFanStatusDescr.1004 = STRING: Switch<span style="color: #666666; font-style: italic;">#1, Fan#1, Status is Normal</span>
CISCO-ENVMON-MIB::ciscoEnvMonFanState.1004 = INTEGER: normal<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
CISCO-ENVMON-MIB::ciscoEnvMonSupplyStatusDescr.1003 = STRING: Switch<span style="color: #666666; font-style: italic;">#1, PowerSupply#1, Status is Normal, RPS Not Present</span>
CISCO-ENVMON-MIB::ciscoEnvMonSupplyState.1003 = INTEGER: normal<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
CISCO-ENVMON-MIB::ciscoEnvMonSupplySource.1003 = INTEGER: ac<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
CISCO-ENVMON-MIB::ciscoEnvMonEnableShutdownNotification.0 = INTEGER: <span style="color: #c20cb9; font-weight: bold;">false</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
CISCO-ENVMON-MIB::ciscoEnvMonEnableTemperatureNotification.0 = INTEGER: <span style="color: #c20cb9; font-weight: bold;">false</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
CISCO-ENVMON-MIB::ciscoEnvMonEnableFanNotification.0 = INTEGER: <span style="color: #c20cb9; font-weight: bold;">false</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
CISCO-ENVMON-MIB::ciscoEnvMonEnableRedundantSupplyNotification.0 = INTEGER: <span style="color: #c20cb9; font-weight: bold;">false</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
CISCO-ENVMON-MIB::ciscoEnvMonEnableStatChangeNotif.0 = INTEGER: <span style="color: #c20cb9; font-weight: bold;">false</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>.. as you can see you can get health information like PowerSupply and FanStatus informations. We can use these SNMP values in Nagios to monitor the PSU and Fan status.</p>
<p>You can find further informations about the CISCO Enterprise SNMP tree <a href="http://support.ipmonitor.com/mibs_byoidtree.aspx?oid=.1.3.6.1.4.1.9.9#h">here.</a></p>
<p>Looking around in the tree, you will find many information that you want to monitor.
<ul class="socialwrap size24 row">
<li class="iconOnly share">Teilen:</li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="delicious" href="http://delicious.com/post?url=http%3A%2F%2Fwww.ipunct.net%2Fblog%2F2009%2F03%2Fcisco-catalyst-2970-monitoring-via-snmp%2F&amp;title=Cisco+Catalyst+2970+monitoring+via+SNMP" title="Bookmark this post : Cisco Catalyst 2970 monitoring via SNMP on Delicious"><span class="head">Delicious</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="digg" href="http://digg.com/submit?url=http%3A%2F%2Fwww.ipunct.net%2Fblog%2F2009%2F03%2Fcisco-catalyst-2970-monitoring-via-snmp%2F&amp;title=Cisco+Catalyst+2970+monitoring+via+SNMP&amp;bodytext=This+article+will+explain+some+parts+of+monitoring+a+Cisco+Catalyst+2970+switch+via+SNMP+and+Nagios.+Together+with+NagiosGrapher+it+gets+an+powerful+combination+to+have+a+longtime+overview+about+that+device+and+you+can+create+nice+graphics+like+that%3A%0A%0A%0APrepare+the+switch+for+SNMP+requests+from+a+SNMP+polling+host+%28here" title="Digg this post : Cisco Catalyst 2970 monitoring via SNMP"><span class="head">Digg this post</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="facebook" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.ipunct.net%2Fblog%2F2009%2F03%2Fcisco-catalyst-2970-monitoring-via-snmp%2F&amp;t=Cisco+Catalyst+2970+monitoring+via+SNMP" title="Recommend this post : Cisco Catalyst 2970 monitoring via SNMP on Facebook"><span class="head">Facebook</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="linkedin" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.ipunct.net%2Fblog%2F2009%2F03%2Fcisco-catalyst-2970-monitoring-via-snmp%2F&amp;title=Cisco+Catalyst+2970+monitoring+via+SNMP&amp;&amp;summary=" title="Share this post : Cisco Catalyst 2970 monitoring via SNMP on Linkedin"><span class="head">Linkedin</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="twitter" href="http://twitter.com/home/?status=Cisco+Catalyst+2970+monitoring+via+SNMP+-+http%3A%2F%2Fbit.ly%2FaPCBLw" title="Tweet this post : Cisco Catalyst 2970 monitoring via SNMP on Twitter"><span class="head">Twitter</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="xing" href="http://www.xing.com/app/user?op=share;url=http%3A%2F%2Fwww.ipunct.net%2Fblog%2F2009%2F03%2Fcisco-catalyst-2970-monitoring-via-snmp%2F" title="Share this post : Cisco Catalyst 2970 monitoring via SNMP on xing"><span class="head">Share on xing</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="" class="rss" href="http://www.ipunct.net/blog/2009/03/cisco-catalyst-2970-monitoring-via-snmp/feed" title="Follow this post : Cisco Catalyst 2970 monitoring via SNMP comments"><span class="head">Subscribe to the comments on this post</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="" class="bookmark" href="javascript:window.bookMark('http://www.ipunct.net/blog/2009/03/cisco-catalyst-2970-monitoring-via-snmp/', 'Cisco Catalyst 2970 monitoring via SNMP');" title="Bookmark this post : Cisco Catalyst 2970 monitoring via SNMP"><span class="head">Bookmark in Browser</span></a></li>
</ul>
<div class="clean"></div>
]]></content:encoded>
			<wfw:commentRss>http://www.ipunct.net/blog/2009/03/cisco-catalyst-2970-monitoring-via-snmp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
