< Home

Using Patches for System Upgrade

Patch management covers checking patches on the current device, uploading patch files, and patching the system.

Checking Whether Any Patch Is Running in the System

You need to confirm no patch is running in the current system before installing a patch. If a patch runs, delete the patch before installing the new patch.

  1. View patch information.

    display patch-information

    All the information about the current patch is displayed.

    If there are patches running, you must delete them before loading new patches.

  2. Optional: Delete the current patch.

    patch delete all

Uploading a Patch

Upload the patch file to the root directory of the device before you install a patch.

  1. The FW supports FTP, TFTP, or SFTP. You are advised to use SFTP to upload the patch file as SFTP is more secure than FTP and TFTP.
  2. Run the dir command to check the files in the root directory.

Patching the System

Make the uploaded patch file take effect.

  • Load, activate, and run the patch to apply the patch in the running system.

  • Specify the patch files to run after the system restart.

  • Apply the patch file in a running device.
    1. Load the patch.

      patch load file-name all

      The system checks whether the patch version is consistent with the system software version when the patch is loaded. If they are inconsistent, the system displays a message indicating a patch loading failure.

      After the patch is loaded, the patch is still in the deactivated state, even after the MPU is restarted.

    2. Activate the patch.

      patch active all

      Only patches that are loaded and in the deactivated state can be activated. The patches take effect after being activated. However, if the MPU is restarted, the patches will go back to the deactivated state.

    3. Run the patch.

      patch run all

      You can run the patch successfully only when the patch file has been activated. After the patch is run, the patch will be running even after the MPU is restarted.

    4. View the patch information.

      display patch-information [ history ]

  • Restart the device to apply the patch.
    1. Specify the patch file that will take effect upon device restart for the active MPU.

      startup patch file-name

    2. View information about the patch file that will take effect upon device restart.

      display startup

    3. Restart the FW.

      reboot

    After the FW is restarted, the patch is in the running state. That is, the patch is permanently active.

Uninstalling the Patch

Uninstall the patch that is no longer required.

  • The patch in any state can be deleted.
  • The patch that has been deleted must be reloaded to take effect.
  1. Delete a patch from the system.

    patch delete all

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >