Need a script to create a custom script to change PSK for a specific SSID on a weekly basis. Will need a variable line, since password will be changed weekly, so I can only update variable value for the scheduled job. Below are the CLI commands I am trying to accomplish. Also, when I add yes or empty line at the end, configuration on WLC is still not saved. I know it prompts you if you want to save your config y/n ?
config wlan disable 24
config wlan security wpa akm psk set-key ascii "left Turkey 78952" 24
config wlan enable 24
save config
yes