<?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>GL.IB.LY &#187; lenny</title>
	<atom:link href="http://gl.ib.ly/tag/lenny/feed/" rel="self" type="application/rss+xml" />
	<link>http://gl.ib.ly</link>
	<description>Thoughts on security, computing, business and stuff!</description>
	<lastBuildDate>Sun, 18 May 2014 11:51:56 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>Installing SNMPD (with remote access) on Debian 5/Lenny</title>
		<link>http://gl.ib.ly/stuff/2010/03/10/installing-snmpd-remote-access-debian-5lenny/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=installing-snmpd-remote-access-debian-5lenny</link>
		<comments>http://gl.ib.ly/stuff/2010/03/10/installing-snmpd-remote-access-debian-5lenny/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 07:18:10 +0000</pubDate>
		<dc:creator><![CDATA[tariq]]></dc:creator>
				<category><![CDATA[Stuff]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[snmp]]></category>
		<category><![CDATA[snmpd]]></category>
		<category><![CDATA[snmpwalk]]></category>
		<category><![CDATA[tidbits]]></category>

		<guid isPermaLink="false">http://gl.ib.ly/?p=91</guid>
		<description><![CDATA[<p>Today we&#8217;re installing snmpd so that we can query our debian server from another remote server that will use snmp in alert scripts and pretty graphing software. Snmpd installation is a little obtuse so here is how to do the<span class="ellipsis">&#8230;</span><div class="read-more"><a href="http://gl.ib.ly/stuff/2010/03/10/installing-snmpd-remote-access-debian-5lenny/">Read more &#8250;</a></div><!-- end of .read-more --></p><p>The post <a href="http://gl.ib.ly/stuff/2010/03/10/installing-snmpd-remote-access-debian-5lenny/">Installing SNMPD (with remote access) on Debian 5/Lenny</a> appeared first on <a href="http://gl.ib.ly">GL.IB.LY</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>Today we&#8217;re installing snmpd so that we can query our debian server from another remote server that will use snmp in alert scripts and pretty graphing software.</p>
<p>Snmpd installation is a little obtuse so here is how to do the installation on Debian Lenny.</p>
<ul>
<ul>
<li>Install snmpd with: <code>sudo apt-get install snmpd</code></li>
</ul>
</ul>
<ul>
<ul>
<li>You should be using RCS/git/etc when editing system files at work. So use the appropriate techniques for checking in and out all conﬁg ﬁles. If you&#8217;re a home user don&#8217;t worry about this step; or, maybe you should. Muhahahaha! Eh, *cough*.</li>
</ul>
</ul>
<ul>
<ul>
<li>Open /etc/snmp/snmpd.conf and change to the following:<code># sec.name source community<br />
#com2sec paranoid default public<br />
#com2sec local localhost public<br />
com2sec local localhost mysecretcommunity<br />
com2sec readonly 192.168.XXX.XXX mysecretcommunity<br />
#com2sec readwrite default private</code></p>
<p>Here <i>mysecretcommunity</i> is the uber secret name of your community. Change this to something other than <i>public</i> or <i>mycommunity</i> &#8212; let common sense prevail. 192.168.XXX.XXX is the IP address of your remote server that will query snmpd.</li>
</ul>
</ul>
<ul>
<ul>
<li>Change /etc/default/snmpd so that it contains the following line:
<pre>SNMPDOPTS=’-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid’</pre>
<p>Notice the lack of <code>127.0.0.1</code>?</li>
</ul>
</ul>
<ul>
<ul>
<li>Save the ﬁle!</li>
</ul>
</ul>
<ul>
<ul>
<li>Restart snmpd with <code>sudo /etc/init.d/snmpd restart</code>.</li>
</ul>
</ul>
<ul>
<ul>
<li>Test snmpd locally:
<pre>snmpwalk -Os -c mysecretcommunity -v 1 localhost system</pre>
</li>
<li>Test snmpd remotely from 192.168.XXX.XXX:
<pre>snmpwalk -Os -c mysecretcommunity -v 1 192.168.YYY.YYY system</pre>
<p>Here 192.168.YYY.YYY is the IP address of the debian server hosting snmpd.</li>
</ul>
</ul>
<ul>
<ul>
<li>Verify test outputs look like:<br />
<code><code>...<br />
sysObjectID.0 = OID: netSnmpAgentOIDs.10<br />
sysUpTimeInstance = Timeticks: (1201) 0:00:12.01<br />
sysContact.0 = STRING: root<br />
sysName.0 = STRING: irsplsemos01<br />
sysLocation.0 = STRING: Unknown<br />
sysORLastChange.0 = Timeticks: (0) 0:00:00.00<br />
sysORID.1 = OID: snmpFrameworkMIBCompliance<br />
sysORID.2 = OID: snmpMPDCompliance<br />
sysORID.3 = OID: usmMIBCompliance<br />
sysORID.4 = OID: snmpMIB<br />
sysORID.5 = OID: tcpMIB<br />
sysORID.6 = OID: ip<br />
sysORID.7 = OID: udpMIB<br />
sysORID.8 = OID: vacmBasicGroup<br />
...</code></code>&nbsp;</li>
</ul>
</ul>
<p>Thats all folks!</p>
<p>The post <a href="http://gl.ib.ly/stuff/2010/03/10/installing-snmpd-remote-access-debian-5lenny/">Installing SNMPD (with remote access) on Debian 5/Lenny</a> appeared first on <a href="http://gl.ib.ly">GL.IB.LY</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://gl.ib.ly/stuff/2010/03/10/installing-snmpd-remote-access-debian-5lenny/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
