title: pysnmp Command Responder - handling managed objects value classes
body: <p>I'm developing a command responder with pysnmp, based on
  <a href="http://pysnmp.sourceforge.net/examples/current/v3arch/agent/cmdrsp/v2c-custom-scalar-mib-objects.html" rel="nofollow noreferrer">http://pysnmp.sourceforge.net/examples/current/v3arch/agent/cmdrsp/v2c-custom-scalar-mib-objects.html</a></p>
  <p>My intention is to answer to the get message of my managed objects by reading the snmp data from a text file (updated over time).</p>
  <p>I'm polling the responder using snmpB, drawing a graph of the polled object value evolution.</p>
  <p>I've successfully modify the example exporting my first Managed Object, adding it with mibBuilder.exportSymbols() and retrieving the values from the txt file in the modified getvalue method. I'm able to poll this object with success. It's a Counter32 type object.</p>
  <p>The next step is handle other objects with a value type different from the &quot;supported&quot; classes like Integer32, Counter32, OctetString</p>
  <p>I need to handle floating point values or other specific data formats defined within MIB files, because snmpB expect these specific formats for correctly plotting the graph.
  Unfortunetely I can't figure out a way to do this.</p>
  <p>Hope someone can help,</p>
  <p>Mark</p>
  <p><strong>EDIT 1</strong></p>
  <p>The textual-convention I need to implement is the Float32TC defined in FLOAT-TC-MIB from <a href="https://www.rfc-editor.org/rfc/rfc6340" rel="nofollow noreferrer">RFC6340</a>:</p>
  <pre><code>Float32TC ::= TEXTUAL-CONVENTION
        STATUS       current
        DESCRIPTION  &quot;This type represents a 32-bit (4-octet) IEEE
                      floating-point number in binary interchange format.&quot;
        REFERENCE    &quot;IEEE Standard for Floating-Point Arithmetic,
                      Standard 754-2008&quot;
        SYNTAX       OCTET STRING (SIZE(4))
  </code></pre>