<?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 Python script triggered by UPM doesn't work properly in ExtremeSwitching (EXOS/Switch Engine)</title>
    <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34295#M6694</link>
    <description>Hi everybody.&lt;BR /&gt;
I use x480 with 16.1.2.&lt;BR /&gt;
&lt;BR /&gt;
I have simple .py script like this.&lt;BR /&gt;
import pexpect&lt;BR /&gt;
import exsh&lt;BR /&gt;
exsh.clicmd ('create log message "Starting NSCBackup!"')&lt;BR /&gt;
for i in range(1,10):&lt;BR /&gt;
   print(i)&lt;BR /&gt;
   p = pexpect.spawn('/exos/bin/ssh -r 2 USERNAME@172.20.1.' + str(i))&lt;BR /&gt;
   idx = p.expect(['password', pexpect.EOF, pexpect.TIMEOUT])&lt;BR /&gt;
   p.sendline('SECRETPASS')&lt;BR /&gt;
   idx = p.expect(['sCore', pexpect.EOF, pexpect.TIMEOUT])&lt;BR /&gt;
   p.sendline('create log message "Not so cold backuper"')&lt;BR /&gt;
   idx = p.expect(['sCore', pexpect.EOF, pexpect.TIMEOUT])&lt;BR /&gt;
   p.sendline('save')&lt;BR /&gt;
   idx = p.expect(['(y/N)', pexpect.EOF, pexpect.TIMEOUT])&lt;BR /&gt;
   p.sendline('y')&lt;BR /&gt;
   idx = p.expect(['sCore', pexpect.EOF, pexpect.TIMEOUT])&lt;BR /&gt;
   p.sendline('scp2 vr "VR-Default" sCore' + str(i) + '.cfg USERNAME@172.20.1.10:sCore' + str(i) + '.cfg')&lt;BR /&gt;
   idx = p.expect(['password', pexpect.EOF, pexpect.TIMEOUT])&lt;BR /&gt;
   p.sendline('SECRETPASS')&lt;BR /&gt;
   p.sendline('exit')Not so beautiful, but it works!&lt;BR /&gt;
&lt;BR /&gt;
So... I can run it with "load script NSCB.py". It works properly.&lt;BR /&gt;
&lt;BR /&gt;
Then I created and scheduled UPM profile like this.&lt;BR /&gt;
create upm profile NSCB&lt;BR /&gt;
load script NSCB.py&lt;BR /&gt;
.&lt;BR /&gt;
create upm timer NSCBtimer&lt;BR /&gt;
configure upm timer NSCBtimer profile NSCB&lt;BR /&gt;
configure upm timer NSCBtimer at 11 5 2015 23 50 0 every 86400And I run it:&lt;BR /&gt;
run upm profile "NSCB" I see some log messages, but script stucked.&lt;BR /&gt;
11/06/2015 15:55:19.94 &lt;I&gt; Starting NSCBackup!&lt;BR /&gt;
11/06/2015 15:55:19.54 &lt;UPM&gt; Launched profile NSCB for the event user-request&lt;BR /&gt;
&lt;BR /&gt;
Any suggestions?&lt;/UPM&gt;&lt;/I&gt;</description>
    <pubDate>Fri, 06 Nov 2015 20:22:00 GMT</pubDate>
    <dc:creator>eyeV</dc:creator>
    <dc:date>2015-11-06T20:22:00Z</dc:date>
    <item>
      <title>Python script triggered by UPM doesn't work properly</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34295#M6694</link>
      <description>Hi everybody.&lt;BR /&gt;
