Go Back   TechArena Community > Technology > Networking & Security
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



How to backup WLC configuration script?

Networking & Security


Reply
 
Thread Tools Search this Thread
  #1  
Old 31-12-2011
Member
 
Join Date: Nov 2011
Posts: 61
How to backup WLC configuration script?
  

can I backup WLC configuration as .txt file? Or copy start to tftp command into switch or router to paste the same on other WLC at later. Why I wanted to do because WLC in network which is differentiating with name and IP address. So using that I will not require to do each and every steps of configuration. What will happen if I restore the default settings on my current WLC? Whether I will need to perform each and every single steps????

Reply With Quote
  #2  
Old 31-12-2011
Member
 
Join Date: Jul 2011
Posts: 360
Re: How to backup WLC configuration script?

When you are supposed to loading the config file through FTP or TFTP you will be able to open it through the text editor and it will display the list of commands as follow.
So in that particular way you will be able make changes with text editor and load the same return into WLC. Another way you can also copy whole config as a text and went into WLC config mode by using the config file. You should copy and paste the config file into text file.
Reply With Quote
  #3  
Old 31-12-2011
Member
 
Join Date: Jul 2011
Posts: 329
Re: How to backup WLC configuration script?

In this particular situation I wanted to tell that you should use the following file.

Code:
<!--SolarWinds Network Management Tools-->
<!--Copyright 2005 SolarWinds.Net All rights reserved-->
<Configuration-Management Device="Cisco WLC" SystemOID=" 1.3.6.1.4.1.14179.1.1.4.3">
 <Commands>
  <Command Name="RESET" Value=""/>
  <Command Name="DisablePaging" Value="config paging disable" Delay="300"/>
  <Command Name="DownloadConfig" Value="show run-config commands"/>
  <Command Name="Reboot" Value=""/>
  <Command Name="EnterConfigMode" Value=""/>
  <Command Name="ExitConfigMode" Value=""/>
  <Command Name="Startup" Value=""/>
  <Command Name="Running" Value=""/>
  <Command Name="UploadConfig" Value=""/>
  <Command Name="DownloadConfigIndirect" Value=""/>
  <Command Name="UploadConfigIndirect" Value=""/>
  <Command Name="EraseConfig" Value=""/>
  <Command Name="SaveConfig" Value=""/>
  <Command Name="Version" Value=""/>
  <Command Name="PreCommand" Value="${CRLF}" Delay="1"/>
  <Command Name="More" Value="(q)uit" Delay="1"/>
  <Command Name="MenuBased" Value="false"/> 
  <Command Name="VirtualPrompt" Value="(Cisco Controller) >"/>
 </Commands>
</Configuration-Management>
Reply With Quote
  #4  
Old 31-12-2011
Member
 
Join Date: Jul 2011
Posts: 354
Re: How to backup WLC configuration script?

You can meet the requirement of yours by using expect scripts. You should use cron so that you can call the shell script which is supposed to call commands expect file.
Code:
#!/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 <your tftp or ftp server ip>\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
Reply With Quote
  #5  
Old 31-12-2011
Member
 
Join Date: Jul 2011
Posts: 415
Re: How to backup WLC configuration script?

If you are supposed to run show run-config CLI command than it will not allow you to configure WLC. In fact it will show how is the system setup. You will not be able to copy paste the output from show run-config in the corrupted WLC in order to get the config.
Reply With Quote
Reply

  TechArena Community > Technology > Networking & Security
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to backup WLC configuration script?"
Thread Thread Starter Forum Replies Last Post
Bash script to import variable configuration Anja Software Development 5 23-08-2010 08:12 PM
Problem in Automated Script for backup Knowle Operating Systems 6 18-06-2010 03:39 AM
Script for Thunderbird configuration coolguy123 Windows Server Help 5 02-05-2010 10:57 AM
PHP script for Auto configuration file for Outlook Express Soumen Software Development 5 22-01-2010 05:25 PM
How to Backup Firefox Configuration ? austin26 Technology & Internet 3 15-09-2009 04:54 PM


All times are GMT +5.5. The time now is 02:51 PM.