Hi Dave,

Thanks for your help.

I have tried to generate the MIB code on another system(5.4.1), and copy 
them to the 5.1.1 system.
I also referenced the code at the 'agent/mibgroup/hardware/cpu'(especially 
cpu.c), but I can't understand them well.
Even I don't think they were generated from "mib2c -Scache=1 -c 
mib2c.iterate.conf ....".
There is no xxxTable_createEntry(), xxxTable_removeEntry(),.... in cpu.c.
Is there any document or a better sample for reference?
I tried to trace the generated template code, but I still don't know which 
function I should implement and where I should get external data?
The comment in the generated template code isn't enough for me?
Where can I find such document or sample? Thanks.

Additionally, I am thinking about if I need to do unregister actions in the 
deinit_xxx() because of reloading config file using "killall -HUP snmpd"?
like snmp_alarm_register(), netsnmp_register_table_iterator(), ... do I need 
to do unregister actions in deinit()?

Thanks,


BR,



永鈦鑫   iTAS Corporation
新竹市水源街75號
NO. 75,Shuiyuan St., Hsinchu City, Taiwan, R.O.C.
Tel:03-5716099 Ext.1208
E-mail:tewen.hs...@itas.com.tw
----- Original Message ----- 
From: "Dave Shield" <d.t.shi...@liverpool.ac.uk>
To: "Tewen Hsieh" <tewen.hs...@itas.com.tw>
Cc: <net-snmp-coders@lists.sourceforge.net>
Sent: Tuesday, June 09, 2009 7:04 PM
Subject: Re: Could anyone give me some suggestions?


2009/6/9 Tewen Hsieh <tewen.hs...@itas.com.tw>:
>  does 5.1.1 also support "mib2c -Scache=1 -c mib2c.iterate.conf ...."?

No - I don't believe it does.
Though you should be able to generate the MIB code
on another (later) system, and copy this to the 5.1.1 system.
The cache helper is certainly present in the 5.1.x line,
it's just that the mib2c template doesn't know about it.

Dave 


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to