TCL argument problem in event manager

Unanswered Question
Jan 19th, 2012
User Badges:

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
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
SKC-Korotkov-999 Tue, 03/20/2012 - 11:51
User Badges:

Hello!

Cisco "command lookup tool":

   action label policy policy-filename


According to the parameters in the applet is not transmitted.



Actions

This Discussion

Related Content