Router R10 is configured with SNMP and EEM. An EEM applet is configured to send an SNMP trap when a specific syslog message is generated. The applet uses the 'action snmp-trap' command. However, the NMS receives no trap. The syslog message is generated and logged. The router's show snmp statistics shows TrapsSent: 0. What is the root cause?
Without 'snmp-server host', the router does not know where to send the trap. The EEM action will fail silently.
Why this answer
EEM applets that send SNMP traps require the 'snmp-server enable traps' command to be enabled globally, and also the EEM applet must have the correct privilege level. Additionally, the 'action snmp-trap' command in EEM uses the SNMP community string configured globally. If the community string is not configured or the trap host is not set, the trap is not sent.
The correct answer is: 'The EEM applet is configured to send a trap, but the 'snmp-server host' command is missing, so the router has no destination for the trap.'