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 [email protected]
event manager environment _email_from [email protected]
event manager environment _email_cc [email protected]
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.
Test
GOLD Tcl Scripts
TestAsicSync
Mandatory.go_asicsync.tcl
Common for all bootup tests.
Mandatory.go_bootup.tcl
TestFabricHealth
Mandatory.go_fabric.tcl
TestFabricCh0Health
Mandatory.go_fabrich0.tcl
TestFabricCh1Health
Mandatory.go_fabrich1.tcl
TestIPSecEncrypDecrypPkt
Mandatory.go_ipsec.tcl
TestMacNotification
Mandatory.go_mac.tcl
TestNonDisruptiveLoopback
Mandatory.go_nondislp.tcl
TestScratchRegister
Mandatory.go_scratchreg.tcl
TestSPRPInbandPing
Mandatory.go_sprping.tcl
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1807
Configuration Examples for Writing Embedded Event Manager Policies Using Tcl
Summary of Contents for Catalyst 2960 Series
Page 96: ......
Page 196: ......
Page 250: ......
Page 292: ......
Page 488: ......
Page 589: ...P A R T VI Cisco Flexible NetFlow Configuring NetFlow Lite page 509 ...
Page 590: ......
Page 619: ...P A R T VII QoS Configuring QoS page 539 Configuring Auto QoS page 645 ...
Page 620: ......
Page 750: ......
Page 1604: ......
Page 1740: ......
Page 2105: ...P A R T XII Configuring Cisco IOS IP SLAs Configuring Cisco IP SLAs page 2025 ...
Page 2106: ......
Page 2118: ......
Page 2164: ......