How to clear the flash logs on all the APs?
RELATED PRODUCTS: All controllers
RELATED SOFTWARE VERSIONS: NA
KEYWORDS:
The Access point’s flash logs may contain stale information which may not be necessary while troubleshooting. Often, they may confuse us with too many information if we are looking for a particular problem.
The command used to erase the flash log memory is:
ap > file areaerase logk0
ap> file areaerase logk1
The above commands have to be entered on the AP prompt. It is not feasible to enter the above commands on all the APs in a large network. Please follow the below procedure to clear the flash logs on all the APs connected to a controller.
Note: All the APs have to be rebooted once for this to take effect.
Procedure:
1. Create a notepad file with the below contents and save it with a file extension .scr
file areaerase logk0
file areaerase logk1
For example, let’s name the file as flasherase.scr
2. Login to the CLI interface of the controller.
3. Go to the directory ATS/Scripts by entering the below command
#cd ATS/scripts
4. Upload the flasherase.scr file to the controller using ftp or tftp. The CLI commands are:
#copy ftp://anonymous:anonymous@<FTP server ip address>/flasherase.scr .
#copy tftp://<TFTP server ip address>/flasherase.scr .
5. Once done you can find it under “dir” output.
6. Type the below command for the script to take effect:
MC3200(15)# configure terminal
MC3200(15)(config)# boot-script flasherase.scr
7. You can verify under “show controller” to see what script is in use.
8. Reboot the APs and wait for the APs to come up.
9. When all the APs are online go ahead and remove the boot script using the command:
MC3200(15)# configure terminal
MC3200(15)(config)# no boot-script
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.