Re: trap from subagent

2010-04-07 Thread maxim maxim
Thanks, it's work now. Can you please to explain me a two outputs in log file? This my outputs in log file: Apr 7 13:08:31 max snmptrapd[3128]: UNKNOWN [UDP: [192.168.168.112]:41119-[192.168.168.6]]: Trap , DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (6333568) 17:35:35.68,

Re: trap from subagent

2010-04-07 Thread Dave Shield
On 7 April 2010 11:38, maxim maxim look200...@gmail.com wrote: why do i have two outputs? I have no idea. You have said nothing about how you are starting the agent, what exactly is in your snmpd.conf file, or provided any real details about your setup. I cannot read your mind, and do not

Re: trap from subagent

2010-04-07 Thread maxim maxim
If i want to use send_trap_vars() for sending trap in *v1*, can i use with variable_list like in send_v2trap() for v2, or it (variable_list) should include only variables without trap oid? Thanks, Maxim 2010/4/7 Dave Shield d.t.shi...@liverpool.ac.uk: On 7 April 2010 11:38, maxim maxim

Re: trap from subagent

2010-04-07 Thread Dave Shield
On 7 April 2010 14:10, maxim maxim look200...@gmail.com wrote: If i want to use send_trap_vars() for sending trap in v1,  can i use with variable_list like in send_v2trap() for v2, or it (variable_list) should include only variables without trap oid? Please read the FAQ Dave

Re: trap from subagent

2010-04-07 Thread maxim maxim
It doesn't clear from FAQ , can you specify more please about send_trap_vars() for v1? 2010/4/7 Dave Shield d.t.shi...@liverpool.ac.uk On 7 April 2010 14:10, maxim maxim look200...@gmail.com wrote: If i want to use send_trap_vars() for sending trap in v1, can i use with variable_list like

Re: trap from subagent

2010-04-07 Thread Dave Shield
On 7 April 2010 14:45, maxim maxim look200...@gmail.com wrote: It doesn't clear from FAQ , can you specify more please about send_trap_vars() for v1? FAQ:Coding 16 How can I get the agent to send an SNMPv1 (or SNMPv2c) trap? It doesn't make any difference whether you use the v1-style API call

RE: Perl SNMP V3 trap listener

2010-04-07 Thread gmarzot
a quick look in net-snmp/perl/TrapReceiver/TrapReceiver.xs shows v3 pdu handling. -G Original Message Subject: Perl SNMP V3 trap listener From: Rathod, Nitin nitin_rat...@bmc.com Date: Tue, April 06, 2010 5:48 am To: net-snmp-coders@lists.sourceforge.net

Re: [PATCH] snmpd: allow setting trap source address

2010-04-07 Thread Stephen Hemminger
On Thu, 4 Mar 2010 10:05:57 -0500 Robert Story rst...@freesnmp.com wrote: On Wed, 3 Mar 2010 22:30:40 -0800 Stephen wrote: SH I see the patch. It allows clientaddr to be in snmpd.conf without the [snmp] SH prefix. But clientaddr is a snmp token, and does work in snmpd.conf when SH

Re: trap from subagent

2010-04-07 Thread maxim maxim
Thanks, but my question is not about this , my question is how to compose a varlist in send_trap_vars() in version 1, is like in version 1 or not? and my second question is : Can i to compose varlist without ASN_OBJECT_ID in version , and how to do it? 2010/4/7 Dave Shield

Help in getting inform work in v3

2010-04-07 Thread Fatima Peter
Hello, We are using net-snmp version 5.5. I have v1/v2c/v3 traps working fine and inform also seems to work well in v2c. We have tested it with snmptrapd as well as with a 3rd party vendor tool. I seem to have problem getting inform work in v3. The informRequest goes out to snmptrapd which

Re: Help in getting inform work in v3

2010-04-07 Thread Fatima Peter
I meant: snmpd-trapsess -v 3 -t 1 -r 3 -e 0x80001f888085b94c4882d8bc4b -l noauth -u inter -Ci 10.10.16.118:162 or snmpd-trapsess -v 3 -t 1 -r 3 -e 0x80001f888085b94c4882d8bc4b -l noauth -u inter -n inter -Ci 10.10.16.118:162 Here is my snmptrapd.conf file: # snmptrapd.conf

trap v1

2010-04-07 Thread maxim maxim
Hi to all, can somebody to explain me why in SNMPv1 function send_trap_vars(int trap, int specific, netsnmp_variable_listhttps://mail.google.com/mail/html/compose/static_files/structvariable__list.html* vars) the varbind list (vars) should be same like in SNMPv2 , if it's not true how i can to

net-snmp cross compiling ....

2010-04-07 Thread 생각하기
Hi I 'm going to cross-compile net-snmp-5.3.2 on fedora11 Below is my .sh file == ./configure --host=i386-linux --build=ppc-linux --target=ppc-linux --prefix=/usr --exec-prefix=/usr

minor surgery on agent table handling

2010-04-07 Thread Robert Story
I spent most of the day today wading around in the guts of the agent's table handling code. I made a few changes which I don't think should negatively impact anything, but I just wanted to mention it so folks could be on the lookout for any adverse reactions. If anyone wants to look at what I've