[ Sorry for the delay in responding to this ]

> I had small doubt regarding template code generated by mib2c compiler.
> after getting skeliton code,there are some auto generated methods like 
> NET-REGISTER-MIB. if i want to code to get cpuinfo from proc/cpuinfo can i 
> remove these autogenerated methods if i need.

No - such REGISTER_MIB calls are intended for something different.
This is how your module will let the main agent know what sort
of information it knows about.

That way, when the agent receives a request for CPUinfo-related stuff,
it will call your module (i.e. the code generated by mib2c).
That's the point at which your code starts to work with proc/cpuinfo.

You need *both* routines - the init_xxx routine to register the
MIB objects that you want to implement, and the var_xxx routine(s)
to actually implement them.

Dave




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to