<?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>Case &#187; snmp</title>
	<atom:link href="http://case.net.ru/tag/snmp/feed/" rel="self" type="application/rss+xml" />
	<link>http://case.net.ru</link>
	<description>Just another technical weblog</description>
	<lastBuildDate>Sun, 29 Jan 2012 08:48:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Пример SNMP управления коммутатором</title>
		<link>http://case.net.ru/2009/01/23/snmp/</link>
		<comments>http://case.net.ru/2009/01/23/snmp/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 16:35:06 +0000</pubDate>
		<dc:creator>Case</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[des-3226s]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[snmp]]></category>
		<category><![CDATA[xbox 360]]></category>

		<guid isPermaLink="false">http://case.net.ru/?p=138</guid>
		<description><![CDATA[Переключения порта xbox&#8217;а (что бы в live не ломился): 1 2 3 4 5 6 7 8 9 10 #!/bin/sh &#160; if &#91; &#34;`snmpget -v 1 -c public des IF-MIB::ifAdminStatus.12 &#124; grep up`&#34; &#93; then echo &#34;disabling port 12..&#34; snmpset -v 1 -c private des IF-MIB::ifAdminStatus.12 i 2 &#62; /dev/null else echo &#34;enabling port 12..&#34; [...]]]></description>
			<content:encoded><![CDATA[<p>Переключения порта xbox&#8217;а (что бы в live не ломился):</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #780078;">`snmpget -v 1 -c public des IF-MIB::ifAdminStatus.12 | grep up`</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">then</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;disabling port 12..&quot;</span>
        snmpset <span style="color: #660033;">-v</span> <span style="color: #000000;">1</span> <span style="color: #660033;">-c</span> private des IF-MIB::ifAdminStatus.12 i <span style="color: #000000;">2</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null
<span style="color: #000000; font-weight: bold;">else</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;enabling port 12..&quot;</span>
        snmpset <span style="color: #660033;">-v</span> <span style="color: #000000;">1</span> <span style="color: #660033;">-c</span> private des IF-MIB::ifAdminStatus.12 i <span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null
<span style="color: #000000; font-weight: bold;">fi</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://case.net.ru/2009/01/23/snmp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
