The SNMP agent can send trap notifications to a receiver. The receiver’s host IP address and port number can be defined along with the notification type, version, and community string.
Configure a SNMPv2c trap receiver host:
switch(config)# snmp-server host IP-ADDR trap version v2c community xxx
Show commands to validate functionality:
show snmp trap
show snmp trap
------------------------------------------------------------------------------------------
Host Port Type Version SecName vrf
------------------------------------------------------------------------------------------
1.2.3.4 162 trap v1 public
1.2.3.4 162 trap v2c public
1.2.3.4 162 inform v2c public
default
default
default