Some pointers for TCL/EEM setup.
(config)# event manager directory user policy "flash0:/" # show event manager directory user library (config)# event manager policy monitorCO.tcl # show event manager policy registered (config)# no event manager policy monitorCO.tcl # show event manager history events # event manager run monitorCO.tcl
(config)# event manager environment monitorCO_INTERVAL 30 # show event manager environment
puts [open "flash0:/monitorCO.tcl" w+] {
Do NOT hit the ENTER key at the end of the line.
Check that your file was correctly inserted to flash:
# more monitorCO.tcl
! kron occurrence minute in 1 recurring policy-list monitorCOrun ! kron policy-list monitorCOrun cli event manager run monitorCO.tcl !