Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

TCL argument problem in event manager

Hello, i have created the following applet:

event manager applet test1

event track 2 state down

action 1.0 policy dns.tcl 1 2 3

Router(config-applet)#action 1.0 policy dns.tcl ?

  LINE  The list of arguments for the policy

as describe in help,  "1 2 3" shound be pass as argument of script

when track 2 go down and execute the policy dns.tcl the policy dosn't recive any parameter.

dns.tcl :

puts "The $argv0 script was calles with $argc arguments :"
puts "$argc"

for {set i 0} {$i<[llength $argv]} {incr i} {
  puts " - $i : [lindex $argv $i]"
}

It answer only with the name of the script $arv0

O.S. C180X Software (C180X-ADVIPSERVICESK9-M), Version 12.4(24)T6, RELEASE SOFTWARE (fc2)

Any idea?

Thanks in advance.

event manager applet test1
event track 2 state down
action 1.0 policy dns.tcl 1 2 3
Everyone's tags (3)
2 REPLIES
New Member

TCL argument problem in event manager

Hello!

Cisco "command lookup tool":

   action label policy policy-filename

According to the parameters in the applet is not transmitted.


Cisco Employee

TCL argument problem in event manager

This will not work as a tclsh script is not an EEM policy.  Why not use EEM Tcl throughout?  If you need help converting an applet to a Tcl policy, use http://www.marcuscom.com/convert_applet/ .

640
Views
0
Helpful
2
Replies