Cisco Systems 3560 사용자 설명서

다운로드
페이지 1288
 
32-5
Catalyst 3560 Switch Software Configuration Guide
OL-8553-06
Chapter 32      Configuring Embedded Event Manager
Configuring Embedded Event Manager
Embedded Event Manager Environment Variables 
EEM uses environment variables in EEM policies. These variables are defined in a EEM policy tool 
command language (TCL) script by running a CLI command and the event manager environment 
command. 
  •
User-defined variables
Defined by the user for a user-defined policy. 
  •
Cisco-defined variables
Defined by Cisco for a specific sample policy. 
  •
Cisco built-in variables (available in EEM applets)
Defined by Cisco and can be read-only or read-write. The read-only variables are set by the system 
before an applet starts to execute. The single read-write variable, _exit_status, allows you to set the 
exit status for policies triggered from synchronous events. 
Cisco-defined environment variables and Cisco system-defined environment variables might apply to 
one specific event detector or to all event detectors. Environment variables that are user-defined or 
defined by Cisco in a sample policy are set by using the event manager environment global 
configuration command. You must defined the variables in the EEM policy before you register the 
policy. 
For information about the environmental variables that EEM supports, see the Cisco IOS Network 
Management Configuration Guide, Release 12.4T.
Configuring Embedded Event Manager 
  •
  •
For complete information about configuring embedded event manager, see the Cisco IOS Network 
Management Configuration Guide, Release 12.4T.
Registering and Defining an Embedded Event Manager Applet 
Beginning in privileged EXEC mode, perform this task to register an applet with EEM and to define the 
EEM applet using the event applet and action applet configuration commands.
Command
Purpose
Step 1
configure terminal
Enter global configuration mode.
Step 2
event manager applet applet-name 
Register the applet with EEM and enter applet configuration mode. 
Step 3
 event snmp oid oid-value get-type 
{exact | nextentry-op {gt | ge | eq | ne | 
lt | leentry-val entry-val [exit-comb 
{or | and}] [exit-op {gt | ge | eq ne | lt | 
le}] [exit-val exit-val] [exit-time 
exit-time-valpoll-interval poll-int-val
Specify the event criteria that causes the EEM applet to run. 
(Optional) Exit criteria. If exit criteria are not specified, event monitoring 
is re-enabled immediately.