<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic EEM Python policy register in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/eem-python-policy-register/m-p/3933776#M2504</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;First timer playing with python on the IOS XE...&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(config)#event manager policy eem_script.py&lt;BR /&gt;&lt;STRONG&gt;EEM configuration: failed to retrieve intermediate registration result for policy eem_script.py&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;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")&lt;/PRE&gt;&lt;PRE&gt;#!/usr/bin/python

import cli
print cli.execute('show version')&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Oct 2019 12:25:57 GMT</pubDate>
    <dc:creator>kthned</dc:creator>
    <dc:date>2019-10-02T12:25:57Z</dc:date>
    <item>
      <title>EEM Python policy register</title>
      <link>https://community.cisco.com/t5/controllers/eem-python-policy-register/m-p/3933776#M2504</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;First timer playing with python on the IOS XE...&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(config)#event manager policy eem_script.py&lt;BR /&gt;&lt;STRONG&gt;EEM configuration: failed to retrieve intermediate registration result for policy eem_script.py&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;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")&lt;/PRE&gt;&lt;PRE&gt;#!/usr/bin/python

import cli
print cli.execute('show version')&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 12:25:57 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/eem-python-policy-register/m-p/3933776#M2504</guid>
      <dc:creator>kthned</dc:creator>
      <dc:date>2019-10-02T12:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: EEM Python policy register</title>
      <link>https://community.cisco.com/t5/controllers/eem-python-policy-register/m-p/3947086#M2505</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;Have you specified the directory to find your python script:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;event manager directory user policy flash:
event manager policy eem_script.py&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #58585b; font-family: CiscoSans,Arial,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;You didn't specifiy the platform you are using but you may be encountering this bug:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #58585b; font-family: CiscoSans,Arial,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;A href="https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvq58722/?rfs=iqvred" target="_blank"&gt;https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvq58722/?rfs=iqvred&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #58585b; font-family: CiscoSans,Arial,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;cheers,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #58585b; font-family: CiscoSans,Arial,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Seb.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 07:53:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/eem-python-policy-register/m-p/3947086#M2505</guid>
      <dc:creator>Seb Rupik</dc:creator>
      <dc:date>2019-10-24T07:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: EEM Python policy register</title>
      <link>https://community.cisco.com/t5/controllers/eem-python-policy-register/m-p/3947101#M2506</link>
      <description>&lt;P&gt;it was in ISR44xx plateform... yes directory was define too..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;event manager directory user policy flash:
event manager policy eem_script.py&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 08:29:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/eem-python-policy-register/m-p/3947101#M2506</guid>
      <dc:creator>kthned</dc:creator>
      <dc:date>2019-10-24T08:29:23Z</dc:date>
    </item>
  </channel>
</rss>

