On 10 February 2012 14:41, Chris Smith <cj...@zepler.net> wrote:
> What do I then need to do to glue the bits together into a working
> subagent?

a)   Tweak the code that handles the 'initialize' calls, so that both
      init routines are invoked.
         (either by adding 'init_myTable' to the scalar initialisation code,
          adding 'init_myScalars' to the table initialisation code,
          or calling both of them at the same point in the main
          subagent driving code)

b)   Tweak the environment used to build the subagent, so that
          it compiles and links both (or all) the MIB modules into
          the same binary.

>          Presumably I somehow need to run mib2c on the root node,
> myMIB, to generate code that registers and delegates calls to the scalar
> and table nodes.  And what about the subagent wrapper that talks to the
> master?

It's probably not worth trying to handle this using mib2c directly.
Take the individual generated code file, and merge them by hand.

Dave

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to