cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1859
Views
5
Helpful
2
Replies

EEM Python policy register

kthned
Level 3
Level 3

Hi 

First timer playing with python on the IOS XE...

Failed to register my eem_script.py in to the EEM. Any one can help please. Tried also the conventional pythoin script But i get the same result.

 

(config)#event manager policy eem_script.py
EEM configuration: failed to retrieve intermediate registration result for policy eem_script.py

 

eem_script.py
::cisco::eem::event_register_syslog tag "1"    pattern     COUNTER    maxrun 200
 
import eem
import time
 
eem.action_syslog("SAMPLE SYSLOG MESSAGE","6","TEST")
#!/usr/bin/python

import cli
print cli.execute('show version')

 

1 Accepted Solution

Accepted Solutions

Seb Rupik
VIP Alumni
VIP Alumni

Hi there,

Have you specified the directory to find your python script:

 

event manager directory user policy flash:
event manager policy eem_script.py

You didn't specifiy the platform you are using but you may be encountering this bug:

https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvq58722/?rfs=iqvred

 

cheers,

Seb.

View solution in original post

2 Replies 2

Seb Rupik
VIP Alumni
VIP Alumni

Hi there,

Have you specified the directory to find your python script:

 

event manager directory user policy flash:
event manager policy eem_script.py

You didn't specifiy the platform you are using but you may be encountering this bug:

https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvq58722/?rfs=iqvred

 

cheers,

Seb.

it was in ISR44xx plateform... yes directory was define too..

 

event manager directory user policy flash:
event manager policy eem_script.py