with TCL.
http://www.cisco.com/en/US/docs/ios/netmgmt/configuration/guide/nm_eem_policy_tcl.html
On Fri, Jan 21, 2011 at 9:21 AM, Parahexen <parahexen_at_gmail.com> wrote:
> For example,
>
>
> Applet 1
> event none
> action 1 cli command "show ip route"
> action 2 puts "$_cli_result"
>
> Applet 2
> event none
> action 1 puts "($_cli_result from Applet 1)"
>
>
> How to accomplish this goal?
>
> I've tried three totally differnet ways but neither were working.
>
> Method 1:
>
> Applet 1
> event none
> action 1 cli command "show ip route"
> action 2 policy 2 "$_cli_result"
>
> Applet 2
> event none
> action 1 puts "$_none_argc"
> action 2 puts "$_none_arg1"
>
> Result:
> $_none_argc = 1
> $_none_arg1 = "$_cli_result"
> (just string "$_cli_result" but not the value of this variable)
>
> Method 2:
>
> Applet 1
> event none
> action 1 cli command "show ip route"
> action 2 cli command "enable"
> action 3 cli command "event manager run 2 $_cli_result"
>
> Applet 2
> event none
> action 1 puts "$_none_argc"
> action 2 puts "$_none_arg1"
>
> Result:
> $_none_argc = 1
> $_none_arg1 = "$_cli_result"
> (just string "$_cli_result" but not the value of this variable)
>
> Method 3:
>
> Applet 1
> event none
> action 1 cli command "show ip route"
> action 2 publish-event sub-system 798 type 1 arg1 "$_cli_result"
>
> Applet 2
> event application subsystem 798 type 1
> action 1 puts "$_application_data1"
>
> Result:
> $_application_data1 = "$_cli_result"
> (just string "$_cli_result" but not the value of this variable)
>
> Method 4:
>
> Maybe we can utilize the common event manager enviroment to share
> variables?
> I did a few simple tries but failed.
>
> I've totally been stuck here, please let me out, thank you!
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
Blogs and organic groups at http://www.ccie.net
Received on Fri Jan 21 2011 - 09:37:51 ART
This archive was generated by hypermail 2.2.0 : Tue Feb 01 2011 - 07:39:17 ART