cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3404
Views
5
Helpful
9
Replies

move AP to 2nd WLC: Script?

bouchal-38
Level 1
Level 1

hello, i need to move 250 AP from the Primary WLC to the Secondary, is there a Script i can use? or commande line to switch the HA ?

I do not have Prime...

Tx for your help on this!

B

9 Replies 9

Leo Laohoo
Hall of Fame
Hall of Fame
hello, i need to move 250 AP from the Primary WLC to the Secondary, is there a Script i can use?

Use CLI.  It's faster.  

 

1.  First, generate a "report" of the total amount of APs using the command "sh ap summary". 

2.  Get the result and remove all the details except the name of the AP. 

3.  The command to move the AP from one controller to the other is:  config ap primary <WLC name> <AP NAME> <WLC Management IP address>

4.  Cut and paste in the controller where the AP is located and the APs should move in the next 20 seconds.

hello, thanx for this answer, but as i already have a secondeary and primary WLC configured, i need to first remove the Secondary and enter the primary, becasue the IP and name should be UNIQUE.

Is there a way to switch (put the secondary to primary and viseversa ?)???

Tx for your answer.

B

Put a fictitious name and IP address as your primary and then put the correct details into your secondary.  Then reverse. 

Since you already have the primary/secondary configured, you just need to put a bogus primary host name and IP address.  This will make the AP's move to the secondary and when your ready to move them back, just add the primary info back in. CLI is the fastes way to do this. 

-Scott

-Scott
*** Please rate helpful posts ***

bouchal-38 if you have Prime Infrastructure installed, it's easy to create a template and apply it to all devices you want.


let me know if you have PI installed so I can guide you to do it.

I always do templates instead of scripting.

 

hello, thanks to all of you for those response, i do not have prime installed. But the CLI is very easy.

That's what i was expecting.

Tx.

B

Hey Bouchel,  We have PRIME just rebuilt and I read several times it's easy to use the templates for AP moving but do not have a clue how to go about it moving 87 APs to the primary controller then back to secondary and then back to primary for some maintenance that needs to be done.

point to fake controller

Config ap primary-base “fake-WLC” ap-name 0.0.0.0
Config ap secondary-base “fake-WLC2” ap-name 2.2.2.2

Then point to real controller

Config ap primary-base “real-WLC” ap-name “real-ip-address”
Config ap secondary-base “real-WLC2” ap-name “real-ip-address”

biaacer2
Cisco Employee
Cisco Employee

If you don't have Prime I suggest using a Excel sheet. 

 

Get the output of:

    config paging disable

    show ap summary

 

From there, select the APs you want to move and copy paste them in Excel. 

    concante the <AP_NAME> with this command:

     config ap primary-base <WLC_NAME> <AP_NAME> <WLC_IP>

 

Expand the formula and paste these commands in your existing WLC. 

 

Hope it helps, otherwise I would advise to open a TAC case and have someone help you. 

 

ecarbajo
Level 1
Level 1

Here is a method ,  valid for Catalyst 9800,  a python script using netconf.

https://github.com/eliascarbajo/Cisco-wlc-APs-swap

Review Cisco Networking for a $25 gift card