< Home

patch load

Function

The patch load command loads the patches to the patch areas in the system.

Format

patch load filename all [ active | run ]

Parameters

Parameter

Description

Value

filename

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

file-name supports file name association. The disk where the file resides can be automatically associated.
  • Full help: All the disks of the device can be associated and displayed.
  • Partial help: The related disk and file can be associated and displayed after you enter a specified character string.

The value is a string of 5 to 64 case-insensitive characters without spaces. The file name must have an extension of .pat.

all

Loads the patches of all member switches in a stack.

-

active

Activates loaded patches.

-

run

Runs loaded patches.

-

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

When you load 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 any patch.

Prerequisites

The patch package has been uploaded to the root directory of the storage device.

Before loading a patch, the system must resolve the patch package, check the validity of the patch files in the patch package, and obtain the attributes such as the patch type and version of the patch file.

Precautions

The patch file cannot be reloaded. When you reload a patch, the system displays an error message.

After this command is run, the system loads all types of patches in the patch package.
  • If the active parameter is specified, the system activates the loaded patches directly. Then you can use the patch run all command to run the patches.
  • If the run parameter is specified, the system runs the loaded patches directly.

Example

# Load the patches to the patch area of the device and run the patches directly.

<HUAWEI> patch load patch.pat all run
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >