cancel
Showing results for 
Search instead for 
Did you mean: 

Python Scripting Guide

Python Scripting Guide

eyeV
New Contributor III
Hi everybody!

I've recently update EXOS to 15.6. and I really would love to write some python scripts. Honestly, I'm not into programming actually. I just write python scripts sometimes.

So, I've read EXOS 15.6 User Guide, but there are few information about python scripting. Аt least for me) Does anybody give me some examples or maybe guides, articles, posts or something about it?

Thanks for help!

26 REPLIES 26

eyeV
New Contributor III
Thanks. I'm going to start right now. )

Stephane_Grosj1
Extreme Employee
The standard library is HUGE. You have a lot of modules included. As an example, sys is part of the standard library.

eyeV
New Contributor III
What library I can use in python scripting on Extreme switches?

standard library
sys
pexpect
exshexpect
exsh
what else?

Stephane_Grosj1
Extreme Employee
ah, all these spoilers before the release of the guide... 🙂

of course, you can use UPM with Python scripting.
UPM provides environmental variables (for example the port where the event has occurred) and a Python script can use it. Just pass the variable(s) as argument(s) to the python script.

eyeV
New Contributor III
Thanks guys! I'm going to dive in!
GTM-P2G8KFN