cpatte7372
asked on
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Cheers mate.
Really? I started as a programmer (cobol and VB) and it was always a small stuff that failed compiling.... Glad it helped!
ASKER
Thanks for responding. I will check it out and let you know.
Cheers