141
If you save the patch files to other storage media except the Flash on the device, you need to specify the
directory where the patch files locate with the
patch-location
argument. Then the system loads the
appropriate patch files in the specified directory. If the device has only one storage medium, the patch
file is saved to a specific location and you do not need to execute this command. The specific location
varies with device model.
The
patch install
command changes the patch file location specified with the
patch location
command to
the directory specified by the
patch-location
argument of the
patch install
command. For example, if you
execute the
patch location
xxx
command and then the
patch install
yyy
command, the patch file location
automatically changes from xxx to yyy. If you execute the
patch install
command with providing the
filename of a patch package, the system will not change the patch file location.
Examples
# Specify the root directory of the Flash memory as the patch file location.
<Sysname> system-view
[Sysname] patch location flash:
patch run
Use
patch run
to confirm ACTIVE patches.
Syntax
patch run
[
patch-number
] [
slot
slot-number
]
Views
System view
Default command level
3: Manage level
Parameters
patch-number
: Specifies the sequence number of a patch. Values available for this argument depend on
the patch file that has been loaded. If no sequence number is specified, this command confirms all
ACTIVE patches (including ACTIVE patches for auxiliary CPUs) and changes their state to RUNNING. If
a sequence number is specified, this command confirms the specified ACTIVE patch and all its previous
patches, and changes their state to RUNNING.
slot
slot-number
: Specifies an IRF member device by its member ID. If no member device is specified, the
command applies to all member devices.
Usage guidelines
After being confirmed, ACTIVE patches are set in RUNNING state and can continue to run after a reboot.
If not being confirmed, ACTIVE patches are set in DEACTIVE state at a reboot.
Examples
# Confirm patch 3 and all its previous ACTIVE patches on IRF member device 1.
<Sysname> system-view
[Sysname] patch run 3 slot 1
# Confirm all ACTIVE patches on IRF member device 1.
<Sysname> system-view
[Sysname] patch run slot 1