Re: subagent
"Pranesh Kulkarni" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On Feb 16, 2008 5:37 PM, Magnus Fromreide <[email protected]> wrote: > > On fre, 2008-02-15 at 16:44 +0530, Pranesh Kulkarni wrote: > > Hi , > > I have written a sample MIB which has 3 tables and 5 scalar > > variables. I want to have this to be a subagent and get connected to a > > standard net-snmp snmp agent > > /usr/local/sbin/snmpd by agentx support. > > > > The table values will get at the run the time from user code. > > > > I used the Please tell me the which one is the best for > > generating code using mib2c. > > mib2c.mfd.conf > > mib2c.scalar.conf > > mib2c.int_watch.conf > > mib2c.iterate.conf > > mib2c.create-dataset.conf > > mib2c.array-user.conf > > mib2c.column_defines.conf > > mib2c.column_enums.conf > > > > I am using now mib2c.mfd.conf option , but with 3 tables , have to > > run as 3 separate subagent which inturn should be registered with > > master agent. > > Can we have all the tables and scalar in one subagent and register > > with master agent. > > Yes. > > The problem from your point of view is that mib2c currently lacks > support for merging multiple outputs so you have to do that by hand. > > As an example of how to make a subagent with multiple outputs in it you > can use the following commands: > > mib2c -f agentx_scalars -c mib2c.int_watch.conf agentxMIB > mib2c -f agentx_tables -c mib2c.create-dataset.conf agentxMIB > net-snmp-config --compile-subagent --norm agentx agentx_scalars.c > agentx_tables.c > > This will result in 5 files, agentx_scalars.c, agentx_tables.c, > netsnmptmp.<number>.c, agentx_scalars.h and agentx_tables.h > > In netsnmptmp.<number>.c it is shown how multiple mib2c outputs are > integrated together. > > /MF Hi , I am using now mib2c.mfd.conf option , but with 3 tables , have to run as 3 separate subagent . Which will be best option from performance wise or architrcture wise Keeping 3 subagagents for 3 tables ,OR single subagent for 3 tables ?? Thanks, Pranesh > > > > > > Thanks, > > Pranesh > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ Net-snmp-users mailing > list [email protected] Please see the following page to > unsubscribe or change other options: > https://lists.sourceforge.net/lists/listinfo/net-snmp-users > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft Defy all challenges. > Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Net-snmp-coders mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/net-snmp-coders > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users