TCL argument problem in event manager

Unanswered Question
Jan 19th, 2012

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
I have this problem too.
1 vote
  • 1
  • 2
  • 3
  • 4
  • 5
Average Rating: 0 (0 ratings)
SKC-Korotkov-999 Tue, 03/20/2012 - 11:51

Hello!

Cisco "command lookup tool":

   action label policy policy-filename

According to the parameters in the applet is not transmitted.


Actions

Login or Register to take actions

This Discussion

Posted January 19, 2012 at 8:58 AM
Stats:
Replies:2 Avg. Rating:
Views:609 Votes:1
Shares:0
Tags: tcl, eem, applet
+
Categories: IP SLA
+

Related Content

Discussions Leaderboard

Rank Username Points
1 2,478
2 1,624
3 1,445
4 861
5 578