cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
9728
Views
5
Helpful
4
Replies

Automatic configuration upload on WLC?

Andras Dosztal
Level 3
Level 3

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

1 Accepted Solution

Accepted Solutions

ericgarnel
Level 7
Level 7

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

View solution in original post

4 Replies 4

Surendra BG
Cisco Employee
Cisco Employee

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

Regards
Surendra BG

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

ericgarnel
Level 7
Level 7

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

Vinay Sharma
Level 7
Level 7

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

Thanks,

Vinay Sharma

Thanks & Regards
Review Cisco Networking products for a $25 gift card