patch load (User view)

Function

The patch load command loads a matching patch in the patch package to the current system.

Format

patch load file-name all run

Parameters

Parameter Description Value
file-name

Specifies the storage path and file name of a patch package. The path name is an absolute path name or a relative path name.

The value is a string of 5 to 127 case-sensitive characters without spaces. The value of the patch name is a string of 5 to 63 characters.

all

Installs patches on all boards.

-

run

Runs a patch after the patch is loaded.

-

Views

User view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
patch execute

Usage Guidelines

Usage Scenario

Before loading a patch, the system resolves the patch package to check the validity of patch files and obtain the attributes of patch files.

When loading a patch to the current system, the system searches the patch package for a matching patch file according to the attributes of the patch file.

  • If a matching patch file is found in the patch package, the system loads the patch.
  • If no matching patch file is found in the patch package, the system does not load the patch.

Prerequisites

The desired patch file has been uploaded to the main control board of the device.

Configuration Impact

If you continue to install the patch when the CPU or memory usage is too high, risks exist.

After loading a cold patch, restart the device to make the patch take effect.

After the patch load command is run, the system loads all types of patches in the patch package. If the run parameter is specified, the system runs the loaded patches directly.

Precautions

This command applies only to the admin VS but takes effect on all VSs.

Example

# Load and run the cold patch package on the current system.
<HUAWEI> patch load XXX.PAT all run
Info: Operating, please wait for a moment...
****************************************************************************
* Warning: Perform the following operations to deal with the cold patch.   * 
****************************************************************************
----------------------------------------
Device    Type    Upgrade mode        
----------------------------------------
1         xxx     reset board                  
----------------------------------------
Info: Succeeded in running the patch.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >