[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 720
  • Last Modified:

Cisco Tcl Script Help Pt1

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
cpatte7372
Asked:
cpatte7372
  • 2
  • 2
1 Solution
 
InfamusCommented:
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
 
cpatte7372Author Commented:
Infamus

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

Cheers
0
 
cpatte7372Author Commented:
Cheers mate.
0
 
InfamusCommented:
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

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now