[AGENT++] Changing community for generated traps

Gebhart Richard-P27117 Richard.Gebhart at motorola.com
Tue Nov 16 18:33:22 CET 2004


Hi,

I am new to SNMP, but I see the following in the documentation for NotificationOriginator:

Member Function Documentation
virtual boolean NotificationOriginator::add_v1_trap_destination  (  const UdpAddress &  dest   )  [virtual] 
 
   Make all necessary entries in snmpTargetAddressTable, snmpTargetParamsTable, and snmpNotifyTable for the given v1 trap destination. 

All rows added will be named defaultV1Trap. The community used for generated traps will be public.


Parameters:
targetAddress  an UDP address.  

Returns:
TRUE if the operation has been successful, FALSE otherwise. 


virtual boolean NotificationOriginator::add_v2_trap_destination  (  const UdpAddress &  addr   )  [virtual] 

virtual boolean NotificationOriginator::add_v3_trap_destination  (  const UdpAddress &  addr   )  [virtual] 
 

Is there anyway to generate a trap with a community name other than Public?

Thanks,
Richard




More information about the AGENTPP mailing list