12-11-2023 08:44 AM
So we all know how to add primary and secondary WLC in the HA setting of an AP, by command line or GUI, for AireOS and the 9800. My question is - how do we remove the secondary WLC at the AP-HA level by cli?
The scenario is I have 100 APs at a site with primary and secondary WLC hard coded. Now the secondary WLC has to be taken out.
Solved! Go to Solution.
12-11-2023 09:22 AM - edited 12-11-2023 09:26 AM
In AireOS, using the CLI, you have to configure a bogus entry. Only in the GUI can you actually remove the entry, but the bogus is okay as it doesn't do anything but gets you what you want.
config ap secondary-base " " <AP Hostname> 0.0.0.0 |
For the 9800, you can use the following:
ap name <AP Hostname> no controller secondary clear |
12-11-2023 08:48 AM
remove via WLC primary CLI or from AP CLI ?
MHM
12-11-2023 08:51 AM
from primary WLC cli, I don't want to touch all 100 APs
12-11-2023 09:22 AM - edited 12-11-2023 09:26 AM
In AireOS, using the CLI, you have to configure a bogus entry. Only in the GUI can you actually remove the entry, but the bogus is okay as it doesn't do anything but gets you what you want.
config ap secondary-base " " <AP Hostname> 0.0.0.0 |
For the 9800, you can use the following:
ap name <AP Hostname> no controller secondary clear |
12-12-2023 03:05 AM
@Scott Fella > ap name <AP Hostname> no controller secondary clear
I couldn't repeat this command on my test environment (IOS-XE 17.12.2) ; what seems to work is :
ap name <AP Hostname> no controller secondary <WLC-hostname> <WLC-ip>
M.
12-12-2023 11:53 AM
marce1000 - I tested on codes 17.9.3 and 17.3.6. Both (...no controller secondary clear) and (...no controller secondary <WLC-Hostname> <WLC-IP>) worked. If you use "?" it won't show "clear" as an option though.
12-12-2023 01:40 PM
12-11-2023 11:09 AM - edited 12-11-2023 11:09 AM
Great, Scott!
Sorry I didn't specify the code in the original question. On the WLC-9800 code 17.9.3 (the ones I have), it's
ap name <AP Hostname> no controller secondary <WLC-Hostname> <WLC-IP>
Close enough!
12-11-2023 01:17 PM
Glad that it got you close to what you want. I'm on 17.12.2 in my home lab and it looks like the WLC IP is optional. Have you tried it without the IP or is that mandatory on your version?
12-11-2023 02:33 PM
you know what? your cli with "clear" actually works.
When I type "?" after "secondary" it prompts for Secondary controller name, and then prompts for IP address if followed by another "?" Funny thing is it take "clear" without issues.
12-11-2023 02:44 PM
Cool... makes it simple:)
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