09-30-2020 07:30 PM
Hi,
I am starting to create our own scripts/macros for certain tasks in Python and been looking at some of the built in one, so a simple one is disable a port:
from device import api
print "selected ports = " + emc_vars["port"]
api.perform_port_operation("disable", emc_vars["port"])
I can see from above there is a system variable of emc_vars[“ports”] and an api command to perform a port operation….
Where do I get a list of all variables and all the api commands so I can create my own stuff?
The alternative is to send SNMP commands, but this is simpler. I am looking to do one for example to enable/disable 802.1X mac or dot1x or mode.
Thanks for any references,
Solved! Go to Solution.
10-20-2020 01:58 PM
Hello together,
This document https://api.extremenetworks.com/XMC/Scripting/Python_with_XMC_8.1_v0.94.pdf has helped me to get in touch with python and XMC. On page 5 there are some emc_vars listed too. Perhaps there are some further information for you.
Best regards
Yannick
10-06-2020 05:02 PM
Thank you, unfortunately, I don’t have access to the webinar. I checked the github site but doesn’t have the api. calls.
Thanks for all attempts to help.
10-01-2020 03:51 PM
Chad,
There is also this great reference site with a lot of contributions from
Mig
09-30-2020 07:58 PM
On the Engage portal there is a very nice recorded webinar from Markus: https://extremenetworks.webinfinity.com/content/1103069
To check if you have access
Mig