12-29-2022 09:50 AM
Hello experts , could you please guide me how can i use Python scripting to migrate access points from aireos to 9800 controllers. there are multiple sites and it would save a lot of efforts to migrate the access points.
is there a code available which can be modified to use different parameters ?
12-29-2022 12:45 PM - edited 12-29-2022 12:45 PM
You need to convert first Airos to Cat 9800 config.
https://community.cisco.com/t5/wireless/wlc-config-converter-aireos-ios-xe/td-p/2895495
Personally, I would not suggest to big bang Migration.
i would suggest running both in the environment - select a certain area to Migrate to the new controller and test it.
make sure you check the compatibility and matrix of the AP and Code.
https://www.cisco.com/c/en/us/td/docs/wireless/compatibility/matrix/compatibility-matrix.html
You can move the AP from the old controller to the new controller :
If you have Prime or DNAC you can also do that task
12-31-2022 05:53 AM
hi Balaji ...what you have mentioned in your post, i have already done all of this multiple times. i have my own home lab which has 5520 and 9800 with a 3702 access point. i already have prepared an excel script which i can use no problem. what i am looking for is the script using python to do the migration ...i have multiple sites which has access points joined to a 7510 central controller , since we have deployed a new 9800 central controller the objective is to migrate the access points to that.
i will of course test the python script in my home lab first and then move on to a pilot site .
12-31-2022 10:46 AM
here is my approach : you are in right direction as you mentioned.
First thing check matrix, how many AP concurrent image download based on the controller - i have seen issue when i was doing 85XX WLC support only 1000 as i remember.
config paging disable
show ap summary
Store this information in CSV format
below article help you create one (once you success dont forget to share your script with community)
https://stackoverflow.com/questions/47879740/python-parsing-a-text-file-into-a-csv-file
https://stackoverflow.com/questions/24762108/logging-into-a-cisco-wireless-controller-via-ssh
Intiate the process to in Python using CSV - AP name and use below command till end of list.
config ap primary-base <WLC_NAME> <AP_NAME> <WLC_IP>
Note : as mentioned before test with 5 or 10 AP and gradually increase the numbers and monitor the outcome.
12-29-2022 10:57 PM
If you have already configured the destination C9800 WLC and only what to migrate the APs from legacy AireOS, I would recommend you to think about which configuration paradigm you would be using from these:
The Cisco way adds extra administrative efford that the alternative doesn't.
From there, it is really easy to proceed with AP migration:
As @balaji.bandi said I would recommend you to move APs per site or few sites at a time for testing, as you need to be sure everything would be working properly, as you may encounter issues depending on the code version you are about to deploy (I would recommend you moving to 17.6.4 for WiFi5 deployments or 17.9.2 for WiFi6 deployments at this moment).
As far as I know there is no python script shared to do that. I have created an Excel template to deal with AP setting on C9800 using the alternative way, but it has lots of functions and the logic behind is really difficult to understand so I won't share that with you, but I'm in the process of creating such pythong script based on the alternative way.
12-29-2022 11:12 PM
I just migrated 2000 x APs to 9800 and I did not use any "script".
The outage (aka "no WiFi") took 4 minutes and 45 seconds.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide