Results 1 to 5 of 5

Thread: How to backup WLC configuration script?

  1. #1
    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????

  2. #2
    Join Date
    Jul 2011
    Posts
    364

    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.

  3. #3
    Join Date
    Jul 2011
    Posts
    330

    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>

  4. #4
    Join Date
    Jul 2011
    Posts
    355

    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

  5. #5
    Join Date
    Jul 2011
    Posts
    419

    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.

Similar Threads

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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,643,072.64750 seconds with 17 queries