# a response to that prompt.
set cmdlist [split $arr_einfo($arg) "^"]
set cmdarr(send) [lindex $cmdlist 0]
set cmdarr(responses) [list]
if { [expr ([llength $cmdlist] - 1) % 2] != 0 } {
return -code 88
}
set cmdarr(responses) [list]
for { set j 1 } { $j < [llength $cmdlist] } { incr j 2 } {
set resps(expect) [lindex $cmdlist $j]
set resps(reply) [lindex $cmdlist [expr $j + 1]]
lappend cmdarr(responses) [array get resps]
}
lappend cmds [array get cmdarr]
}
set rc [catch {run_cli_interactive $cmds} output]
if { $rc != 0 } {
error $output $errorInfo
return -code 88
}
puts $output
Additional References
The following sections provide references related to writing Embedded Event Manager policies using Tcl.
Related Documents
Document TitleRelated Topic
Cisco IOS Master Commands List, All ReleasesCisco IOS commands
Cisco IOS Embedded Event Manager Command
Reference
EEM commands: complete command syntax, defaults,
command mode, command history, usage guidelines,
and examples
Embedded Event Manager Overview module.Embedded Event Manager overview
Writing Embedded Event Manager Policies Using
the Cisco IOS CLI module
Embedded Event Manager policy writing using the
CLI
Embedded Resource Manager moduleEmbedded Resource Manager
MIBs
MIBs LinkMIB
To locate and download MIBs for selected platforms,
Cisco IOS releases, and feature sets, use Cisco MIB
Locator found at the following URL:
http://www.cisco.com/go/mibs
CISCO-EMBEDDED-EVENT-MGR-MIB
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1823
Additional References