Sending SNMPv1 Traps

Scheuermann, Thomas Thomas.Scheuermann____barco.com
Fri May 4 11:09:18 CEST 2001


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____barco.com  
http://www.barco.com





More information about the AGENTPP mailing list