Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Cisco Tcl Script Help Pt1

Posted on 2014-01-31
4
Medium Priority
?
667 Views
Last Modified: 2014-02-02
Hello Experts,

I've compiled the attached script. However, when I attempt to register the script I get the following error:

Router(config)#even ma p ISPTest
Embedded Event Manager configuration: ISPTest does not have valid policy extension
Router(config)#even ma p ISPTest.tcl
Compile check and registration failed:syntax error in expression "$arr_einfo(condition) == Occurred"
    ("if" test expression)
    while compiling
"if {$arr_einfo(condition) == Occurred} {

    if [catch {cli_open} result] {
        error $result $errorInfo
    } else {
        array set cli1 $res..."
Tcl policy execute failed: syntax error in expression "$arr_einfo(condition) == Occurred"couldn't compile policy file to bytecode: Unknown error 0

Embedded Event Manager configuration: failed to retrieve intermediate registration result for policy ISPTest.tcl: Unknown error 0

I wonder if someone could take a look at the script and let me know where I might be going wrong?

Cheers

Carlton
ipSLAEE.txt
0
Comment
Question by:cpatte7372
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 12

Accepted Solution

by:
Infamus earned 2000 total points
ID: 39825288
I'm not familiar with TCL script but just a thought since no one is replying yet.

Have you look at the use of "{ }" see if you have them in the right place?
0
 

Author Comment

by:cpatte7372
ID: 39826198
Infamus

Thanks for responding. I will check it out and let you know.

Cheers
0
 

Author Closing Comment

by:cpatte7372
ID: 39828278
Cheers mate.
0
 
LVL 12

Expert Comment

by:Infamus
ID: 39828282
Really?  I started as a programmer (cobol and VB) and it was always a small stuff that failed compiling....  Glad it helped!
0

Featured Post

Optimum High-Definition Video Viewing and Control

The ATEN VM0404HA 4x4 4K HDMI Matrix Switch supports 4K resolutions of UHD (3840 x 2160) and DCI (4096 x 2160) with refresh rates of 30 Hz (4:4:4) and 60 Hz (4:2:0). It is ideal for applications where the routing of 4K digital signals is required.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

While it is possible to put two routes in place with the secondary having a higher metric, this may not always work. In the event of a failure that does not bring down the physical interface on the router the primary route is not removed. There is a…
In this tutorial I will show you with short command examples how to obtain a packet footprint of all traffic flowing thru your Juniper device running ScreenOS. I do not know the exact firmware requirement, but I think the fprofile command is availab…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question