137
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 validates all
INACTIVE patches. If a sequence number is specified, this command activates the specified patch and all
its previous INACTIVE patches.
slot
slot-number
: Specifies an IRF member device by its member ID.
Usage guidelines
Before executing this command, you must use the
patch load
command to load patches.
The
patch active
command changes the state of INACTIVE patches to ACTIVE state and runs the patches.
To continue to run these patches after a reboot, use the
patch run
command to change their state to
RUNNING. If not, the state of ACTIVE patches changes back to INACTIVE at a reboot.
Examples
# Activate patch 3 and all its previous DEACTIVE patches on IRF member device 1.
<Sysname> system-view
[Sysname] patch active 3 slot 1
# Activate all DEACTIVE patches on IRF member device 1.
<Sysname> system-view
[Sysname] patch active slot 1
patch deactive
Use
patch deactive
to stop running patches.
Syntax
patch deactive
[
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 deactivates all
ACTIVE patches. If a sequence number is specified, this command deactivates the specified patch and all
its subsequent ACTIVE patches.
slot
slot-number
: Specifies an IRF member device by its member ID.
Usage guidelines
This command is not applicable to patches in RUNNING state.
Examples
# Stop running patch 3 and all its subsequent ACTIVE patches on IRF member device 1.
<Sysname> system-view
[Sysname] patch deactive 3 slot 1
# Stop running all ACTIVE patches on IRF member device 1.
<Sysname> system-view