This section describes how to configure the Embedded Event Manager (EEM) to detect and handle critical events on Cisco NX-OS devices.
The EEM monitors events that occur on the device and takes action to recover or troubleshoot these events based on the configuration.
The EEM consists of three major components:
Event statements: Events to monitor from another Cisco NX-OS component that may require some action, workaround, or notification.
Action statements: Actions that the EEM can take, such as sending an email or disabling an interface, to recover from an event.
Policies: Events paired with one or more actions to troubleshoot or recover from the event.
Policies
An EEM policy consists of an event statement and one or more action statements. The event statement defines the event to look for as well as the filtering characteristics for the event. The action statement defines the action EEM takes when the event occurs.
Figure 16-1 shows the two basic statements in an EEM policy.
Figure 16-1 EEM Policy Statements
EEM policies can be configured using the command-line interface (CLI) or a VSH script.
The EEM gives a device-wide view of policy management. EEM policies are configured on the supervisor, and the EEM pushes the policy to the correct module based on the event type. The EEM takes any actions for a triggered event either locally on the module or on the supervisor (the default option). The EEM maintains event logs on the supervisor.
Cisco NX-OS has a number of preconfigured system policies. These system policies define many common events and actions for the device. System policy names begin with two underscore characters (__). You can create user policies to suit your network. If you create a user policy, any actions in your policy occur after EEM triggers any system policy actions related to the same event as your policy. You can also override some system policies. The overrides that you configure take the place of the system policy. You can override the event or the actions.
Use the show event manager system-policy command to view the preconfigured system policies and determine which policies that you can override.
Leave a Reply