350-401 · Question #680
Refer to the exhibit. A network engineer must be notified when a user switches to configuration mode. Which script should be applied to receive an SNMP trap and a critical-level log message?
The correct answer is C. action 1.0 snmp-trap strdata "Configuration change alarm". To generate an SNMP trap and a critical-level log message upon a user entering configuration mode, the applied script must explicitly include both snmp-trap and syslog priority critical actions.
Question
Refer to the exhibit. A network engineer must be notified when a user switches to configuration mode. Which script should be applied to receive an SNMP trap and a critical-level log message?
Options
- Aaction 1.0 snmp-trap strdata "Configuration change alarm"
- Baction 1.0 snmp-trap strdata "Configuration change alarm"
- Caction 1.0 snmp-trap strdata "Configuration change alarm"
- Daction 1.0 snmp-trap strdata "Configuration change critical alarm"
How the community answered
(21 responses)- B5% (1)
- C86% (18)
- D10% (2)
Why each option
To generate an SNMP trap and a critical-level log message upon a user entering configuration mode, the applied script must explicitly include both `snmp-trap` and `syslog priority critical` actions.
This option likely sends an SNMP trap but does not explicitly include `syslog priority critical` to generate a critical-level log message.
This option likely sends an SNMP trap but does not explicitly include `syslog priority critical` to generate a critical-level log message.
This option correctly includes both the `snmp-trap` action, which sends an SNMP notification, and the `syslog priority critical` action, which generates a critical-level log message, thereby fulfilling both requirements of the scenario.
This option may send an SNMP trap but might not include the `syslog priority critical` action or may use an incorrect alarm string.
Concept tested: EEM actions for SNMP traps and syslog
Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/eem/configuration/15-mt/eem-15-mt-book/eem-event-action-config.html
Topics
Community Discussion
No community discussion yet for this question.