How do I add a second trap recipient?
Vasay, Al
VasayA____diebold.com
Wed Dec 6 19:38:58 CET 2000
Hi Frank,
How do I add a second trap recipient? I can send a trap to "10.9.32.115" by doing the following:
Vbx* vbs = 0;
coldStartOid coldOid;
NotificationOriginator no;
UdpAddress dest("10.9.32.115/162"); // Specify trap recipient
no.add_v1_trap_destination(dest);
no.generate(vbs, 0, coldOid, "", "");
But how do I send the trap to "10.9.32.115" and "10.9.32.191"?
I was looking at the notification_originator.cpp and learned that it's adding the IP Address to the targetParamsEntry, snmpNotifyEntry and snmpTargetAddrEntry tables whenever I call NotificationOriginator::add_v1_trap_destination. So, I thought that I can add the second recipient by doing the following:
Vbx* vbs = 0;
coldStartOid coldOid;
NotificationOriginator no;
UdpAddress dest("10.9.32.115/162"); // Specify trap recipient
no.add_v1_trap_destination(dest);
UdpAddress dest2("10.9.32.191/162"); // Add second recipient
no.add_v1_trap_destination(dest2);
no.generate(vbs, 0, coldOid, "", "");
But it didn't work. The trap got sent only to "10.9.32.115". What should I be doing?
Thanks,
Al Vasay
More information about the AGENTPP
mailing list