Is there an automatable way to backup the configuration from a WLC 2504 controller?

  • I am looking for a way to backup the controller configuration file via an automatic process. I've seen links to the web interface which appears to do a one-time tftp copy of the config to a remote host, however I'm looking for a way to schedule the copy.

    Does anyone know of a way to automate configuration backups for Cisco WLCs?

    Have you see this question? Not directly appicable, but possibly helpful...

    Thanks @CraigConstantine, however the WLCs run a custom software that doesn't follow some of the common IOS-isms like "term len 0" -- there's probably an obscure command somewhere to allow a pure config dump, but I have yet to find it.

    Ideally Cisco Prime Infrastructure would be used, but I suspect the OP is looking for zero-cost options.

  • Use a script to login to the WLC and run the transfer command: http://www.cisco.com/en/US/docs/wireless/controller/6.0/command/reference/cli60.html#wp1327209

    You can use this to upload the config from the WLC to another server via TFTP/SFTP/FTP.

    (Cisco Controller) >transfer upload mode sftp 
    
    (Cisco Controller) >transfer upload username my-osx-user
    
    (Cisco Controller) >transfer upload password my-os-password
    
    (Cisco Controller) >transfer upload serverip 192.168.1.10
    
    (Cisco Controller) >transfer upload path /Users/my-osx-user/
    
    (Cisco Controller) >transfer upload filename wlc.config
    
    (Cisco Controller) >transfer upload datatype config
    
    (Cisco Controller) >transfer upload start
    
    Mode............................................. SFTP
    SFTP Server IP................................... 192.168.1.10
    SFTP Server Port................................. 22
    SFTP Path........................................ /Users/my-osx-user/
    SFTP Filename.................................... wlc.config
    SFTP Username.................................... my-osx-user
    SFTP Password.................................... *********
    Data Type........................................ Config File 
    Encryption....................................... Disabled
    
                                                              **************************************************
                                ***  WARNING: Config File Encryption Disabled  ***
                                                                                  **************************************************
    
    
    Are you sure you want to start? (y/N) y
    
    SFTP Config transfer starting.
    
    File transfer operation completed successfully.
    
    (Cisco Controller) >
    

    While the link points to WLC 6.0, the example was run on 7.4.

    Is the sftp only valid for certain controllers/revs? I'm only able to select tftp or ftp.

    This method works for tftp, and can be automated via something like expect. This solves my problem!

    SFTP is introduced in 7.4: Release Notes

License under CC-BY-SA with attribution


Content dated before 7/24/2021 11:53 AM

Tags used