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
I changed the script a little, see attached, but when I run the script from command prompt I get the following:
*Mar 1 02:54:51.047: %SYS-5-CONFIG_I: Configured from console by console
invalid command name "::cisco::eem::event_register_syslog"
"::cisco::eem::event_register_syslog pattern "%LINEPROTO-5-UPDOWN:""
(file "flash:EmailTemplate.tcl" line 3)
Any help would be greatly appreciated...
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?