title: Parsing SNMP responses with PHP
body: <p>I'm currently successfully reading out several properties on our switches over SNMP with php. Now i'm looking at making the resulting output of <code>snmpget</code> and <code>snmpwalk</code> actually usefull for the consumers of our API's.</p>
  
  <p>Problem is that the responses look like this: <code>INTEGER: up(1)</code> and <code>INTEGER: 10103</code> ...</p>
  
  <p>Is there any convention/standard on how to parse this response format or is the response vendor specific for each device we are trying to read?</p>
  
  <p>Is there by any chance already a PHP library, function or extension that can cast these responses in php native variables or at least something usefull that we can work with?</p>
  
  <hr>
  
  <p>UPDATE:</p>
  
  <p>I've found out a few new things namely that there are indeed several libraries in php that can parse binary ASN.1 strings which basically are BER encoded strings if i'm right. Problem is that i can't seem to find a way to get the binary data from the devices with php ...</p>