Exam 400-101 | Question id=1172 | Infrastructure Services |
You are configuring EEM on a router. You have issued the event ioswdsysmon sub1 cpu-proc taskname Task1 op ge val 90 period 20 command to trigger an action when the processor usage exceeds 90 percent over a 20 second period. You want to configure the router to change the IP address of the s0/0 interface when this event is triggered.
Which of the following commands should you issue?
A. |
action cli | |
B. |
action force-switchover | |
C. |
action info | |
D. |
action ipaddress | |
E. |
action publish-event | |
F. |
action reload | |
G. |
action snmp-trap |
You should issue the action cli command to configure the router to change the IP address of the s0/0 interface when the Embedded Event Manager (EEM) event is triggered. EEM enables event detectors to monitor events and perform actions if those events are triggered. The event ioswdsysmon command configures the Watchdog System Monitor (IOSWDSysMon) to monitor memory and processor usage.
The syntax of the action cli command is action labelcli command commandstring. The label variable, which is used with all the action commands, is an alphanumeric value that determines the order in which the actions are processed when the event is triggered. The commandstring variable is the IOS command that should be issued; if the command contains spaces, the command must be enclosed in double quotation marks (").
You should not issue the action force-switchover command to change the IP address of the s0/0 interface when the EEM event is triggered. The action forceswitchovercommand configures the router to switch to a secondary processor when the event is triggered.
You should not issue the action info command to change the IP address of the s0/0 interface when the EEM event is triggered. The action info command enables the router to retrieve command history and logging information.
You should not issue the action publish-event command to change the IP address of the s0/0 interface when the EEM event is triggered. The action publish-event command configures the router to publish an application-specific event when the EEM event is triggered. EEM must publish events to subsystem number 798.
You should not issue the action reload command to change the IP address of the s0/0 interface when the EEM event is triggered. The action reload command reloads the Cisco IO software when the EEM event is triggered.
You should not issue the action snmp-trap command to change the IP address of the s0/0 interface when the EEM event is triggered. The action snmp-trap command generates a Simple Network Management Protocol (SNMP) trap when the EEM event is triggered.
You should not issue the action ip-address command to change the IP address of the s0/0 interface when the EEM event is triggered, because the ip-address keyword is not supported with the action command. The following keywords can be used with the action command:
- cli
- cns-event
- counter
- force-switchover
- info
- mail
- policy
- publish-event
- reload
- snmp-trap
- syslog