Re: SNMP Agent engineboot

2013-01-07 Thread Dave Shield
On 7 January 2013 08:53, Zheng, Wenjie (Barclay) 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 like the standard Net-SNMP agent.

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 2

Re: SNMP Agent engineboot

2013-01-07 Thread Dave Shield
On 7 January 2013 02:45, Zheng, Wenjie (Barclay) 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 library should be taking care of

RE: SNMP Agent engineboot

2013-01-06 Thread Zheng, Wenjie (Barclay)
ilto:dave.shi...@gmail.com] On Behalf Of Dave 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) wrote: > I try to use set_en

Re: SNMP Agent engineboot

2013-01-06 Thread Anish
__ From: "Zheng, Wenjie (Barclay)" To: Dave Shield Cc: "net-snmp-cod...@lists.sourceforge.net" ; "net-snmp-users@lists.sourceforge.net" Sent: Saturday, 5 January 2013 6:51 PM Subject: RE: SNMP Agent engineboot Dave Thanks for your help! >

Re: SNMP Agent engineboot

2013-01-05 Thread Dave Shield
On 5 January 2013 13:21, Zheng, Wenjie (Barclay) 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 manager? You shouldn't need to to

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 curr

Re: SNMP Agent engineboot

2013-01-05 Thread Dave Shield
On 5 January 2013 03:41, Zheng, Wenjie (Barclay) 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 values in the request don't match t

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");