I use x480 with 16.1.2.&lt;BR /&gt;
&lt;BR /&gt;
I have simple .py script like this.&lt;BR /&gt;
import pexpect&lt;BR /&gt;
import exsh&lt;BR /&gt;
exsh.clicmd ('create log message "Starting NSCBackup!"')&lt;BR /&gt;
for i in range(1,10):&lt;BR /&gt;
   print(i)&lt;BR /&gt;
   p = pexpect.spawn('/exos/bin/ssh -r 2 USERNAME@172.20.1.' + str(i))&lt;BR /&gt;
   idx = p.expect(['password', pexpect.EOF, pexpect.TIMEOUT])&lt;BR /&gt;
   p.sendline('SECRETPASS')&lt;BR /&gt;
   idx = p.expect(['sCore', pexpect.EOF, pexpect.TIMEOUT])&lt;BR /&gt;
   p.sendline('create log message "Not so cold backuper"')&lt;BR /&gt;
   idx = p.expect(['sCore', pexpect.EOF, pexpect.TIMEOUT])&lt;BR /&gt;
   p.sendline('save')&lt;BR /&gt;
   idx = p.expect(['(y/N)', pexpect.EOF, pexpect.TIMEOUT])&lt;BR /&gt;
   p.sendline('y')&lt;BR /&gt;
   idx = p.expect(['sCore', pexpect.EOF, pexpect.TIMEOUT])&lt;BR /&gt;
   p.sendline('scp2 vr "VR-Default" sCore' + str(i) + '.cfg USERNAME@172.20.1.10:sCore' + str(i) + '.cfg')&lt;BR /&gt;
   idx = p.expect(['password', pexpect.EOF, pexpect.TIMEOUT])&lt;BR /&gt;
   p.sendline('SECRETPASS')&lt;BR /&gt;
   p.sendline('exit')Not so beautiful, but it works!&lt;BR /&gt;
&lt;BR /&gt;
So... I can run it with "load script NSCB.py". It works properly.&lt;BR /&gt;
&lt;BR /&gt;
Then I created and scheduled UPM profile like this.&lt;BR /&gt;
create upm profile NSCB&lt;BR /&gt;
load script NSCB.py&lt;BR /&gt;
.&lt;BR /&gt;
create upm timer NSCBtimer&lt;BR /&gt;
configure upm timer NSCBtimer profile NSCB&lt;BR /&gt;
configure upm timer NSCBtimer at 11 5 2015 23 50 0 every 86400And I run it:&lt;BR /&gt;
run upm profile "NSCB" I see some log messages, but script stucked.&lt;BR /&gt;
11/06/2015 15:55:19.94 &lt;I&gt; Starting NSCBackup!&lt;BR /&gt;
11/06/2015 15:55:19.54 &lt;UPM&gt; Launched profile NSCB for the event user-request&lt;BR /&gt;
&lt;BR /&gt;
Any suggestions?&lt;/UPM&gt;&lt;/I&gt;</description>
      <pubDate>Fri, 06 Nov 2015 20:22:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34295#M6694</guid>
      <dc:creator>eyeV</dc:creator>
      <dc:date>2015-11-06T20:22:00Z</dc:date>
    </item>
    <item>
      <title>RE: Python script triggered by UPM doesn't work properly</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34296#M6695</link>
      <description>You do a print, but in upm I dont know what happens to that print, does it work if you remove that print(i) ?&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Nov 2015 20:41:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34296#M6695</guid>
      <dc:creator>OscarK</dc:creator>
      <dc:date>2015-11-06T20:41:00Z</dc:date>
    </item>
    <item>
      <title>RE: Python script triggered by UPM doesn't work properly</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34297#M6696</link>
      <description>Unfortunately no.&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Nov 2015 20:41:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34297#M6696</guid>
      <dc:creator>eyeV</dc:creator>
      <dc:date>2015-11-06T20:41:00Z</dc:date>
    </item>
    <item>
      <title>RE: Python script triggered by UPM doesn't work properly</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34298#M6697</link>
      <description>ok, I think you should add some checks where you send some info to the log to keep track where it is stuck.</description>
      <pubDate>Fri, 06 Nov 2015 20:41:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34298#M6697</guid>
      <dc:creator>OscarK</dc:creator>
      <dc:date>2015-11-06T20:41:00Z</dc:date>
    </item>
    <item>
      <title>RE: Python script triggered by UPM doesn't work properly</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34299#M6698</link>
      <description>Yeah, I'm doing it right now. )&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Nov 2015 20:41:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34299#M6698</guid>
      <dc:creator>eyeV</dc:creator>
      <dc:date>2015-11-06T20:41:00Z</dc:date>
    </item>
    <item>
      <title>RE: Python script triggered by UPM doesn't work properly</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34300#M6699</link>
      <description>It stucked right after for loop begins.&lt;BR /&gt;
