event manager environment
To set an Embedded Event Manager (EEM) environment variable, use the
event manager environment
command in global configuration mode. To remove the configuration, use the
no
form of this command.
event manager environment var-name
[
var-value
]
no event manager environment var-name
Syntax Description
Name assigned to the EEM environment configuration variable.
var-name
(Optional) Series of characters, including embedded spaces, to be placed in the
environment variable
var-name
.
var-value
Command Default
None
Command Modes
Global configuration
Command History
Modification
Release
This command was introduced.
Release 3.2
The
fault manager environment
command was replaced with the
event
manager environment
command.
The
var-value
argument was changed from required to optional.
Release 3.6.0
Task ID was changed from fault-mgr to eem.
Release 3.7.0
Usage Guidelines
Environment variables are available to EEM policies when you set the variables using the
event manager
environment
command. They become unavailable when you remove them with the
no
form of this command.
By convention, the names of all the environment variables defined by Cisco begin with an underscore character
(_) to set them apart, for example, _show_cmd.
Spaces can be used in the
var-value
argument. This command interprets everything after the
var-name
argument
uptil the end of the line in order to be a part of the
var-value
argument.
Use the
show event manager environment, on page 92
command to display the name and value of all EEM
environment variables before and after they have been set using the
event manager environment
command.
Cisco IOS XR System Monitoring Command Reference for the Cisco XR 12000 Series Router, Release 4.1
80
OL-24735-01
Embedded Event Manager Commands
event manager environment