Solved

Cisco Tcl Script Help Pt1

Posted on 2014-01-31
4
595 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
  • 2
  • 2
4 Comments
 
LVL 12

Accepted Solution

by:
Infamus earned 500 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Eigrp Router 5 76
VirtualBOX on GNS3 11 118
How can I measure the quality of my Internet access? 2 49
Home wifi - Does it matter what router? 9 42
This article is a guide to configure bridging on Cisco Routers.  This is something I never knew was possible until after making a few phone calls to Cisco.  Using bridging saved our company money by not requiring us to purchase a new switch.  Bridgi…
Quality of Service (QoS) options are nearly endless when it comes to networks today. This article is merely one example of how it can be handled in a hub-n-spoke design using a 3-tier configuration.
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…

773 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