cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Cisco Community Designated VIP Class of 2020

239
Views
0
Helpful
2
Replies
Participant

EEM Python policy register

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')

 

2 REPLIES 2
VIP Advisor

Re: EEM Python policy register

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.

Participant

Re: EEM Python policy register

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

 

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

 

Content for Community-Ad
FusionCharts will render here
This widget could not be displayed.