Re: initializing scalars

2006-10-27 Thread Dave Shield
On 27/10/06, Avnindra Singh <[EMAIL PROTECTED]> wrote: > Yeah. I'm aware of the implementation in the main agent. Requirements > are to make it a part of a subagent. So configure the main agent to not include this module, and compile a subagent that *does* include these files. There's no need to

Re: initializing scalars

2006-10-27 Thread Avnindra Singh
I generated sub agent code for scalars in HOST-RESOURCES_MIB using: >> env MIBS="+HOST-RESOURCES-MIB" mib2c -c mib2c.scalar.conf hrSystem > > > I presume you realise that the Net-SNMP agent already implements this > particular group? (See agent/mibgroup/host/hr_system.c) > Dave, Thanks for you r

Re: initializing scalars

2006-10-26 Thread Dave Shield
On 26/10/06, Avnindra Singh <[EMAIL PROTECTED]> wrote: > I generated sub agent code for scalars in HOST-RESOURCES_MIB using: > env MIBS="+HOST-RESOURCES-MIB" mib2c -c mib2c.scalar.conf hrSystem I presume you realise that the Net-SNMP agent already implements this particular group? (See agent/mib

initializing scalars

2006-10-25 Thread Avnindra Singh
Hi All, I generated sub agent code for scalars in HOST-RESOURCES_MIB using: env MIBS="+HOST-RESOURCES-MIB" mib2c -c mib2c.scalar.conf hrSystem It generates hrSystem.c and hrSystem.h. Inside the .c file there are two kind of functions: a) init_hrSystem (to be called from the sub agent) b) handle