Command of the Day

Reply
Guru Elite
Posts: 20,761
Registered: ‎03-29-2007

COTD: clear gap-db - Clear Records of Downed access ponts

Have you ever replaced an access point and the original access point still remains on the monitoring page as "Down"? The "clear gap-db" command will remove the record of that access point from the database and remove the down entry. Do a "show ap database long" command to see the AP, because at minimum, you will need the wired mac address of the ap, the name of the AP, or the LMS (local mobility switch) that the AP connected to:

(Aruba-M3) #show ap database long
AP Database
-----------
Name Group AP Type IP Address Status Flags Switch IP Wired MAC Address Serial # Slot/Port FQLN
---- ----- ------- ---------- ------ ----- --------- ----------------- -------- --------- ----
caddy-rap70 default 70 10.69.16.134 Down R 10.69.69.16 00:0b:86:c5:65:96 A50077203 N/A
cdalton default 70 10.69.16.205 Down R 10.69.69.16 00:0b:86:c5:4c:a0 A50074008 N/A

After that you can do a "clear gap-db" with either the "wired-mac", "ap-name" or "lms" parameter:

clear gap-db ap-name cdalton
or
clear gap-db wired-mac 00:0b:86:c5:4c:a0
or
clear gap-db lms 10.69.69.16

Please keep in mind that using the "lms" parameter will clear ALL aps in the database that pointed to that local switch ip address. Clearing APs that are active will result in the AP record immediately being recreated and there will be no interruption in service. The "clear gap-db lms" method is good for wiping out all historical APs that are inactive and keeping the ones that are active.


Colin Joseph
Aruba Customer Engineering

Looking for an Answer? Search the Community Knowledge Base Here: Community Knowledge Base

Search Airheads
Showing results for 
Search instead for 
Did you mean: