| Parameter | Description | Value |
|---|---|---|
| file-name | Specifies the directory in which a patch package is placed and the name of a file. Patches must be placed in the cfcard:/ directory. file-name supports file name association. The disk where the file
resides can be automatically associated.
|
file-name consists of drive-name and file-name and is a string of 5 to 48 case-sensitive characters with spaces not supported. If the device supports multiple storage media and drive-name is not specified, the patch with a specified name in the root directory of the default storage medium will be loaded. |
| active | Activates a patch after the patch is loaded. If active is configured in the patch load command, the patch will be run temporarily. After the device is restarted, the patch enters the inactive state. |
- |
| run | Activates a patch after the patch is loaded. If run is configured in the patch load command, the patch will be run. After the device is restarted, the patch remains in the running state. |
- |
Usage Scenario
You can run the patch load command to rapidly fix the system software bugs.
Prerequisites
A patch is released based on the device or board type. The patch file must have been loaded to the storage medium using FTP or TFTP.
The suffix of the patch name must be .pat.
The name of the patch file is displayed in the Patch Package Name field in the display patch-information command output.
Follow-up Procedure
Configure active in the patch load all command to activate but not run a patch after the patch is loaded. Run the patch run all command to run the patch.
Precautions
If no optional parameter is configured in the patch load command, the patches are only loaded from the storage medium to the patch area in the memory and remain in the inactive state.
Hot patch
Loading hot patches does not interrupt running services on the device. A hot patch fixes the system software bug when the device is running.
Cold patch
A cold patch fixes the system software bug only after the device is restarted.
If a patch has been loaded, only an incremental patch can be additionally loaded. An additional patch can be loaded only after the original patch is deleted, regardless of the original patch status.
# Load a patch package.
<sysname> patch load pp031.pat all run
Info: The patch is being loaded. Please wait for a moment...... Info: Succeeded in running the patch on the master board. Info: Succeeded in running the patch on the slave board. Info: Succeeded in running the patch on slot 1. Info: Succeeded in running the patch on slot 4. Info: Succeeded in running the patch on the card 1/3/0. Info: The card 1/3/1 does not have c patch to be loaded. Info: Succeeded in running the patch on the card 1/7/0. Info: Does not have NP patch to be loaded..................................... Info: Finished loading the patch.