Sending SNMPv1 Traps

Scheuermann, Thomas Thomas.Scheuermann____barco.com
Fri May 4 11:40:03 CEST 2001


Thank you,

snmp_target_mib was missing.
The other was already in.

Thomas

Thomas Scheuermann
Software Design Engineer
BARCO CONTROL ROOMS GMBH
Phone: (49) (721) 6201-168
Fax: (49) (721) 6201-190
mailto:thomas.scheuermann____barco.com  
http://www.barco.com



> -----Original Message-----
> From: Frank.Fock____t-online.de [mailto:Frank.Fock____t-online.de]
> Sent: Freitag, 4. Mai 2001 11:35
> To: Thomas.Scheuermann____barco.com
> Cc: agentpp-dl____agentpp.com
> Subject: Re: Sending SNMPv1 Traps
> 
> 
> Hello Thomas,
> 
> You will have to add snmp_notification_mib and
> snmp_target_mib to your Mib instance first.
> 
> Regards,
> Frank
> 
> >
> > Hello,
> > 
> > I have a problem with sending SNMPv1 traps. I looked at the example 
> code and
> > took it to my code :
> >     Vbx* vbs = 0;
> > cout << "1" << endl;
> >     coldStartOid coldOid;
> > cout << "2" << endl;
> >     NotificationOriginator no;
> > cout << "3" << endl;
> >     UdpAddress dest("127.0.0.1/162");
> > cout << "4" << endl;
> >     no.add_v1_trap_destination(dest);
> > cout << "5" << endl;
> >     no.generate(vbs, 0, coldOid, "", "");
> > cout << "6" << endl;
> > 
> > and I always get a segmentation fault at 
> no.add_v1_trap_destination(dest);
> > I don't know why.
> > I'm working on Linux with agent++3.4.4a and snmp++v3.0.1
> > Can anybody help me ?
> > 
> > regards
> > 
> > Thomas
> > 
> > Thomas Scheuermann
> > Software Design Engineer
> > BARCO CONTROL ROOMS GMBH
> > Phone: (49) (721) 6201-168
> > Fax: (49) (721) 6201-190
> > mailto:thomas.scheuermann at barco.com  
> > http://www.barco.com
> > 
> > 
> > 
> 



More information about the AGENTPP mailing list