Silly me! The snmpd.conf file was not configured properly for the rwcommunity.
So, the result of the snmpset -v2c -cprivate localhost enterprises.2021.254.8.0
i 0 command is:
snmpset -v2c -cprivate localhost enterprises.2021.254.8.0 i 1
>UCD-SNMP-MIB::ucdavis.254.8.0 = INTEGER: 1
>
And that does generate traps, and a memory leak!
Sylvain
________________________________
From: Sylvain Dery <[email protected]>
To: Bart Van Assche <[email protected]>
Cc: [email protected]
Sent: Wed, June 16, 2010 5:19:18 PM
Subject: Re: Memory leaks when sending traps
The command returns:
snmpset -v2c -cprivate localhost enterprises.2021.254.8.0 i 0
>Timeout: No Response from localhost
However:
snmpget -v2c -cpublic localhost enterprises.2021.254.8.0
>UCD-SNMP-MIB::ucdavis.254.8.0 = INTEGER: 0
One point of interest is if I configure the snmp agent to start as a master
agent (therefore I don't need the snmpd process anymore), the leak is gone...
Sylvain
________________________________
From: Bart Van Assche <[email protected]>
To: Sylvain Dery <[email protected]>
Cc: [email protected]
Sent: Fri, June 11, 2010 2:33:26 AM
Subject: Re: Memory leaks when sending traps
Does the leak occur when running the following command in a Cygwin shell on the
system where the Net-SNMP 5.5.0 Windows binary has been installed ?
$ while true; do for ((i=0;i<10;i++)); do snmpset -v2c -cprivate localhost
enterprises.2021.254.8.0 i 1 & done; wait; done
Bart.
On Thu, Jun 10, 2010 at 9:11 PM, Sylvain Dery <[email protected]> wrote:
On Unix, I compiled the snmpd from the 5.5 source files as found in
"http://sourceforge.net/projects/net-snmp/files/net-snmp/5.5/"; there is no
memory leak...
>Sylvain
>
>
>
>
________________________________
From: Bart Van Assche <[email protected]>
>To: Sylvain Dery <[email protected]>
>Cc: [email protected]
>Sent: Thu, June 10, 2010 2:12:15 PM
>Subject: Re: Memory leaks when sending traps
>
>
>
>On Thu, Jun 10, 2010 at 7:56 PM, Sylvain Dery <[email protected]> wrote:
>
>
>>There is a memory leak of ~24 k in snmpd everytime I send snmp-v2 traps. I'm
>>using the 5.5 windows binary (net-snmp-5.5.0-2.x64.exe ) as download from
>>http://sourceforge.net/projects/net-snmp/files/net-snmp
>>binaries/5.5-binaries/ on Windows-XP. Same leaks occurs with snmp-v1 and
>>informs.
>>
>>Is it a known bug? It there a fix for this?
>How does the Unix snmpd behave if you run the same test on a Unix system ?
>
>Bart.
>
>
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders