Re: Query related to memory leaks and read errors in snmptrap command

2014-02-13 Thread Bill Fenner
So I > curiously tested for snmptrap command for valgrind and its leaking. For me, > I want to have leak proof code. > snmptrap is leaking 35 bytes, in functions that are called only once, in a process that exits quickly. It is just make-work to try to fix this, IMO. I looked into stable v

Re: Query related to memory leaks and read errors in snmptrap command

2014-02-10 Thread Bill Fenner
On Thu, Feb 6, 2014 at 7:11 AM, Chaitanya Gulhane < [email protected]> wrote: > > Hi, > > I was using net-snmp 5.6.2 and have built the code and installed it. > > I was using valgrind over snmptrap command. > Following is the command I ran. > > valg

Fwd: Query related to memory leaks and read errors in snmptrap command

2014-02-06 Thread Chaitanya Gulhane
Hi, I was using net-snmp 5.6.2 and have built the code and installed it. I was using valgrind over snmptrap command. Following is the command I ran. valgrind --leak-check=full --log-file=log_snmptrap snmptrap -v 2c -c public "" localhost UCD-TRAP-TEST-MIB::demoTrap Following is th

Re: snmptrap command

2011-04-01 Thread Dave Shield
he structure of SNMPv2/3 is *not* the same as that of SNMPv1.The parameters to the "snmptrap" command are very different for the two versions. See the man page for details. But there's another problem with both the command you are using, and the amended version that Erik

RE: snmptrap command

2011-04-01 Thread Eirik Nordbrøden
mptrap. Eirik Nordbrøden (+47) 90174789 > From: akshata s harkantra [mailto:[email protected]] > Sent: 1. april 2011 01:54 > To: Dave Shield > Cc: [email protected] > Subject: Re: snmptrap command > > Thanks Dave for your suggestion. >

Re: snmptrap command

2011-03-31 Thread akshata s harkantra
SNMPv2-MIB::snmpTrapOID localhost:162 7 1 '' SNMPv2-MIB::sysName.0 s "Sending a test trap" Regards, Akshata On Thu, Mar 31, 2011 at 12:37 AM, Dave Shield wrote: > On 31 March 2011 07:48, akshata s harkantra > wrote: > > I need to send a message or string using sn

Re: snmptrap command

2011-03-31 Thread Dave Shield
On 31 March 2011 07:48, akshata s harkantra wrote: > I need to send a message or string using snmptrap command to the receiver end. >snmptrap -v 2c -c public "ipaddress" sysDescr.0 No. The OID that you send with snmptrap must be the OID of a *notification* object. (i.e. o

snmptrap command

2011-03-30 Thread akshata s harkantra
Hi, I need to send a message or string using snmptrap command to the receiver end. snmptrap -v 2c -c public "ipaddress" sysDescr.0 I am able to receive traps using the above command on the receiving end. However I am interested to send a message or string using the snmptrap command

Re: need help to send trap to a specific port using snmptrap command line utility

2010-07-27 Thread Dave Shield
On 27 July 2010 13:29, Nisha Thomas wrote: >  Could you please help me to send trap to a specific port using snmptrap > command line utility. > > I couldn’t find the argument to specify port in the ‘snmptrap’ command. Is > there any way to specify the port in that command?

need help to send trap to a specific port using snmptrap command line utility

2010-07-27 Thread Nisha Thomas
Hi, Could you please help me to send trap to a specific port using snmptrap command line utility. I couldn’t find the argument to specify port in the ‘snmptrap’ command. Is there any way to specify the port in that command? Thanks in Advance,Nisha

community string and other values for snmptrap command

2008-07-18 Thread Zaryab Munir (zmunir)
Hi, I am using snmptrap command to send traps. I want the command to use the version and community string from snmpd.conf file and not from the arguments passed as command line. How does it work? I modified snmpd.conf file with values for trap sink, trap community etc. Then I copied the file