title: "Error: OID not increasing" with php snmpwalk
body: <p>I am using PHP 5.3 and SNMP to perform a <code>snmpwalk</code> on a OID node that does not return in the correct order.  As a result, I get the error <em>"Error: OID not increasing"</em> and I cannot find a way to ignore this.</p>
  
  <p>Alternatively, I thought I could perform a series of <code>snmpgetnext</code> commands to do the walk manually but I don't know to get the next OID value to issue the next getnext command on.</p>
  
  <p><a href="http://www.php.net/manual/en/ref.snmp.php" rel="nofollow">http://www.php.net/manual/en/ref.snmp.php</a></p>
  
  <p>Any advice on either solution will be a massive help.
  Thanks.</p>
  
  <p>The bash script for what I am trying to retrieve is:</p>
  
  <p><code>snmpwalk -c public -v 1 -Cc 10.3.1.42 1.0.8802.1.1.2.1.4.1.1.9</code></p>
  
  <p>The unordered results are:</p>
  
  <pre><code>iso.0.8802.1.1.2.1.4.1.1.9.340550.15.15 = STRING: "Switch Name"
  iso.0.8802.1.1.2.1.4.1.1.9.29566.16.16 = STRING: "Switch Name"
  iso.0.8802.1.1.2.1.4.1.1.9.29486.17.17 = STRING: "Switch Name"
  iso.0.8802.1.1.2.1.4.1.1.9.101547.18.18 = STRING: "Switch Name"
  iso.0.8802.1.1.2.1.4.1.1.9.399668.19.19 = STRING: "Switch Name"
  </code></pre>