The table below describes the EEM environment variables that must be set before the no_perf_test_init.tcl
sample policy is run.
Table 175: Environment Variables Used in the no_perf_test_init.tcl Policy
ExampleDescriptionEnvironment Variable
100The number of iterations over
which to run the measurement.
_perf_iterations
enableThe first non interactive CLI
command that is executed as part
of the measurement test. This
variable is optional and need not
be specified.
_perf_cmd1
show versionThe second non interactive CLI
command that is as part of the
measurement test. To use
_perf_cmd2, _perf_cmd1 must be
defined. This variable is optional
and need not be specified.
_perf_cmd2
show interface counters protocol
status
The third non interactive CLI
command that is as part of the
measurement test. To use
_perf_cmd3, _perf_cmd1 must be
defined. This variable is optional
and need not be specified.
_perf_cmd3
The table below describes the EEM environment variables that must be set before the sl_intf_down.tcl sample
policy is run.
Table 176: Environment Variables Used in the sl_intf_down.tcl Policy
ExampleDescriptionEnvironment Variable
interface Ethernet1/0The first configuration command
that is executed.
_config_cmd1
no shutdownThe second configuration
command that is executed. This
variable is optional and need not
be specified.
_config_cmd2
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1804
Configuration Examples for Writing Embedded Event Manager Policies Using Tcl