embedded event manager in 12.2(33)SXI3

Answered Question
Jul 16th, 2010

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,

I have this problem too.
0 votes
Correct Answer by cwildes about 6 years 4 months ago

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

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Joe Clarke Fri, 07/16/2010 - 08:28

You're missing a colon.  Your first line must be:

::cisco::eem::event_register_timer watchdog time $cputimer
Correct Answer
cwildes Fri, 07/16/2010 - 08:30

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

mkhalil10 Wed, 08/05/2015 - 00:55

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

Joe Clarke Wed, 08/05/2015 - 10:12

Please start a new thread for your issue.  Post your current script and the error you're getting.

Actions

This Discussion