< Home

startup patch

Function

The startup patch command specifies the patch file for next startup.

Format

startup patch patch-name [ slave-board | slot slot-id ]

Devices that do not support the stack function or do not have the stack function enabled do not support the slave-board parameters.

Parameters

Parameter Description Value

patch-name

Specifies the name of the patch file for next startup.

The value is a string of 5 to 64 case-insensitive characters without spaces. It is in the format of [ drive-name ] [ path ] [ file-name ]. If drive-name is not specified, the name of the default storage device is used.

slave-board

Specifies the patch file for next startup on slave switch.

-

slot slot-id

Specifies a member device in a stack.

The value is an integer. The range of the integer is dependent on the specific device.

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

To make the patch file take effect after the device restarts, run this command to specify the patch file for next startup.

Follow-up Procedure

Run the reboot or the schedule reboot command to restart the device.

Precautions

  • A patch file uses .pat as the file name extension and must be saved in the root directory.
  • If you use this command to specify another patch for next startup, the previous patch will be overridden.
  • After the patch file is specified for next startup, run the display patch-information command to view the patch file.
    • If the patch file for next startup is not empty, the device load the patch automatically after next startup.
    • If the patch file for next startup is empty, the device cannot load the patch after next startup.
  • After the device restarts, the system loads and runs the patch. If you do not want the system to load the patch file after startup, use either of the following methods to delete the patch file:
    • Run the patch delete all command to delete the current patch.
    • Run the reset patch-configure [ next-startup ] command to delete the patch file already loaded on the system after startup.
  • The display cli command-tree command output shows that the chassis parameter is registered on the device. Fixed devices do not support this parameter.

Example

# Specify the patch file for next startup.

<HUAWEI> startup patch patch.pat............................................
..................................
Info: Succeeded in setting main board resource file for system.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic