Thank you for the information reply to me, Fred.
I not yet familiar with API and python. I will try and learn to do for this option.
Original Message:
Sent: 10-10-2023 14:18
From: Fred Glauser
Subject: Importing Mist APs
Hi Vatchara,
I am traveling, so I have limited ability to reply. You can absolutely do what you are asking for using the API. To make that even easier, one of our engineers has built a python library full of very useful scripts, that you can freely download and use. There is a script inventory_assign.py that will allow you to assign claimed ap's using a CSV file to specific sites based on their MAC address, Serial Number or Claimcode, in the script there are examples of how to do exactly what you have described above. A different script inventory_claim.py can streamline the initial onboarding as well.
Mist-Lab Demo Apps - an example of other work he has done and under Python Library is a link to GitHub - tmunzer/mist_library: Python scripts demoing Mist APIs possibilities. Where you can find the python scripts as I have described.
The power of Mist and the native API architecture is that you don't need to wait for the Mist team to add a feature to the GUI, they have impowered us to build anything in any way we want, granted a little python knowledge in this case is required.
You could also do exactly as described using the API call by hand:
PUT /api/v1/orgs/:org_id/inventory - substituting org_id for the actual value of your org.
{ "op": "assign", "site_id": " - place your site id here", "macs": [ "5c5b350exxxx"
"mac add 2",
"mac etc.."
Or using serial numbers
"serials": [ "FXLH20xxx", "serial 2, etc"
], "no_reassign": false,}
The reassin option is if the device has already been assigned to a site versus just claimed. Similar functionality can be done with switches and sdwan devices.
Hope that helps!
------------------------------
Fred Glauser
Original Message:
Sent: 10-10-2023 00:51
From: VATCHARA MOKTHAISONG
Subject: Importing Mist APs
Hi Fred,
I also looking ways to import many APs to Mist portal.
As you mention with Activate code that not help me to make it easy.
I have more than 1000 AP in same organize, but I need to separate import ans assign to difference site. If I just use activate code to import one shot for all AP. After that it very complicate to find AP one by one to assign.
If Juniper can provide other option to import multiple AP to Mist portal that can make customer easy and comfortable to work.
Example use case that I hope Juniper will improve.
I purchase 1000 AP in same order and have only one activate code, but I need to sepparate assign AP after import to Mist portal.
I would like to grouping AP just in case by MAC address or S/N: and assign to site that have uniqe AP number
Site A : AP S/N: 1 - 100
Site B : AP S/N: 101 - 250
Site C: AP S/N: 251 - 300
Site D: AP S/N: 301 - 500
Site E: AP S/N: 501 - 750
Site F: AP S/N: 751 - 900
Site G: AP S/N: 901 - 1000
This is use case that I would like to know How to easy mange? And hope Juniper will have the option to do import with flexible condition with customer requirements.
------------------------------
VATCHARA MOKTHAISONG
Original Message:
Sent: 05-27-2023 11:55
From: Fred Glauser
Subject: Importing Mist APs
There is no option for claiming AP's using a CSV file. Unless you have a file with a list of claim codes, then just cut copy and paste the codes…
AP's can be claimed in bulk using an activation code from your sales order, one code will claim all devices (AP's, switch's, Edges, WAN edges) and activate your paid subscriptions with just one entry. Useful for anywhere from one to thousands of devices.
Claim codes can be used to claim a device individually, multiple claim codes can be used at the same time to claim multiple devices. Useful for anywhere from one to dozens of devices.
The QR code on an AP can be scanned and will claim the AP using the App. Useful for one at a time, especially during installation and mounting, take pictures, set height and orientation, name the AP and place it on the map. App instructions Mist AI Mobile App - Mist
Everything can always be done via API calls.
After the fact, all devices claimed can be exported to a CSV file by going to Organization -> Inventory and clicking on the download button in the upper right-hand corner.
You probably read the doc, but for reference Claiming APs - Mist
Hope this helps
------------------------------
Fred Glauser
Original Message:
Sent: 05-26-2023 01:12
From: Anonymous
Subject: Importing Mist APs
This message was posted by a user wishing to remain anonymous
I have searched online on how to import Mist APs via a CSV file but found nothing, could someone provide a link to documentation on how this can be achieved?