Re: SNMP Agent engineboot

2013-01-07 Thread Dave Shield
On 7 January 2013 02:45, Zheng, Wenjie (Barclay) barclay.zh...@alcatel-lucent.com wrote: What I did is to store the engineboot somewhere else from Agent, when agent restarts will read the last engineboot and increase 1, and response with new engineboot=2 But that's exactly what the Net-SNMP

RE: SNMP Agent engineboot

2013-01-07 Thread Zheng, Wenjie (Barclay)
Hi Dave Thanks for your response! I am using net-snmp provided agent. But I didn't aware that snmp agent has this functionalty, and from my test result. It's not working. I didn't read the snmpv3_store thoroughly, is the old engineboots saved in the config file? Thanks, Barclay On 7 January

Re: SNMP Agent engineboot

2013-01-07 Thread Dave Shield
On 7 January 2013 08:53, Zheng, Wenjie (Barclay) barclay.zh...@alcatel-lucent.com wrote: I am using net-snmp provided agent. Now I'm confused. When you first posted, you said I am trying to implement an SNMP agent using net-snmp APIs and the code that you listed there doesn't look much

Re: SNMP Agent engineboot

2013-01-06 Thread Anish
: RE: SNMP Agent engineboot Dave Thanks for your help!   But when this process re-started, and there is another request comes in, SNMP agent will replies error:usmstatus not in timewindow. That is correct - an SNMPv3 request will fail if the boot time/count values in the request don't match

RE: SNMP Agent engineboot

2013-01-06 Thread Zheng, Wenjie (Barclay)
Shield Sent: 2013年1月6日 1:56 To: Zheng, Wenjie (Barclay) Cc: net-snmp-cod...@lists.sourceforge.net; net-snmp-users@lists.sourceforge.net Subject: Re: SNMP Agent engineboot On 5 January 2013 13:21, Zheng, Wenjie (Barclay) barclay.zh...@alcatel-lucent.com wrote: I try to use set_enginetime() by set

Re: SNMP Agent engineboot

2013-01-05 Thread Dave Shield
On 5 January 2013 03:41, Zheng, Wenjie (Barclay) barclay.zh...@alcatel-lucent.com wrote: But when this process re-started, and there is another request comes in, SNMP agent will replies error:usmstatus not in timewindow. That is correct - an SNMPv3 request will fail if the boot time/count

RE: SNMP Agent engineboot

2013-01-05 Thread Zheng, Wenjie (Barclay)
Dave Thanks for your help! But when this process re-started, and there is another request comes in, SNMP agent will replies error:usmstatus not in timewindow. That is correct - an SNMPv3 request will fail if the boot time/count values in the request don't match the agent's idea of the

Re: SNMP Agent engineboot

2013-01-05 Thread Dave Shield
On 5 January 2013 13:21, Zheng, Wenjie (Barclay) barclay.zh...@alcatel-lucent.com wrote: I try to use set_enginetime() by set the engineboots to a value stored in out side of agent. I don't understand what you are trying to do here. Is this call to 'set_enginetime' in the agent, or in the

SNMP Agent engineboot

2013-01-04 Thread Zheng, Wenjie (Barclay)
Hi Everyone, Happy new year 2013! I am trying to implement an SNMP agent using net-snmp APIs,I use below method to setup SNMP agent process, called SNMP_agt. snmp_set_do_debugging(1); snmp_enable_stderrlog(); init_agent(SNMP_agent);