Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

Automatic configuration upload on WLC?

Hi,

Is there a way to schedule automatic configuration uploads (backups) on WLCs? It should be done without using WCS.

Thank you in advance.

Regards,

Andras

The solution has been added in the following document;-

https://supportforums.cisco.com/docs/DOC-21757

Everyone's tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions

Automatic configuration upload on WLC?

There is a way to do this using expect scripts

See my post at https://supportforums.cisco.com/message/3438495#3438495

you can use cron to call the shell script that calls the commands expect file.

commands expect script for backing up configs. Change the script upload variables for your environment

#!/usr/bin/expect

set router [ lindex $argv 0]

set username [ lindex $argv 1]

set password [ lindex $argv 2]

spawn ssh $router

#log_user 0

set timeout 10

expect "(yes/no)?" {

send "yes\r"; exp_continue }

expect "User:"

send -- "$username\r"

expect "assword:"

send -- "$password\r"

expect "Controller"

send -- "transfer upload datatype config\r"

expect "Controller"

send -- "transfer upload mode tftp\r"

expect "Controller"

send -- "transfer upload serverip \r"

expect "Controller"

send -- "transfer upload start\r"

# some wlc config commands require yes/no verification

expect "(y/N)"

send -- "y\r"

expect "Controller"

send "logout\r"

expect "(y/N)"

send -- "n\r"

expect eof

4 REPLIES
Cisco Employee

Automatic configuration upload on WLC?

hmmmm... i am not aware of such stuff without using WCS... u can go for SNMP WALK using any freeware SNMP stuffs from the net..

Regards

Surendra

New Member

Hi Sir,

Hi Sir,

How to take back up of

Model: AIR-CT2504-25-K9Z Ask file path & file name Which name I will asign for back up..

Any one name or perticuller please suggest

Automatic configuration upload on WLC?

There is a way to do this using expect scripts

See my post at https://supportforums.cisco.com/message/3438495#3438495

you can use cron to call the shell script that calls the commands expect file.

commands expect script for backing up configs. Change the script upload variables for your environment

#!/usr/bin/expect

set router [ lindex $argv 0]

set username [ lindex $argv 1]

set password [ lindex $argv 2]

spawn ssh $router

#log_user 0

set timeout 10

expect "(yes/no)?" {

send "yes\r"; exp_continue }

expect "User:"

send -- "$username\r"

expect "assword:"

send -- "$password\r"

expect "Controller"

send -- "transfer upload datatype config\r"

expect "Controller"

send -- "transfer upload mode tftp\r"

expect "Controller"

send -- "transfer upload serverip \r"

expect "Controller"

send -- "transfer upload start\r"

# some wlc config commands require yes/no verification

expect "(y/N)"

send -- "y\r"

expect "Controller"

send "logout\r"

expect "(y/N)"

send -- "n\r"

expect eof

Automatic configuration upload on WLC?

https://supportforums.cisco.com/docs/DOC-21757

Thanks,

Vinay Sharma

Thanks & Regards
8117
Views
5
Helpful
4
Replies