for i in range(1,10):&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Nov 2015 20:41:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34300#M6699</guid>
      <dc:creator>eyeV</dc:creator>
      <dc:date>2015-11-06T20:41:00Z</dc:date>
    </item>
    <item>
      <title>RE: Python script triggered by UPM doesn't work properly</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34301#M6700</link>
      <description>Maybe it is a rights thing and is ssh not executable by a script launched by UPM.</description>
      <pubDate>Fri, 06 Nov 2015 20:41:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34301#M6700</guid>
      <dc:creator>OscarK</dc:creator>
      <dc:date>2015-11-06T20:41:00Z</dc:date>
    </item>
    <item>
      <title>RE: Python script triggered by UPM doesn't work properly</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34302#M6701</link>
      <description>So it looks like the purpose of this is to have a core switch ssh into downstream connected switches and save their configurations periodically right?&lt;BR /&gt;
&lt;BR /&gt;
I'll take your script and attempt to make it into a python EXOS application process instead. I'll then test having a UPM process restart the py process. I'll let you know how it works out.&lt;BR /&gt;
&lt;BR /&gt;
Let me know if I've misinterpreted what you want to do.&lt;BR /&gt;
&lt;BR /&gt;
Thanks.&lt;BR /&gt;</description>
      <pubDate>Sat, 07 Nov 2015 01:14:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34302#M6701</guid>
      <dc:creator>Matthew_Helm</dc:creator>
      <dc:date>2015-11-07T01:14:00Z</dc:date>
    </item>
    <item>
      <title>RE: Python script triggered by UPM doesn't work properly</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34303#M6702</link>
      <description>Yes, the concept is right.&lt;BR /&gt;</description>
      <pubDate>Sat, 07 Nov 2015 01:14:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34303#M6702</guid>
      <dc:creator>eyeV</dc:creator>
      <dc:date>2015-11-07T01:14:00Z</dc:date>
    </item>
    <item>
      <title>RE: Python script triggered by UPM doesn't work properly</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34304#M6703</link>
      <description>I was able to create a test.py application/process that uses pexpect with /exos/bin/ssh similarly to your script and I used a UPM profile and timer to restart it every 5 minutes. It worked.&lt;BR /&gt;
&lt;BR /&gt;
Here is the UPM configuration:&lt;BR /&gt;
&lt;BR /&gt;
## Module upm configuration.&lt;BR /&gt;
#&lt;BR /&gt;
create upm profile test&lt;BR /&gt;
disable cli prompt&lt;BR /&gt;
restart process test&lt;BR /&gt;
&lt;BR /&gt;
.&lt;BR /&gt;
create upm timer test&lt;BR /&gt;
configure upm timer test profile test&lt;BR /&gt;
configure upm timer test after 1 every 300&lt;BR /&gt;
&lt;BR /&gt;
...&lt;BR /&gt;
&lt;BR /&gt;
And here is the py file for the process and the command to create it. (I assumed that the ssh targets were sub-tended EXOS switches and so I sent the "disable cli prompting" command to avoid unnecessary pexpect lines in the process script.)&lt;BR /&gt;
&lt;BR /&gt;
#vi test.py&lt;BR /&gt;
&lt;BR /&gt;
import pexpectimport exos.api&lt;BR /&gt;
def exosCmd(cmd):&lt;BR /&gt;
   reply = exos.api.exec_cli([str(cmd)], ignore_errors=True)&lt;BR /&gt;
   return str(reply)&lt;BR /&gt;
&lt;BR /&gt;
def logMsg(m):&lt;BR /&gt;
    exosCmd('create log message "{0}"'.format(m))&lt;BR /&gt;
