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: mib2c best configuration mode to access global functions

2013-01-05 Thread Dave Shield
On 5 January 2013 12:14, Nuno Magalhães wrote: > It seems that normal global functions are not called since I put snmp logs > all over the global function and invoke it in the function handler and > nothing gets logged. > If I use the 'inline' keywork in the global function definition it gets > lo

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: mib2c best configuration mode to access global functions

2013-01-05 Thread Nuno Magalhães
Hi Dave, It seems that normal global functions are not called since I put snmp logs all over the global function and invoke it in the function handler and nothing gets logged. If I use the 'inline' keywork in the global function definition it gets logged. As you're certainly more experienced in

Re: Regarding logOption in snmptrapd.conf file

2013-01-05 Thread Dave Shield
On 2 January 2013 07:37, Adishesh M wrote: > I want all the traps received to be logged to into my file only and > not to syslog (/var/log/messages) > > How to avoid logging of traps in syslog. I've done some quick testing, and the best way to achieve this seems to be to specify the option-Lf

Re: mib2c best configuration mode to access global functions

2013-01-05 Thread Dave Shield
On 5 January 2013 09:05, Nuno Magalhães wrote: > But why must it be declared as inline? Why must what be declared inline? What has that got to do with using global functions/variables? > Is there any limitation in global variables and function calls? > Otherwise the global function will return

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

Re: mib2c best configuration mode to access global functions

2013-01-05 Thread Nuno Magalhães
Hi Dave, But why must it be declared as inline? Is there any limitation in global variables and function calls? Otherwise the global function will return always 0 no matter what values is returned. Have you ever experienced the same? Regards, Nuno Magalhães. Em 04-01-2013 21:44, Dave Shield esc