Re: traps v1 and 2

2010-03-04 Thread Dave Shield
On 4 March 2010 10:48, maxim maxim wrote: > if i want to send v1 trap from notification.c(see in examples), does > it mean that i don't have to use snmp_varlist_add_variable() with > ASN_OBJECT_ID?, i just need to fill netsnmp_variable_list only with > varbinds like integer or string It depends o

Re: traps v1 and 2

2010-03-04 Thread maxim maxim
Great, if i want to send v1 trap from notification.c(see in examples), does it mean that i don't have to use snmp_varlist_add_variable() with ASN_OBJECT_ID?, i just need to fill netsnmp_variable_list only with varbinds like integer or string, the trap name is not in list of varbinds, isn't it? Tha

Re: traps v1 and 2

2010-03-04 Thread Dave Shield
On 4 March 2010 09:04, maxim maxim wrote: > when i use netsnmp_send_traps(int trap, int specific, oid * > enterprise, int enterprise_length, > netsnmp_variable_list * vars, >  // These next two are currently unused/ >         char * context, int flags); > > > The  vars is a same for v1 and v2, isn

traps v1 and 2

2010-03-04 Thread maxim maxim
when i use netsnmp_send_traps(int trap, int specific, oid * enterprise, int enterprise_length, netsnmp_variable_list * vars, // These next two are currently unused/ char * context, int flags); The vars is a same for v1 and v2, isn't it? ---

Re: traps v1 and 2

2010-03-03 Thread Dave Shield
On 3 March 2010 21:30, maxim maxim wrote: > Can you send me the link on this entry please? All documentation can be found on the project website. http://www.net-snmp.org/ Dave -- Download Intel® Parallel Studio Eval

Re: traps v1 and 2

2010-03-03 Thread maxim maxim
Hi Dave, Can you send me the link on this entry please? Thanks, Maxim 2010/3/3 Dave Shield : > On 3 March 2010 20:32, maxim maxim wrote: >> I need to send trap v1 and v2 from my agent > > Please see the FAQ entry > "How can I get the agent to generate a trap (or inform)?" > and those that

Re: traps v1 and 2

2010-03-03 Thread Dave Shield
On 3 March 2010 20:32, maxim maxim wrote: > I need to send trap v1 and v2 from my agent Please see the FAQ entry "How can I get the agent to generate a trap (or inform)?" and those that follow > and send trap v2, now is my question: How i can convert the packet > that i send in my cas

traps v1 and 2

2010-03-03 Thread maxim maxim
Hi to all, I need to send trap v1 and v2 from my agent, i based on example notification.c (http://www.net-snmp.org/dev/agent/notification_8c_source.html), and send trap v2, now is my question: How i can convert the packet that i send in my case is notification_vars to trap packet v1, and how to sen

Re: traps v1 and 2

2010-02-23 Thread Dave Shield
On 23 February 2010 10:53, maxim maxim wrote: > 1. Can i send the trap only from snmp agent or subagent? The agent (/subagent) can send traps - yes. See the man page 'snmp_trap_api(3)' There are examples of this in the file agent/snmpd.c But this is not the *only* way you can send traps. > 2.

traps v1 and 2

2010-02-23 Thread maxim maxim
Hi to all, I new in a net-snmp. I try to send traps in SNMPv1 and SNMpv2, and i have some questions? 1. Can i send the trap only from snmp agent or subagent? If yes i need some examples. 2. If no i have the application for get message (the file is attached), how i can to change it for sending the