Embedded Event Manager Overview
http://www.cisco.com/en/US/docs/ios/netmgmt/configuration/guide/nm_eem_overview_ps6441_TSD_Products_Configuration_Guide_Chapter.html#wp1070244
如果想让结果直接显示:----------需要用到一个变量"_cli_result"
event manager applet ciscoEEM1
event none
action 0.9 cli command "enable"
action 1.0 cli command "show ip route connected"
action 1.1 puts "$_cli_result"
command in the $_cli_result variable.
* Similar to the Tcl EEM policies, the puts command writes the text
to the current line (console or VTY session) if the EEM applet executes
within the context of a line (for example, when started with the event
manager run command). Otherwise, its output is sent to the logging
subsystem.
====================
下面是常用的built-in variable :
action cli :$_cli_result
The result of the execution of the CLI command.
action counter:$_counter_value_remain
The value of the counter after the execution of the action counter