cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2187
Views
0
Helpful
5
Replies

embedded event manager in 12.2(33)SXI3

engineer1a
Level 1
Level 1

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,

1 Accepted Solution

Accepted Solutions

cwildes
Level 1
Level 1

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

View solution in original post

5 Replies 5

Joe Clarke
Cisco Employee
Cisco Employee

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

::cisco::eem::event_register_timer watchdog time $cputimer

cwildes
Level 1
Level 1

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

Thank you very much for the reply.. That was the mistake..

mkhalil10
Spotlight
Spotlight

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

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