[SNMP4J] How to implement MIB?

Frank Fock fock at agentpp.com
Thu Jul 14 00:05:48 CEST 2005


Hello Jozef,

The MOScalar class is the one you will have to extend in order
to implement a scalar OBJECT-TYPE.  You can the overrwrite
the getValue() method to retrieve the value from your external
object.

Hope this helps.

Best regards,
Frank

jj777 at speakeasy.net wrote:

>Hello,
>
>I have managed to compile and run both SnmpRequest and TestAgent. 
>Now, I am trying to figure out how to write an agent which would
>implement my simple enterprise MIB. Basically, I would need the
>agent to properly respond to a GET PDU. It should lunch a proper
>method on an external object based on the OID, receive the return
>value from the method and then send the response with the return
>value back to the client. Which classes should I look at? Can 
>someone point me to the right direction, please?
>
>Jozef
>
>
>_______________________________________________
>SNMP4J mailing list
>SNMP4J at agentpp.org
>http://lists.agentpp.org/mailman/listinfo/snmp4j
>
>
>  
>





More information about the SNMP4J mailing list