&lt;BR /&gt;
logMsg("Starting NSCBackup!")&lt;BR /&gt;
p = pexpect.spawn('/exos/bin/ssh -r 2 admin@10.0.0.202')&lt;BR /&gt;
idx = p.expect(['password', pexpect.EOF, pexpect.TIMEOUT])&lt;BR /&gt;
p.sendline('admin')&lt;BR /&gt;
idx = p.expect(['x202', pexpect.EOF, pexpect.TIMEOUT])&lt;BR /&gt;
p.sendline('create log message "test test test"')&lt;BR /&gt;
idx = p.expect(['x202', pexpect.EOF, pexpect.TIMEOUT])&lt;BR /&gt;
p.sendline('disable cli prompt')&lt;BR /&gt;
idx = p.expect(['x202', pexpect.EOF, pexpect.TIMEOUT])&lt;BR /&gt;
p.sendline('save')&lt;BR /&gt;
idx = p.expect(['x202', pexpect.EOF, pexpect.TIMEOUT])&lt;BR /&gt;
p.sendline('exit')&lt;BR /&gt;
&lt;BR /&gt;
#^wq!&lt;BR /&gt;
...&lt;BR /&gt;
&lt;BR /&gt;
The process was started with this line that I issued before starting the UPM timer:&lt;BR /&gt;
&lt;BR /&gt;
create process test py test start auto&lt;BR /&gt;
&lt;BR /&gt;
...&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps.&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Sat, 07 Nov 2015 03:17:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34304#M6703</guid>
      <dc:creator>Matthew_Helm</dc:creator>
      <dc:date>2015-11-07T03:17:00Z</dc:date>
    </item>
    <item>
      <title>RE: Python script triggered by UPM doesn't work properly</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34305#M6704</link>
      <description>Thank you for advice! I'm going to create similar proccess and give you feedback as soon as possible.&lt;BR /&gt;</description>
      <pubDate>Sat, 07 Nov 2015 03:17:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34305#M6704</guid>
      <dc:creator>eyeV</dc:creator>
      <dc:date>2015-11-07T03:17:00Z</dc:date>
    </item>
    <item>
      <title>RE: Python script triggered by UPM doesn't work properly</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34306#M6705</link>
      <description>Sorry for waiting... Something is going wrong.&lt;BR /&gt;
&lt;BR /&gt;
I've created py script, but when I run it I have this.&lt;BR /&gt;
Traceback (most recent call last):&lt;BR /&gt;
  File "/config/NSCB.py", line 2, in &lt;MODULE&gt;&lt;BR /&gt;
    import exos.api&lt;BR /&gt;
  File "/exos/tools/lib/python2.7/site-packages/exos/api/__init__.py", line 21, in &lt;MODULE&gt;&lt;BR /&gt;
  File "/exos/tools/lib/python2.7/site-packages/exos/api/ems.py", line 10, in &lt;MODULE&gt;&lt;BR /&gt;
ImportError: No module named _exos_ext_ems&lt;BR /&gt;
I've tried to import XOS api with "from exos import api" but...&lt;BR /&gt;
Traceback (most recent call last):&lt;BR /&gt;
  File "/config/NSCB.py", line 2, in &lt;MODULE&gt;&lt;BR /&gt;
    from xos import api&lt;BR /&gt;
ImportError: No module named xos&lt;BR /&gt;
It's not clear for me... What am I doing wrong?&lt;BR /&gt;&lt;/MODULE&gt;&lt;/MODULE&gt;&lt;/MODULE&gt;&lt;/MODULE&gt;</description>
      <pubDate>Fri, 13 Nov 2015 12:25:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34306#M6705</guid>
      <dc:creator>eyeV</dc:creator>
      <dc:date>2015-11-13T12:25:00Z</dc:date>
    </item>
    <item>
      <title>RE: Python script triggered by UPM doesn't work properly</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34307#M6706</link>
      <description>You need to run EXOS 15.7 minimum in order to create Python App (process). Are you running 15.6 ?&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Nov 2015 17:10:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34307#M6706</guid>
      <dc:creator>Stephane_Grosj1</dc:creator>
      <dc:date>2015-11-13T17:10:00Z</dc:date>
    </item>
    <item>
      <title>RE: Python script triggered by UPM doesn't work properly</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34308#M6707</link>
      <description>I'm running 16.1.2.14.&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Nov 2015 17:10:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34308#M6707</guid>
      <dc:creator>eyeV</dc:creator>
      <dc:date>2015-11-13T17:10:00Z</dc:date>
    </item>
    <item>
      <title>RE: Python script triggered by UPM doesn't work properly</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34309#M6708</link>
      <description>oh, I misread, sorry.&lt;BR /&gt;
