12-02-2012 02:28 AM
Hello All,
Can someone please explain the following error when I try to run a script and how to fix it?
unknown namespace in import pattern "::cisco::eem::*"
I have attached the script
Cheers
Carlton
12-02-2012 03:21 AM
OK,
I changed the script a little, see attached, but when I run the script from command prompt I get the following:
R5#tclsh flash:EmailTemplate.tcl
*Mar 1 02:54:51.047: %SYS-5-CONFIG_I: Configured from console by console
invalid command name "::cisco::eem::event_register_syslog"
while executing
"::cisco::eem::event_register_syslog pattern "%LINEPROTO-5-UPDOWN:""
(file "flash:EmailTemplate.tcl" line 3)
Any help would be greatly appreciated...
Cheers
Carlton
12-02-2012 08:27 AM
Can I get some help with this?
Cheers
Carlton
12-02-2012 05:26 PM
It sounds like you're trying to run an EEM policy through tclsh. This will not work. While EEM and tclsh uses the same interpreter, they use different environments.
This policy you have will only work with that syslog trigger. Why do you want to execute this through tclsh?
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: