booted, use the following initial configuration, substituting appropriate values for your network. The
environment variables for the tm_fsys_usage sample policy (see the table above) are all optional and are not
listed here:
hostname cpu
ip domain-name example.com
event manager environment _email_server ms.example.net
event manager environment _email_to username@example.net
event manager environment _email_from engineer@example.net
event manager environment _email_cc projectgroup@example.net
event manager environment _cron_entry 0-59/2 0-23/1 * * 0-7
event manager environment _show_cmd show event manager policy registered
event manager environment _syslog_pattern .*UPDOWN.*FastEthernet0/0
event manager environment _config_cmd1 interface Ethernet1/0
event manager environment _config_cmd2 no shutdown
event manager environment _crash_reporter_debug 1
event manager environment _crash_reporter_url
http://www.example.com/fm/interface_tm.cgi
end
Using the Sample Policies
This section contains the following configuration scenarios to demonstrate how to use the some sample Tcl
policies:
Running the Mandatory.go_*.tcl Sample Policy
There are GOLD TCL scripts for each test which runs as a part of GOLD EEM Policy. You can modify the
TCL script for the test, specify the consecutive failure count, and also change the default corrective action.
For example, one could chose to power down a linecard card, instead of reset or other CLI based actions.
For each registered test, a default TCL script is available, which can be registered with the system, and matches
with the default action. This can be then overridden by modifying these scripts.
The following table shows a list of the mandatory polices that GOLD installed into EEM. Each of the policies
performs some sort of action such as resetting the card or disabling the port.
GOLD Tcl Scripts
Mandatory.go_asicsync.tcl
Mandatory.go_bootup.tcl
Mandatory.go_fabric.tcl
Mandatory.go_fabrich0.tcl
Mandatory.go_fabrich1.tcl
Mandatory.go_ipsec.tcl
Mandatory.go_mac.tcl
Mandatory.go_nondislp.tcl
Mandatory.go_scratchreg.tcl
Mandatory.go_sprping.tcl
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
Configuration Examples for Writing Embedded Event Manager Policies Using Tcl
Test
TestAsicSync
Common for all bootup tests.
TestFabricHealth
TestFabricCh0Health
TestFabricCh1Health
TestIPSecEncrypDecrypPkt
TestMacNotification
TestNonDisruptiveLoopback
TestScratchRegister
TestSPRPInbandPing
1807