&lt;BR /&gt;
Try that :&lt;BR /&gt;
&lt;BR /&gt;
from exos import api&lt;BR /&gt;
&lt;BR /&gt;
instead of &lt;BR /&gt;
&lt;BR /&gt;
from xos import api</description>
      <pubDate>Fri, 13 Nov 2015 17:10:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34309#M6708</guid>
      <dc:creator>Stephane_Grosj1</dc:creator>
      <dc:date>2015-11-13T17:10:00Z</dc:date>
    </item>
    <item>
      <title>RE: Python script triggered by UPM doesn't work properly</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34310#M6709</link>
      <description>Same result...&lt;BR /&gt;
&lt;BR /&gt;
Traceback (most recent call last):&lt;BR /&gt;
  File "/config/NSCB.py", line 2, in &lt;MODULE&gt;&lt;BR /&gt;
    from exos import api&lt;BR /&gt;
  File "/exos/tools/lib/python2.7/site-packages/exos/api/__init__.py", line 21, in &lt;MODULE&gt;&lt;BR /&gt;
  File "/exos/tools/lib/python2.7/site-packages/exos/api/ems.py", line 10, in &lt;MODULE&gt;&lt;BR /&gt;
ImportError: No module named _exos_ext_ems&lt;BR /&gt;
&lt;BR /&gt;
What XOS version do you run?&lt;/MODULE&gt;&lt;/MODULE&gt;&lt;/MODULE&gt;</description>
      <pubDate>Fri, 13 Nov 2015 17:10:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34310#M6709</guid>
      <dc:creator>eyeV</dc:creator>
      <dc:date>2015-11-13T17:10:00Z</dc:date>
    </item>
    <item>
      <title>RE: Python script triggered by UPM doesn't work properly</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34311#M6710</link>
      <description>It's not the version problem. I've tried 16.1.1.4, same result. The script doesn't run with upm profile.&lt;BR /&gt;
&lt;BR /&gt;
create upm profile NSCB&lt;BR /&gt;
run script NSCB-old.py&lt;BR /&gt;
&lt;BR /&gt;
run upm profile "NSCB"&lt;BR /&gt;
11/17/2015 11:26:53.88 &lt;I&gt; Starting NSCBackup!&lt;BR /&gt;
11/17/2015 11:26:53.44 &lt;UPM&gt; Launched profile NSCB for the event user-request&lt;BR /&gt;
I can't even execute single-line script "from exos import api". You can see traceback in previous post.&lt;/UPM&gt;&lt;/I&gt;</description>
      <pubDate>Tue, 17 Nov 2015 15:31:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34311#M6710</guid>
      <dc:creator>eyeV</dc:creator>
      <dc:date>2015-11-17T15:31:00Z</dc:date>
    </item>
    <item>
      <title>RE: Python script triggered by UPM doesn't work properly</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34312#M6711</link>
      <description>Yeah! I've fixed it! Thanks everybody!&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Nov 2015 20:40:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34312#M6711</guid>
      <dc:creator>eyeV</dc:creator>
      <dc:date>2015-11-17T20:40:00Z</dc:date>
    </item>
    <item>
      <title>RE: Python script triggered by UPM doesn't work properly</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34313#M6712</link>
      <description>What was the problem? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Nov 2015 20:40:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34313#M6712</guid>
      <dc:creator>Drew_C</dc:creator>
      <dc:date>2015-11-17T20:40:00Z</dc:date>
    </item>
    <item>
      <title>RE: Python script triggered by UPM doesn't work properly</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34314#M6713</link>
      <description>It was interesting. I've learned that there are two python environments in EXOS actually. &lt;A href="https://community.extremenetworks.com/extreme/topics/cant-import-api-from-exos" target="_blank" rel="nofollow noreferrer noopener"&gt;This thread&lt;/A&gt;. So I can't execute "import exos.api" just by typing "run script blalbalba.py", but I can do it when I create process with this .py script. It's a bit confusing.&lt;BR /&gt;
&lt;BR /&gt;
Moreover the "from exos import api" string doesn't work at all.&lt;BR /&gt;
&lt;BR /&gt;
Sorry for my poor English )&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Nov 2015 20:40:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/python-script-triggered-by-upm-doesn-t-work-properly/m-p/34314#M6713</guid>
      <dc:creator>eyeV</dc:creator>
      <dc:date>2015-11-17T20:40:00Z</dc:date>
    </item>
  </channel>
</rss>

