03-03-2021 10:25 AM
Hi,
Have several hundred none Extreme devices I need to add into XMC that are generally unique IP address, under ping only, probably will configure each as out of service as monitoring them is not important.
Obviously only being able to add these in one at a time would be a considerable amount of work. The discovery options (that I can see) wouldn’t work for me as putting in subnet ranges for these would equally be as time consuming, even if I was able to use SNMP (could use seed, but not an option) and besides there not being a ping option anyway, if there was, it would pick up more then just the switches.
The primary reason for adding the switches is just to add them into control as RADIUS clients, as management login for all these switches is being done through XMC / ExtremeControl.
Thought there was a way, maybe more in the legacy (although can’t find it) that allows me to import devices, but been unable to find it?
Currently running latest version 8.5.5.32.
Many thanks in advance for any ideas.
Solved! Go to Solution.
03-19-2021 12:01 PM
Just see this:
https://github.com/extremenetworks/ExtremeScripting/tree/master/Netsight/oneview_workflows
There is a workflow listed called Import Devices
This looks like exactly what was needed, so putting here for anyone else whom might come across the same query.
03-19-2021 12:01 PM
Just see this:
https://github.com/extremenetworks/ExtremeScripting/tree/master/Netsight/oneview_workflows
There is a workflow listed called Import Devices
This looks like exactly what was needed, so putting here for anyone else whom might come across the same query.
03-03-2021 03:56 PM
Thanks Stephen for the information.
Next on my list is to fully understand the NBI component and get a bit more familiar with Python.
As I started delving into it, it was just taking me down a rabbit warren that I’ll invest the time in at a later date.
I did figured out why the I was getting
urllib.error.HTTPError: HTTP Error 400: Bad Request
Its because I needed to change the section in the URL from:
<Ping Only>
And replace it with:
%3CPing%20Only%3E
The code then just presented me with another error:
urllib.error.HTTPError: HTTP Error 401: Unauthorized
So I gave up (time running out), and just created a list of URLs based on the formula above (took a few minutes) in Excel, each URL looked like this:
Which I just simply clicked on one at a time!
Again didn’t take me too long, but least it was way way faster then having to have put them in one at a time directly into XMC 🙂
03-03-2021 02:39 PM
In addition you can check if the NBI-Client written by Markus is something you can use.
https://github.com/extremenetworks/ExtremeScripting/blob/master/Netsight/nbi_clients/README.md
03-03-2021 02:36 PM
Hello Martin,
I think the module urllib.request leads you in the wrong direction. Check out the following guide
https://api.extremenetworks.com/XMC/Scripting/Python_with_XMC_8.1_v0.94.pdf