• No results found

Description

Use patch active to activate patches. The system will temporarily run the loaded patches.

 If you execute the command with specifying the sequence number of a patch, all the DEACTIVE patches (including the specified patch) before the specified patch will be activated.

 If you execute the command without specifying the sequence number of a patch, all the DEACTIVE patches will be activated.

 After a system reboot, the original ACTIVE patches change to DEACTIVE and become invalid. To

make them effective, activate them again.

Syntax

patch active [ patch-number ]

View

System view

Default level

3: Manage level

Parameters

patch-number: Sequence number of a patch.

Examples

# Activate patch 3 and all the loaded DEACTIVE patches before patch 3. <Sysname> system-view

[Sysname] patch active 3 # Activate all the loaded patches. <Sysname> system-view

[Sysname] patch active

patch deactive

Description

Use patch deactive to stop running patches and the system will run at the original software version.

 If you execute the command with specifying the sequence number of a patch, all the ACTIVE patches (including the specified patch) after the specified patch turn to the DEACTIVE state.

 If you execute the command without specifying the sequence number of a patch, all the ACTIVE patches turn to the DEACTIVE state.

 This command is not applicable to the patches in the RUNNING state.

Syntax

patch deactive [ patch-number ]

View

System view

Default level

3: Manage level

Parameters

patch-number: Sequence number of a patch.

Examples

# Stop running patch 3 and all the ACTIVE patches after patch 3. <Sysname> system-view

[Sysname] patch deactive 3

<Sysname> system-view [Sysname] patch deactive

patch delete

Description

Use patch delete to delete patches and all the patches after the specified patch.

If you execute the command with specifying the sequence number of a patch, all the patches (including the specified patch) after the specified patch will be deleted.

If you execute the command without specifying the sequence number of a patch, all the patches will be deleted.

This command only removes the patches from the memory patch area, and it does not delete them from the storage media. The patches are in the IDLE state after this command is executed.

Syntax

patch delete [ patch-number ]

View

System view

Default level

3: Manage level

Parameters

patch-number: Sequence number of a patch.

Examples

# Delete patch 3 and all the patches after patch 3. <Sysname> system-view

[Sysname] patch delete 3 # Delete all the patches. <Sysname> system-view [Sysname] patch delete

patch install

Description

Use patch install to install all the patches in one step.

Use undo patch install to remove the patches.

When you execute the patch install command, message "Do you want to continue running patches after reboot? [Y/N]:" is displayed.

 Entering y or Y: All the specified patches are installed, and turn to the RUNNING state from IDLE. This equals execution of patch location, patch load, patch active, and patch run. The patches remain RUNNING after system reboot. If a slot is empty, the system will record the information. When a card is plugged into the slot, the system will install the corresponding patch on the card.

 Entering n or N: All the specified patches are installed and turn to the ACTIVE state from IDLE. This equals execution of patch location, patch load, and patch active. The patches turn to the DEACTIVE state after system reboot.

Before executing the command, save patch files to the specified directory. Note the following rules apply:

 If you install patches from patch packages, save the patch packages to any directory on the device.

 If you install patches from patch files, save the patch files to the root directory of the storage media. If the storage media is a CF card with partitions, save the patch files to the root directory of the first partition.

After patch install is executed, the system changes the patch file location specified with patch location to the directory specified by the patch-location argument of the patch install command. For example, if you execute patch location xxx and then patch install yyy, the patch file location automatically changes from xxx to yyy. If you execute patch install file filename, the system will not change the patch file location.

Syntax

patch install { patch-location | file filename } undo patch install

View

System view

Default level

3: Manage level

Parameters

patch-location: A string consisting of 1 to 64 characters. It specifies the directory where the patch file locates. It can be a root directory of a storage media.

file filename: Filename of a patch package.

Examples

# Install the patches located on the Flash. <Sysname> system-view

[Sysname] patch-install flash:

Patches will be installed. Continue? [Y/N]:y Do you want to run patches after reboot? [Y/N]:y Installing patches…

Installation completed, and patches will continue to run after reboot. [Sysname]

# Install the specified patch package. <Sysname> system-view

[Sysname] patch install file:/patch_packeg.bin Patches will be installed. Continue? [Y/N]:y Do you want to run patches after reboot? [Y/N]:y Installing patches…

Installation completed, and patches will continue to run after reboot. [Sysname]