<?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>postIt &#187; SNMP</title>
	<atom:link href="https://lakm.us/postit/tag/snmp/feed/" rel="self" type="application/rss+xml" />
	<link>https://lakm.us/postit</link>
	<description>Post-It sticky notes with PasteBin sense</description>
	<lastBuildDate>Thu, 02 Jan 2025 01:33:57 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.0.18</generator>
	<item>
		<title>WIth php5-snmp installed, tried snmpwalk &#8230;</title>
		<link>https://lakm.us/postit/2010/03/with-php5-snmp-installed-tried-snmpwalk/</link>
		<comments>https://lakm.us/postit/2010/03/with-php5-snmp-installed-tried-snmpwalk/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 08:59:05 +0000</pubDate>
		<dc:creator><![CDATA[Arif]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[SNMP]]></category>

		<guid isPermaLink="false">http://xp-racy.lan/postit/?p=38</guid>
		<description><![CDATA[WIth php5-snmp installed, tried snmpwalk through php: 1 2 3 4 5 6 7 &#60;?php $a = snmpwalk&#40;&#34;127.0.0.1&#34;, &#34;public&#34;, &#34;&#34;&#41;; &#160; foreach &#40;$a as $val&#41; &#123; echo &#34;$val\n&#34;; &#125; ?&#62;]]></description>
				<content:encoded><![CDATA[<p>WIth php5-snmp installed, tried snmpwalk through php:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$a</span> <span style="color: #339933;">=</span> <span style="color: #990000;">snmpwalk</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;127.0.0.1&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;public&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$a</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$val</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">$val</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>https://lakm.us/postit/2010/03/with-php5-snmp-installed-tried-snmpwalk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>After installation in Ubuntu, snmp will  &#8230;</title>
		<link>https://lakm.us/postit/2010/03/after-installation-in-ubuntu-snmp-will/</link>
		<comments>https://lakm.us/postit/2010/03/after-installation-in-ubuntu-snmp-will/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 03:52:17 +0000</pubDate>
		<dc:creator><![CDATA[Arif]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[daemon]]></category>
		<category><![CDATA[SNMP]]></category>

		<guid isPermaLink="false">http://xp-racy.lan/postit/?p=28</guid>
		<description><![CDATA[After installation in Ubuntu, snmp will run as follow: $ ps -ef &#124; grep snmp snmp 9879 1 0 09:58 ? 00:00:00 /usr/sbin/snmpd -Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1 Omitting 127.0.0.1 from /etc/default/snmpd: 8 SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid' will allow other host to listen to ours.]]></description>
				<content:encoded><![CDATA[<p>After installation in Ubuntu, snmp will run as follow:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">ps</span> <span style="color: #660033;">-ef</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> snmp
snmp      <span style="color: #000000;">9879</span>     <span style="color: #000000;">1</span>  <span style="color: #000000;">0</span> 09:<span style="color: #000000;">58</span> ?        00:00:00 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>snmpd <span style="color: #660033;">-Lsd</span> <span style="color: #660033;">-Lf</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #660033;">-u</span> snmp <span style="color: #660033;">-I</span> <span style="color: #660033;">-smux</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>run<span style="color: #000000; font-weight: bold;">/</span>snmpd.pid 127.0.0.1</pre></td></tr></table></div>

<p>Omitting 127.0.0.1 from <code>/etc/default/snmpd</code>:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>8
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">SNMPDOPTS</span>=<span style="color: #ff0000;">'-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid'</span></pre></td></tr></table></div>

<p>will allow other host to listen to ours.</p>
]]></content:encoded>
			<wfw:commentRss>https://lakm.us/postit/2010/03/after-installation-in-ubuntu-snmp-will/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
