cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
216
Views
2
Helpful
2
Replies

Scheduling a daily Save Job on WLC 9800

jjtech
Beginner
Beginner

Hello,

We have a WLC 9800, we need to create a job to save its running config to its startup config daily at midnight to make sure that the daily configuration changes will remain in case the WLC reloads for whatever reason, especially that we forget to click the Save button sometimes after doing modifications on the WLC.

I tried using the EEM script below but it isn't actually saving (also please note that we use TACACS for the WLC adminstration):

event manager applet DAILY_CONFIG_SAVE authorization bypass
event timer cron cron-entry "0 0 * * *" 
action 1.0 cli command "enable"
action 2.0 cli command "copy running-config startup-config"
action 3.0 syslog msg "Configuration saved by DAILY_CONFIG_SAVE"

 

In fact, the script is triggered and the syslog message is appearing , but the configurations not actually saved to the startup config.

Do you have any suggestion ? Or any alternative way to do it ?

1 Accepted Solution

Accepted Solutions

Rich R
VIP
VIP

You maybe forgot that by default copy running-config startup-config will always PROMPT the user.  Since EEM is not an interactive shell with capability to respond to the prompt that will always fail.  So you have 2 options:
- configure "file prompt quiet" before the copy then "no file prompt quiet" after.  You also need to "conf t" and "end" to do that config obviously.
- use "write mem" instead of copy run start as that does not prompt.  Cisco have threatened to remove the write command but it's still there all these years later so safe to keep using for now as long as you remember they might eventually remove it.

------------------------------
TAC recommended codes for AireOS WLC's   and   TAC recommended codes for 9800 WLC's
Best Practices for AireOS WLC's   and   Best Practices for 9800 WLC's
Cisco Wireless compatibility matrix
Field Notice: FN-63942 APs and WLCs Fail to Create CAPWAP Connections Due to Certificate Expiration
Field Notice: FN-72424 Later Versions of WiFi 6 APs Fail to Join WLC - Software Upgrade Required
Field Notice: FN-72524 - During Software Upgrade/Downgrade IOS APs Might Remain in Downloading State
     after 4 Dec 2022 Due to Certificate Expiration - Fixed in 8.10.185.3 and latest 9800 IOS-XE releases
     also fixed in 8.5.182.11 (8.5 mainline) and 8.5.182.108 (8.5 IRCM) if you can't upgrade to 8.10
     TAC confirmed that Mobility Express AP TFTP download is not affected so ME 8.5.182.0 still works but see FN-74035 below
Field Notice: FN-70479 Out-Of-The-Box AP Fails to Join WLC or Joins with Single Radio due to Country Mismatch - RMA required
How to avoid boot loop due to corrupted image on Wave 2 and Catalyst 11ax Access Points (CSCvx32806)
Field Notice: FN-74035 - Wave2 APs DFS May Not Detect Radar After Channel Availability Check Time
     fixed in 8.10.185.3 and see the field notice for 8.5, Mobility Express and other fixed releases
Check your WLC config with Wireless Config Analyzer using "show tech wireless" output (9800) or "config paging disable" then "show run-config" output (AireOS) and use Wireless Debug Analyzer to analyze your WLC client debugs
Leo Laohoo's list of bugs affecting 2800/3800/4800/1560 APs

View solution in original post

2 Replies 2

Rich R
VIP
VIP

You maybe forgot that by default copy running-config startup-config will always PROMPT the user.  Since EEM is not an interactive shell with capability to respond to the prompt that will always fail.  So you have 2 options:
- configure "file prompt quiet" before the copy then "no file prompt quiet" after.  You also need to "conf t" and "end" to do that config obviously.
- use "write mem" instead of copy run start as that does not prompt.  Cisco have threatened to remove the write command but it's still there all these years later so safe to keep using for now as long as you remember they might eventually remove it.

------------------------------
TAC recommended codes for AireOS WLC's   and   TAC recommended codes for 9800 WLC's
Best Practices for AireOS WLC's   and   Best Practices for 9800 WLC's
Cisco Wireless compatibility matrix
Field Notice: FN-63942 APs and WLCs Fail to Create CAPWAP Connections Due to Certificate Expiration
Field Notice: FN-72424 Later Versions of WiFi 6 APs Fail to Join WLC - Software Upgrade Required
Field Notice: FN-72524 - During Software Upgrade/Downgrade IOS APs Might Remain in Downloading State
     after 4 Dec 2022 Due to Certificate Expiration - Fixed in 8.10.185.3 and latest 9800 IOS-XE releases
     also fixed in 8.5.182.11 (8.5 mainline) and 8.5.182.108 (8.5 IRCM) if you can't upgrade to 8.10
     TAC confirmed that Mobility Express AP TFTP download is not affected so ME 8.5.182.0 still works but see FN-74035 below
Field Notice: FN-70479 Out-Of-The-Box AP Fails to Join WLC or Joins with Single Radio due to Country Mismatch - RMA required
How to avoid boot loop due to corrupted image on Wave 2 and Catalyst 11ax Access Points (CSCvx32806)
Field Notice: FN-74035 - Wave2 APs DFS May Not Detect Radar After Channel Availability Check Time
     fixed in 8.10.185.3 and see the field notice for 8.5, Mobility Express and other fixed releases
Check your WLC config with Wireless Config Analyzer using "show tech wireless" output (9800) or "config paging disable" then "show run-config" output (AireOS) and use Wireless Debug Analyzer to analyze your WLC client debugs
Leo Laohoo's list of bugs affecting 2800/3800/4800/1560 APs

jjtech
Beginner
Beginner

Thank you Rich, switching to Write Memory instead of copy run start fixed the issue.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: