Re: Re: net-snmp init_XXX() get data periodically( or cyclic ) problem

2010-08-10 Thread Kathy McLeod
cc Subject Re: Re: net-snmp init_XXX() get

Re: Re: net-snmp init_XXX() get data periodically( or cyclic ) problem

2010-08-06 Thread Dave Shield
On 6 August 2010 10:52, Alexander King wrote: > is it the meaning use "mib2c -S cache=-1 -c mib2c.iterate.conf uit" No. You are confusing different things. The command to generate the code template would be mib2c -S cache=1 mib2c.iterate.conf uit Here the value '1' means "include the code

Re: Re: net-snmp init_XXX() get data periodically( or cyclic ) problem

2010-08-06 Thread Alexander King
Thank you all kind man! I will do my best get a prototype the way Dave teaching me ASAP. Also, I thought -1 was the value for "load every time". >>I saw the letter later Dave's wrote back,is it the meaning use "mib2c -S >>cache=-1 -c mib2c.iterate.conf uit" can get the really data on t

Re: Re: net-snmp init_XXX() get data periodically( or cyclic ) problem

2010-08-04 Thread Dave Shield
On 4 August 2010 15:29, Kathy McLeod wrote: > How do you alter the timeout value on the fly? Via the NET-SNMP-AGENT-MIB::nsCacheTable > Also, I thought -1 was the value for "load every time". My apologies - you are quite correct. [See agent/helpers/cache_handler.c:netsnmp_cache_check_expired

Re: Re: net-snmp init_XXX() get data periodically( or cyclic ) problem

2010-08-04 Thread Kathy McLeod
snmp-users Subject Re: Re: net-snmp init_XXX() get data pe

Re: Re: net-snmp init_XXX() get data periodically( or cyclic ) problem

2010-08-04 Thread Dave Shield
On 4 August 2010 03:47, Alexander King wrote: > Now,I want to know how to get the newest data use net-snmp snmpd daemon > routine.That is to say,Is there a way when I use "snmpwalk" command browse > the uit data tree I get the updated or newest or latest data each time? I will repeat my suggestio

Re: Re: net-snmp init_XXX() get data periodically( or cyclic ) problem

2010-08-03 Thread Alexander King
On 3 August 2010 10:34, Yongting Lin wrote: >As in this situation, can register a peridoical alarm to monitor the > condition, and send traps if condition changed? or project-specified code(A > daemon in pratical program) act as a subagent to snmpd, and invokde > send_v2trap function to send

Re: Re: net-snmp init_XXX() get data periodically( or cyclic ) problem

2010-08-03 Thread Yongting Lin
Hi Dave: As in this situation, can register a peridoical alarm to monitor the condition, and send traps if condition changed? or project-specified code(A daemon in pratical program) act as a subagent to snmpd, and invokde send_v2trap function to send traps when itself detects some condit

Re: Re: net-snmp init_XXX() get data periodically( or cyclic ) problem

2010-08-03 Thread Dave Shield
On 3 August 2010 10:34, Yongting Lin wrote: >    As in this situation, can register a peridoical alarm to monitor the > condition, and send traps if condition changed?  or project-specified code(A > daemon in pratical program) act as a subagent to snmpd, and invokde > send_v2trap function to send

Re: net-snmp init_XXX() get data periodically( or cyclic ) problem

2010-08-03 Thread Dave Shield
On 3 August 2010 09:04, Alexander King wrote: > I want to the init_uit routine can get data periodically The "init_xxx" routine is called *once* to set up the module, when the agent first starts That's what the word initialise means. It will not be called repeatedly, and is not the right place