Enabling SNMP Traps

Use the following configuration to enable the SNMP Traps.


configure 
   snmp-trapper enable true 
   snmp-trapper { v2c-target target | v3-target target | v3-engine-id source_engine_id }  
      community [ community_string ] 
      port [ port ] 
      exit 
   snmp-trapper source-ip-routes [ vip_options ] 
   exit 

NOTES:

  • snmp-trapper enable true – Enables the snmp-trapper parameters

  • v2c-target|v3-target [ target ] – Specifies the list of SNMP v2c and v3 trap receivers.

  • community [ community_string ] – Specifies the SNMP Trap receiver community.

  • v3-engine-id source_engine_id – Specifies the source engine ID for the v3 traps. source_engine_id must be an hexagonal string. For instance, 80004f.

  • port [ port ] – Specifies the SNMP Trap receiver port. port must be an integer in the range of 0 through 65535. The default value is 162.

  • source-ip-routes [ vip_options ] – Enables binding to source IP for SNMP routing. vip specifies the virtual IP (VIP) address. The different options for virtual IP addresses include:

    • default-external-vip – Specifies the default external VIP for source IP routing.

    • internal-vip – Specifies the internal VIP for source IP routing.

    • source-external-vips -Specifies the external VIP per namespace.