Finding mail queue using snmpwalk in php
<p>I want to write a script in <code>PHP</code>, that is the same as <code>snmpwalk</code> command in <code>linux</code>. I want to find the queue mail using that. the inputs are host ip address and <code>mib</code> value.</p>

<p>The command in linux:</p>

<pre><code>snmpwalk -v2c -cMTA@Rel@y 10.234.125.250   .1.3.6.1.4.1.9999.44.1
</code></pre>

<p>The result is:</p>

<pre><code>iso.3.6.1.4.1.9999.44.1.4.1.2.9.47.98.105.110.47.98.97.115.104.1 = STRING: "45"
</code></pre>

<p>I want the queue value as the result (that is 45 in the above example)</p>

<p>I read <a href="http://php.net/manual/en/function.snmprealwalk.php" rel="nofollow">snmprealwalk</a> and <a href="http://php.net/manual/en/function.snmpget.php" rel="nofollow">snmpget</a> functions, but they didn't do what I want.</p>