10-02-2019 05:25 AM
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')
Solved! Go to Solution.
10-24-2019 12:53 AM
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.
10-24-2019 12:53 AM
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.
10-24-2019 01:29 AM
it was in ISR44xx plateform... yes directory was define too..
event manager directory user policy flash: event manager policy eem_script.py
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