07-16-2010 05:46 AM
Hello,
I am trying to register a policy but I am getting the following error:
267808: Jul 16 12:19:25.216 GMT: %HA_EM-6-FMPD_EEM_LOG_MSG: Register event failed: Error empty reg spec, policy does not start with EEM registration command
The first lines of the script are :
::cisco:eem::event_register_timer watchog time $cputimer
namespace import ::cisco::eem::*
I have defined the following environmental variables which are used later in the script:
#show event manager environment
No. Name Value
1 cputimer 5
2 mincpu 5
3 fhandle disk0:/cpu_output.txt
The policies are in EEM:
dir
Directory of disk0:/
1 -rw- 8677 May 28 2010 11:53:56 +00:00 startup-config
2 -rw- 150725900 May 28 2010 12:02:58 +00:00 s72033-ipservicesk9_wan-vz.122-33.SXI3.bin
3 -rw- 790 Jul 9 2010 09:58:38 +00:00 cpuinfo
4 drw- 0 Jul 16 2010 08:05:38 +00:00 EEM
dir
Directory of disk0:/EEM/
5 -rw- 1101 Jul 16 2010 11:49:16 +00:00 cpuinfowatchdog.tcl
6 -rw- 1101 Jul 16 2010 12:04:34 +00:00 tm_cpuinfowatchdog.tcl
1024196608 bytes total (873299968 bytes free)
router#show event manager directory user policy
disk0:/EEM
router(config)#event manager policy cpuinfowatchdog.tcl type user
Embedded Event Manager configuration: failed to retrieve intermediate registration result for policy cpuinfowatchdog.tcl
router(config)#
267810: Jul 16 12:35:03.348 GMT: %HA_EM-6-FMPD_EEM_LOG_MSG: Register event failed: Error empty reg spec, policy does not start with EEM registration commands.
Any hints ?
Thanks in advance,
Solved! Go to Solution.
07-16-2010 08:30 AM
You are missing an extra colon between cisco and eem in this event registration line:
::cisco:eem::event_register_timer watchog time $cputimer
Thanks,
Clyde Wildes
07-16-2010 08:28 AM
You're missing a colon. Your first line must be:
::cisco::eem::event_register_timer watchdog time $cputimer
07-16-2010 08:30 AM
You are missing an extra colon between cisco and eem in this event registration line:
::cisco:eem::event_register_timer watchog time $cputimer
Thanks,
Clyde Wildes
07-16-2010 12:45 PM
Thank you very much for the reply.. That was the mistake..
08-05-2015 12:55 AM
Hi all
Am facing the same issue and I have checked the colons but it keep give me errors when trying to commit my configuration
Any other issues could cause this?
BR,
Mohammad
08-05-2015 10:12 AM
Please start a new thread for your issue. Post your current script and the error you're getting.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide