Wireless LAN Controller (WLC) Software Upgrade

PS:低版本升高版本,必须经过7.6版本,再往上升级;高版本降低版本,也必须经过7.6版本,再往下降级。(推荐7.6.130)
Introduction
Prerequisites
Requirements
Components Used
Platforms Supported
WLC Software Upgrade Procedure
GUI Upgrade Procedure
Step-by-Step Instructions
CLI Upgrade Procedure
Step-by-Step Instructions
Use the Wireless Control System to Upgrade the Wireless LAN Controller
Verify
Debugging Options
Troubleshoot
Remove the Primary or Secondary Image on the Wireless LAN Controller
Software Upgrade can Fail if Certain Characters are used in the Previous Configuration
LWAPP Mode Changes
Predownload an Image to an Access Point
Related Information
Introduction
This document explains the procedure and requirements in order to upgrade software on a Wireless LAN Controller (WLC).
Note: This document covers general procedures for a WLC software upgrade. See WLC Software Release Notes for an accurate upgrade path, download information, and upgrade procedure information for each specific release. For example, if you migrate to Release 8.1.131.0, see the "Upgrading to Cisco WLC Software Release 8.1.131.0” section of Release Notes for Cisco Wireless Controllers and Lightweight Access Points for Cisco Wireless Release 8.1.131.0.
Prerequisites
Requirements
In addition to basic networking knowledge and familiarity with the basic configuration and installation of Cisco Wireless LAN Controllers, ensure that you meet these requirements before you attempt to upgrade your WLC. Note that each main requirement also includes a version-specific requirement:
Components Used
The information in this document is based on these software and hardware versions:
Platforms Supported
This document is also applicable to these hardware platforms:
Note: See Release and General Information for more information on release notes for upgrades that pertain to the respective codes and hardware platform of Wireless products. 
WLC Software Upgrade Procedure
You can use either one of these two methods in order to upgrade the Cisco WLC:
This sequence is recommended for your WLC software upgrade:
  1. Upload a backup of your controller configuration to a TFTP server.
  2. Disable the 802.11a and 802.11b/g networks on your controller.
  3. Upgrade the primary image on your controller.
  4. Upgrade the boot image on your controller.
    NoteThis is a required step for upgrades to 4.1 on the WiSM, 3750G Wireless LAN Controller, and 4400 Series Controllers.
  5. Re-enable the 802.11a and 802.11b/g networks on your controller.
NoteIt is highly recommended to back up the configuration on the Wireless LAN controller before you perform the upgrade.
GUI Upgrade Procedure
In this section, you are presented with the information to upgrade the WLC with the use of the GUI on the controller.
When you upgrade the WLC with use of the GUI, you lose Layer 3 (IP) connectivity within the periods of time when the controller reboots. For this reason, it is recommended that you use a console port connection in order to check the state of the controller during the upgrade process and expedite any recovery procedures, if necessary.
When you upgrade the controller's software, the software on the controller's associated access points is also automatically upgraded. While an access point loads software, each of its LEDs blinks in succession. Up to 10 access points can be concurrently upgraded from the controller. Do not power down the controller or any access point during this process; otherwise, you might corrupt the software image. When you upgrade the controller to an intermediate software release (for example, to 4.0.217.0), wait until all the access points joined to the controller are upgraded to the intermediate release before you install the next release of the software. Upgrade of a controller with a large number of access points can take as long as 30 minutes, dependent upon the size of your network. However, with the increased number of concurrent access point upgrades supported in software release 4.0.206.0 and later, the upgrade time should be significantly reduced. The access points must remain powered, and the controller must not be reset during this time.
For information on some of the best practices to upgrade code on the Wireless LAN Controller, refer to Best Practices for Upgrading WLC Software.
Step-by-Step Instructions
Complete these steps:
  1. Complete these steps in order to log into the controller through your browser:
    1. HTTPS to the management IP address of your controller (for example, https://10.77.244.204).
      You are prompted for user credentials.
    2. Enter the username and password of the controller and click OK.
      The default username and password on the WLC are both admin.
      The Monitor window appears. The Controller Summary information shows you the current software version that runs on the WLC.
  2. Complete these steps in order to define the download parameters for the software upgrade:
    1. Click Commands in the menu at the top of the window.
      The Download File to Controller window appears.
    2. Enter the download parameters.
      The parameters to define include:
      • TFTP server IP Address
      • File Path
      • Maximum retries
      • Timeout
      • File Name
      The parameters used in this example are:
      • TFTP server IP Address - 10.7.244.204
      • Maximum retries - 10
      • Timeout - 6
      • File Path - ./
      • File Name - AIR-WLC4400-K9-5-2-178-0.aes
    3. Click Download in order to start the upgrade process.
      Here is an example:
      NoteWhen you perform the upgrade from the GUI, for File Path, you can insert a dot (.) as long as the image is in the root directory of your TFTP server. This way, you do not have to enter the path where the image is saved.
  3. Reboot the system after the file transfer is complete in order for the new software to take effect.
    Click Click Here in order to reboot, as this example shows:
  4. In the the System Reboot window, click Reboot at the top right side of the window.
  5. Click Save and Reboot in the Reboot System > Save window.
    After the reboot, you can log back into the controller and verify that the new version runs.
    NoteThe new version is 4.1.170.0.
  6. Upgrade the boot image (version 4.1 and later version upgrades only). The procedure is identical to steps 1 through 5 of this procedure, except you load the AIR-WLCxxxx-K9-5-2-157-0-ER.aes image.
CLI Upgrade Procedure
In this section, you are presented with the information to upgrade the WLC with use of the CLI on the controller.
Step-by-Step Instructions
Complete these steps:
  1. Make sure that the TFTP server is reachable from the controller, and make sure the upgrade file resides in the Root directory of the TFTP server.
    Refer to the Wireless Software Center (registered customers only) in order to download the latest software images. Copy the files to the default directory on the TFTP server.
  2. It is best to complete this procedure via the console port, but you can also SSH or Telnet (if enabled) to the controller's management IP address in order to complete the procedure. The use of SSH or Telnet results in the loss of connectivity with the controller during the reboot process following the image download. Therefore, console access should be available in order to expedite troubleshooting and recovery of the controller if the upgrade fails. Log in to the controller and issue the show sysinfo command in order to verify the current software that runs on the controller.
    This is sample output of the show sysinfo command, which shows that the controller runs 4.0.217.0:
    (Cisco Controller) >show sysinfo
    
    Manufacturer's Name.............................. Cisco Systems Inc.
    Product Name..................................... Cisco Controller
    Product Version.................................. 5.0.148.0
    RTOS Version..................................... 5.0.148.0
    Bootloader Version............................... 4.2.99.0
    Build Type....................................... DATA + WPS
    
    System Name...................................... Cisco_48:53:c3
    System Location..................................
    System Contact...................................
    System ObjectID.................................. 1.3.6.1.4.1.14179.1.1.4.3
    IP Address....................................... 10.77.244.204
    System Up Time................................... 0 days 0 hrs 1 mins 58 sec
    System Timezone Location.........................
    Current Boot License Level.......................
    Next Boot License Level..........................
    
    Configured Country............................... IN  - India
    Operating Environment............................ Commercial (0 to 40 C)
    Internal Temp Alarm Limits....................... 0 to 65 C
  3. Complete these steps in order to define the download parameters:
    1. Issue the transfer download mode tftp command in order to define the mode of file transfer.
    2. Issue the transfer download serverip TFTP_server_IP_address command in order to define the TFTP server IP address.
    3. Issue the transfer download path 'TFTP_server_path' command in order to define the path of the TFTP default directory where the controller OS software is located.
    4. Issue the transfer download filename filename command in order to specify the name of the image.
      Here is an example:
      (Cisco Controller) >transfer download datatype code
      
      (Cisco Controller) >transfer download mode tftp
      
      (Cisco Controller) >transfer download serverip 10.77.244.196
      
      (Cisco Controller) >transfer download path .
      
      (Cisco Controller) >transfer download filename AIR-WLC4400-K9-5-2-178-0.aes
  4. Issue the transfer download start command in order to initiate the upgrade process.
    Here is an example of the upgrade process:
    (Cisco Controller) >transfer download start
    
    Mode............................................. TFTP
    Data Type........................................ Code
    TFTP Server IP................................... 10.77.244.196
    TFTP Packet Timeout.............................. 6
    TFTP Max Retries................................. 10
    TFTP Path........................................ ./
    TFTP Filename.................................... AIR-WLC4400-K9-5-2-178-0.aes
    
    This may take some time.
    Are you sure you want to start? (y/N) y
    
    TFTP Code transfer starting.
    
    TFTP receive complete... extracting components.
    
    Executing backup script.
    
    Writing new RTOS to flash disk.
    
    Writing new Code to flash disk.
    
    Writing new APIB to flash disk.
    
    Executing install_apib script.
    
    Executing fini script.
    
    TFTP File transfer is successful.
                                       Reboot the switch for update to complete.
    
    
  5. Reboot the controller after the upgrade process is complete in order for the new code to take effect.
  6. Issue the reset system command, and enter y or yes in response to the question "Would you like to save them now?".
  7. Upgrade the bootloader version (4.1 and later version upgrades only) using the AIR-WLCxxxx-K9-5-2-157-0-ER.aes file. The process is identical to steps 1 through 6 of this procedure.
    NoteIn the 2100 Series WLC, you cannot upgrade the bootloader version due to hardware limitations. Also, this model does not require a bootloader upgrade as do the larger WLC models.
    NoteYou can upgrade the boot image before or after the main image.
    Here is an example of the boot image CLI upgrade process:
    (Cisco Controller) >transfer download start
    
    Mode....................... TFTP
    Data Type.................. Code
    TFTP Server IP............. 10.77.244.196
    TFTP Packet Timeout........ 6
    TFTP Max Retries........... 10
    TFTP Path.................. ./
    TFTP Filename.............. AIR-WLC4400-K9-5-2-157-0-ER.aes
    
    
    This may take some time.
    Are you sure you want to start? (y/N) y
    
    TFTP Code transfer starting.
    
    TFTP receive complete... extracting components.
    
    Writing new Emergency Bootloader to flash disk.
    
    Writing new Emergency Bootloader RTOS to flash disk.
    
    TFTP File transfer is successful.
                                       Reboot the switch for update to complete.
    
    
The configuration is not kept when you downgrade versions of controller code. Controllers can be upgraded from one release to another. Should you require a downgrade from one release to another, you possibly cannot use the higher release configuration. The workaround is to reload the previous controller configuration files that were saved on the backup server or reconfigure the controller.
This video posted to the Cisco Support Community leavingcisco.com explains with a demo, the upgrade procedure for a Wireless LAN Controller (WLC) using the GUI and CLI:
Cisco Wireless LAN Controller (WLC) Software Upgrade leavingcisco.com
leavingcisco.com
Use the Wireless Control System to Upgrade the Wireless LAN Controller
Complete these steps in order to update controller (and access points) software with the Wireless Control System (WCS).
  1. Enter ping ip address in the command prompt window in order to be sure that the WCS server can reach the controller. If you use an external TFTP server, enter ping ip address in order to be sure that the WCS server can reach TFTP server.
  2. In the GUI interface, choose Configure > Controllers in order to navigate to the All Controllers page.
  3. Check the check box of the desired controller, choose Download Software from the Select a Command drop-down list, and click Go. The WCS displays the Download Software to Controller page.
  4. If you use the built-in WCS TFTP server, check the TFTP Server on WCS System check box. If you use an external TFTP server, uncheck this check box and add the external TFTP server IP address.
  5. Click Browse and navigate to the software update file (for example, AS_2000_release.aes for 2000 series controllers).
    The files are uploaded to the root directory which was configured for use by the TFTP server. You can change to a different directory.
  6. Click Download.
    WCS downloads the software to the controller, and the controller writes the code to Flash RAM. As WCS performs this function, it displays its progress in the Status field. 
Verify
In order to verify the version of WLC software that is running, log in to the controller after the system reboots.
From the GUI:
Debugging Options
You can use the debug transfer trace enable command in order to view the events that occur during the controller software upgrade process. Here is an example, which shows the debug command output used and the for a successful software upgrade:
(Cisco Controller) >debug transfer trace enable
(Cisco Controller) >transfer download datatype code
(Cisco Controller) >transfer download mode tftp
(Cisco Controller) >transfer download serverip 10.77.244.04
(Cisco Controller) >transfer download path .
(Cisco Controller) >transfer download filename AIR-WLC4400-K9-5-2-157-0-ER.aes
(Cisco Controller) >transfer download start


Mode...................... TFTP  
Data Type................. Code          
TFTP Server IP............ 10.7.244.204
TFTP Packet Timeout....... 6
TFTP Max Retries.......... 10
TFTP Path................. ./
TFTP Filename............. AIR-WLC4400-K9-5-2-157-0-ER.aes

This may take some time.
Are you sure you want to start? (y/N) y
Thu Apr 26 19:21:21 2007: RESULT_STRING: TFTP Code transfer starting.
Thu Apr 26 19:21:21 2007: RESULT_CODE:1

TFTP Code transfer starting.
Thu Apr 26 19:21:24 2007: Still waiting!  Status = 2
Thu Apr 26 19:21:25 2007: Locking tftp semaphore, 
                          pHost=10.7.244.204 pFilename=./
   AIR-WLC4400-K9-5-2-157-0-ER.aes
Thu Apr 26 19:21:26 2007: Semaphore locked, now unlocking, 
                          pHost=10.7.244.204 pFilename=./
   AIR-WLC4400-K9-5-2-157-0-ER.aes
Thu Apr 26 19:21:26 2007: Semaphore successfully unlocked, 
                          pHost=10.7.244.204 pFilename=./
   AIR-WLC4400-K9-5-2-157-0-ER.aes
Thu Apr 26 19:21:26 2007: TFTP: Binding to local=0.0.0.0 
   remote=10.7.244.204
Thu Apr 26 19:21:36 2007: Still waiting!  Status = 1
Thu Apr 26 19:21:39 2007: Still waiting!  Status = 1
Thu Apr 26 19:21:42 2007: Still waiting!  Status = 1
Thu Apr 26 19:21:48 2007: Still waiting!  Status = 1
Thu Apr 26 19:22:23 2007: TFP End: 33862788 bytes transferred 
                          (1 retransmitted packets)
Thu Apr 26 19:22:23 2007: tftp rc=0, pHost=10.7.244.204 
                          pFilename=./AIR-WLC4400-K9-5-2-157-0-ER.aes
     pLocalFilename=/mnt/download/local.tgz
Thu Apr 26 19:22:23 2007: tftp = 6, file_name=.
   /AIR-WLC4400-K9-5-2-157-0-ER.aes, 
                          ip_address=10.7.244.204, 
   msg=Unknown error - refer to log
Thu Apr 26 19:22:23 2007: upd_get_code_via_tftp = 
   6 (target=268435457 
                          msg=Unknown error - refer to log)
Thu Apr 26 19:22:23 2007: RESULT_STRING: 
   TFTP receive complete... 
                          extracting components.
Thu Apr 26 19:22:23 2007: RESULT_CODE:6

TFTP receive complete... extracting components.
Thu Apr 26 19:22:24 2007: Still waiting!  Status = 2
Thu Apr 26 19:22:27 2007: Still waiting!  Status = 1
Thu Apr 26 19:22:28 2007: RESULT_STRING: Executing product check script.
Thu Apr 26 19:22:28 2007: RESULT_STRING: Executing init script.
Thu Apr 26 19:22:28 2007: RESULT_STRING: Executing backup script.

Executing backup script.
Thu Apr 26 19:22:30 2007: Still waiting!  Status = 2
Thu Apr 26 19:22:33 2007: Still waiting!  Status = 1
Thu Apr 26 19:22:37 2007: Still waiting!  Status = 1
Thu Apr 26 19:23:18 2007: RESULT_STRING: Writing new RTOS to flash disk.

Writing new RTOS to flash disk.
Thu Apr 26 19:23:19 2007: Still waiting!  Status = 2
Thu Apr 26 19:23:19 2007: RESULT_STRING: Writing new Code to flash disk.

Writing new Code to flash disk.
Thu Apr 26 19:23:22 2007: Still waiting!  Status = 2
Thu Apr 26 19:23:24 2007: Still waiting!  Status = 1
Thu Apr 26 19:23:24 2007: Still waiting!  Status = 1
Thu Apr 26 19:23:41 2007: RESULT_STRING: Writing new APIB to flash disk.

Writing new APIB to flash disk.
Thu Apr 26 19:23:44 2007: Still waiting!  Status = 2
Thu Apr 26 19:23:47 2007: Still waiting!  Status = 1
Thu Apr 26 19:23:50 2007: Still waiting!  Status = 1
Thu Apr 26 19:24:12 2007: RESULT_STRING: Executing install_apib script.

Executing install_apib script.
Thu Apr 26 19:24:15 2007: Still waiting!  Status = 2
Thu Apr 26 19:24:40 2007: Still waiting!  Status = 1
Thu Apr 26 19:24:43 2007: Still waiting!  Status = 1
Thu Apr 26 19:24:46 2007: RESULT_STRING: Executing fini script.
Thu Apr 26 19:24:46 2007: RESULT_STRING: 
   TFTP File transfer is successful.
  Reboot the switch for update to complete.
Thu Apr 26 19:24:46 2007: RESULT_CODE:11

TFTP File transfer is successful.
  Reboot the switch for update to complete.

Thu Apr 26 19:24:46 2007: Still waiting!  Status = 2
Thu Apr 26 19:24:49 2007: Still waiting!  Status = 1
Thu Apr 26 19:24:50 2007: ummounting: <umount /mnt/download/>  
                          cwd  = /mnt/application
Thu Apr 26 19:24:50 2007: finished umounting
Troubleshoot
Use this section to troubleshoot your software upgrade.
During the upgrade process, you might encounter errors. This section explains several common errors, along with typical causes and corrective actions you can take to complete the WLC software upgrade.
Other common reasons for a WLC software upgrade failure are:
Remove the Primary or Secondary Image on the Wireless LAN Controller
The WLC, by default, maintains two images. These images are the primary image and the backup image. The primary image is the active image used by the WLC while the backup image is used as a backup for the active image.
When you upgrade the WLC with a new image, the WLC automatically copies the new image over the backup image.
In order to see the active image that your controller currently runs (the primary image), click Monitor from the WLC GUI and look at the Software Version field under Controller Summary on the controller GUI. From the CLI, you can use the command show boot in order to view the primary and backup image present on the WLC. Here is an example.
(Cisco Controller) >show boot
Primary Boot Image............................... Code 5.2.178.0 <active>
Backup Boot Image................................ Code 5.0.148.0
In order to remove or overwrite an image on the WLC, boot up the WLC with the image that you want to keep and perform an upgrade. This way, the new image replaces the backup image.
You can also change the active booting image of the WLC manually with the command config boot <primary/backup>.
(Cisco Controller) >config boot ?

primary        Sets the primary image as active.
backup         Sets the backup image as active.
The config boot image can also be configured with the WLC GUI. Refer to How to Use the Backup Image on Wireless LAN Controllers (WLCs) for more information on the detailed procedure.
NoteYou need to save and reboot the WLC configuration so that the WLC uses the new active image.
Software Upgrade can Fail if Certain Characters are used in the Previous Configuration
In controller software release 4.2.61.0 and later, the bootup configuration file of the controller is stored in an Extensible Markup Language (XML) format, rather than in binary format. When you upgrade a controller to 4.2.61.0 or a later software release, the binary configuration file migrates and converts to XML, but the configuration file does not migrate correctly if it contains any of these characters as part of a user configuration string: &<>', "".
For example, a WLAN profile named R&D causes an XML parsing error after the second reboot, even though this profile name is valid in 4.1 and previous configurations.
NoteYou cannot download a binary configuration file onto a controller that runs software release 5.0.148.0. Also, do not attempt to make changes to the configuration file. If you do so and then download the file to a controller, the controller displays a cyclic redundancy checksum (CRC) error while it reboots and returns the configuration parameters to their default value.
LWAPP Mode Changes
When you upgrade to controller software release 5.0.148.0 or later, the LWAPP mode changes to Layer 3 if it was previously configured for Layer 2. If you downgrade from controller software release 6.0.196.0, 6.0.188.0, 5.2.178.0, 5.2.157.0, 5.1.151.0, or 5.0.148.0 to 4.2.61.0 or an earlier release, the LWAPP mode changes from Layer 3 to Layer 2. Access points might not join the controller, and you must manually reset the controller to Layer 3 in order to resolve this issue.
Predownload an Image to an Access Point
This feature allows you to download the upgrade image to the controller, and then download the image to the access points while the network is still up. A new CLI allows you to specify the boot image for both devices and to reset the access points when the controller resets. For information on how to configure the WLC and LAPs for this feature read the section Predownloading an Image to an Access Point of  Cisco Wireless LAN Controller Configuration Guide, Release 6.0.
Related Information