No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Upgrade Commands

Upgrade Commands

display license

Function

The display license command displays information about the license file in the system.

Format

display license [ verbose ]

display license [ verbose ] slot slot-id

Parameters

Parameter Description Value
verbose

Displays detailed information about the current active license file.

-
slot slot-id

Specifies a stacked device.

The value is an integer, and the value range depends on the device configuration.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

A license file dynamically controls the availability of some features. Only one license file is active in the system. Run this command to view detailed information about the active license in the system, including license file name, version, validity period, and control item.

NOTE:

The encoding format used to display license information in the current version is GBK. To prevent garbled characters when you use a different terminal to log in to the device and Chinese characters are displayed, change the terminal's encoding format to GBK.

For example, if you use the PuTTY tool as the terminal, set its encoding format to Use font encoding, and the operating system's default encoding format must be GBK. After the encoding format is set to GBK, Chinese information about the license can be correctly displayed.

Example

# Display information about the active license file of the device.
<HUAWEI> display license
MainBoard:
 Active License    : flash:/CloudEngine7800.dat
 License state     : Demo
 Revoke ticket     : No ticket
                         
 RD of Huawei Technologies Co., Ltd.

 Product name      : CloudEngine 7800
 Product version   : V100R006
 License Serial No : LIC201411261KSH50
 Creator           : Huawei Technologies Co., Ltd.
 Created Time      : 2014-11-26 09:09:51 
 Feature name      : CELIC
 Authorize type    : demo
 Expired date      : 2015-02-20 
 Trial days        : - 

 Item name          Item type      Value      Description
 -------------------------------------------------------------
 CE-LIC-VXLAN       Function       YES          CE-LIC-VXLAN

 License state: Demo. The license for the current configuration will expire in 86 day(s).
 Apply for authentic license before the current license expires.
Table 3-66  Description of the display license command output

Item

Description

MainBoard

Information about the license file on the master switch.

Active License

Name and path of the active license file.

License state

Status of a license file:
  • Normal

    This state value indicates that a license file is working properly. If the status of the license file on the live network is not Normal, check the license file.

  • Trial

    • If the device ESN changes, a normal license file enters the Trial state and can be used only for 60 days.

      To continue to use a license file after the Trial state, apply for a new license file matching the new ESN and activate it.

    • A license file expires and enters the Trial state.

      To continue to use a license file after the Trial state, apply for a new license file and activate it.

    • A license file is revoked and enters the Trial state.

      To continue to use a license file after the Trial state, apply for a new license file based on the revocation code and activate it.

  • Demo

    When you activate a temporary license file, it enters the Demo state. The Demo state exists only for a demo license file used for test and deployment.

    A license file in Demo state allows you to use normal functions within a specified period. Before the expiration of the license file in Demo state, replace it with a commercial license file.

  • Default

    After a license file expires, the functions controlled by the license become invalid (restored to the status before the license is activated).

    If you want to use services after a license file expires, apply for a new license file and activate it.

Revoke ticket

License revocation code.

RD of Huawei Technologies Co., Ltd.

Name of the customer.

Product name

Name of the product that runs the license.

Product version

Product version of the license file.

NOTE:

After the device is upgraded, the license file is automatically compatible with the new version. Therefore, Product version may be different from the version number of the system software.

License Serial No

Serial number of license file.

Creator

Creator of the file.

Created Time

Time when the file was created.

Feature name

Feature name.

Authorize type

Authorization type.
  • demo: trial authorization.
  • comm: commercial authorization.

Expired date

License expiration date. PERMANENT indicates that the license is permanently valid.

Trial days

Trial period.

Item name

Name of a control item.

Item type

Type of a control item.
  • Function
  • Resource

Value

License function item. For a functional license, this item is displayed as YES, indicating the license function item is enabled. For a resource license, the value of this item indicates the supported control item specifications.

Description

Description of a control item.

display license revoke-ticket

Function

The display license revoke-ticket command displays the revocation code of the current license file of the device.

Format

display license revoke-ticket [ slot slot-id ]

Parameters

Parameter Description Value
slot slot-id

Specifies a stacked device.

The value is an integer, and the value range depends on the device configuration.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

The display license revoke-ticket command enables you to check the revocation code of a license file that has become invalid on the device. This code proves that the current license file is invalid and is used to apply for a new license.

Precautions

This command displays information only when the license file in current device system is invalid.

Example

# Display the revocation code of the current invalid license file.

<HUAWEI> display license revoke-ticket
MainBoard:
Info: The revoke ticket is: LIC20121103006100:27C1B773ED11D9F877855CDAEE74ABFE60E07126.

display license state

Function

The display license state command displays the license status on the device.

Format

display license state [ trial ]

display license state slot slot-id

Parameters

Parameter Description Value
trial

Displays the number of days before a license in Trial state expires.

If the current license is not in Trial state, the system displays no information when this parameter is configured.

-
slot slot-id

Specifies a stacked device.

The value is an integer, and the value range depends on the device configuration.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To check the status of the running license, run this command. The command displays the status of the license and the number of days before the license in this status will expire.

The system supports the following license states:
  • Normal: normal license
  • Demo: demonstration license
  • Trial: trial license
  • Default: default license

This command helps you locate license problems and verify the license status on the device.

Example

# Display the status of the license on the device.

<HUAWEI> display license state
MainBoard:
Info: Current license state is Demo. The license for the current configuration will expire in 22 day(s).
# Display the number of days before a license in Trial state expires.
<HUAWEI> display license state trial
Info: Current license state is Trial. The trial days remains 59 day(s).

display paf

Function

The display paf command displays information about the product adaptive file (PAF) in the system.

Format

display paf [ verbose ]

Parameters

None

Parameter

Description

Value

verbose

Displays details about the system PAF file.

-

Views

All views

Default Level

3: Management level

Usage Guidelines

A PAF file provides only required resources and features. This command can display all the specification information about the PAF file.

Example

# View details about the PAF file.

<HUAWEI> display paf verbose
SPEC_FUNC_RAAS_ENABLED
Value        : 0
Default value: 0
Min value    : 0
Max value    : 1
Description  : Raas funcation switch(1: enable, 0: disable)

SPEC_FUNC_LVRM_LRSPEC
Value        : 0
Default value: 0
Min value    : 0
Max value    : 1
Description  : Logic system funcationswitch(1: enable, 0: disable)

SPEC_FUNC_LVRM_VSSPEC
Value        : 1
Default value: 1
Min value    : 0
Max value    : 1
Description  : Virtual system funcationswitch(1: enable, 0: disable)

Table 3-67  Description of the display paf verbose command output

Item

Description

Value

Specification items in the PAF file, for example:
  • SPEC_FUNC_RAAS_ENABLED: Whether the RAAS function is enabled.
    • 0: disabled
    • 1: enabled
  • SPEC_RES_LVRM_LRSPEC: 8 logic systems.

Default value

Default specifications in the PAF file.

Min value

Minimum specifications in the PAF file.

Max value

Maximum specifications in the PAF file.

Description

Definition in the PAF file.

display patch-information

Function

The display patch-information command displays information about the patch in the current system.

Format

display patch-information [ verbose | history ]

Parameters

Parameter Description Value
verbose

Displays detailed information about the patch.

-
history

Displays historical information about the patch in the current system.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After a patch is loaded or deleted, run this command to view information about the patch, including its version, name, and status.

Precautions

If the system has no patch loaded, the patch version, name, and status displayed by this command are "-".

Example

# Display detailed information about the patch in the current system.
<HUAWEI> display patch-information verbose
Patch Package Name    :flash:/PATCH.PAT
Patch Package Version :V100R006SPH001
Patch Package State   :Running
Patch Package Run Time:2014-11-14 14:02:43

****************************************************************************
*             Information about patch errors is as follows:                *
****************************************************************************
    SlotId     CurrentVersion
----------------------------------------------------------------------------
No patch error occurs on any board

Board Info :
----------------------------------------------------------------------------------------------
   SlotId   ProcId   State     PatchType Valid     PatchEffectiveTime            PatchFileName
----------------------------------------------------------------------------------------------
        1     1049   Running   C         YES       2014-11-14 14:02:09.297       HP000012.pat
        1     1049   Running   C         YES       2014-11-14 14:02:09.308       HP000028.pat
----------------------------------------------------------------------------------------------
Total = 2  
Table 3-68  Description of the display patch-information verbose command output

Item

Description

Patch Package Name

Name of the patch.

Patch Package Version

Version of the patch.

Patch Package State

Status of the patch.

Patch Package Run Time

Running time of the patch.

Board Info

Information about the device with the patch loaded.

SlotId

ID of the device with the patch loaded.

ProcId

ID of a patch process.

State

Running status of the patch.

  • Idle: none.

  • Deactive: The patch is inactive.

  • Active: The patch is active.

  • Running: The patch is running.

PatchType

Patch type.

Valid

Indicates whether the patch is valid.

PatchEffectiveTime

Patch effective time.

PatchFileName

Patch name.

display snmp-agent trap feature-name lcs all

Function

The display snmp-agent trap feature-name lcs all command displays all trap messages of the LCS module.

NOTE:

Only the CE6870EI support this command.

Format

display snmp-agent trap feature-name lcs all

Parameters

None

Views

All views

Default Level

3: Management level

Usage Guidelines

After the alarm function is enabled, the display snmp-agent trap feature-name lcs all command can be used to display the status of all alarms about the LCS module.

Example

# Display all trap messages of the lcs module.

<HUAWEI>display snmp-agent trap feature-name lcs all
------------------------------------------------------------------------------
Feature name: LCS
Trap number : 8
------------------------------------------------------------------------------
Trap name                      Default switch status   Current switch status  
hwGtlDefaultValue              on                      on
hwGtlDefaultValueCleared       on                      on
hwGtlInitial                   on                      on
hwGtlInitialCleared            on                      on
hwGtlItemMismatch              on                      on
hwGtlItemMismatchCleared       on                      on
hwGtlNearDeadline              on                      on
hwGtlNearDeadlineCleared       on                      on
Table 3-69  Description of the display snmp-agent trap feature-name lcs all command output

Item

Description

Feature name

Name of the module to which a trap message belongs.

Trap number

Number of trap messages.

Trap name

Name of a trap message of the LCS module.

Default switch status

Default status of the trap function:
  • on: indicates that the trap function is enabled.
  • off: indicates that the trap function is disabled.

Current switch status

Current status of the trap function:
  • on: indicates that the trap function is enabled.
  • off: indicates that the trap function is disabled.

hwGtlDefaultValue

Enables the device to send trap when a license file became invalid, the system used the default configuration of the license.

hwGtlDefaultValueCleared

Enables the device to send clear trap when a license file became invalid, the system used the default configuration of the license.

hwGtlInitial

Enables the device to send a trap when a license file is activated abnormally and the current license file has been initialized.

hwGtlInitialCleared

Enables the device to send a clear trap when a license file is activated abnormally and the current license file has been initialized.

hwGtlItemMismatch

Enables the device to send a trap when the chassis license files do not match with each other, in the enabled or disabled multi-chassis scenario.

hwGtlItemMismatchCleared

Enables the device to send a clear trap when the chassis license files do not match with each other, in the enabled or disabled multi-chassis scenario.

hwGtlNearDeadline

Enables the device to send a trap when the system date was approaching the deadline of the service module defined in the license.

hwGtlNearDeadlineCleared

Enables the device to send a clear trap when the system date was approaching the deadline of the service module defined in the license.

display upgrade rollback-timer

Function

The display upgrade rollback-timer command displays the status of the rollback function in the current version.

Format

display upgrade rollback-timer

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

If an error occurs during an upgrade (for example, the new startup files are damaged), cancel the current upgrade and restore the previous version used before the upgrade.

To check whether the version rollback function is enabled, run this command.

Example

# Display the status of the rollback function in the current version (the version rollback function is enabled).

<HUAWEI> display upgrade rollback-timer
Info:The state of upgrade rollback is enable. Limit time is 10 minutes.

# Display the status of the rollback function in the current version (the version rollback function is disabled).

<HUAWEI> display upgrade rollback-timer
Info:The state of upgrade rollback is disable.
Related Topics

license active

Function

The license active command activates the license file saved in the storage of the device.

Format

license active file-name

Parameters

Parameter

Description

Value

file-name

Specifies the name of a license file.

The name of a license file must already exist.

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

Change or upgrade the license file when the current license file is outdated or needs higher specifications and more features. The initial state of a license file is inactive and the license file does not take effect in the system. Run this command to activate the new or updated license file.

The license active command can be used to activate a license file in the following situations:

  • The license needs to be activated for the first time.

    You can directly run this command to activate a license.

  • The current license file needs to be updated.

    If the specifications of the new license file are lower than those of the current license file, the system displays a message asking you whether to continue. If you choose No, the system retains the current license file. If you choose Yes, the device activates the current license file and the system uses the new license file.

    If the configuration items of the new license file are lower than those of the current license file, check whether the configuration items required by services exist in the new license file. If not, apply for a correct license file and activate it. Otherwise, services may be interrupted due to lack of dependent license configuration items after the device is restarted.

Prerequisites

The new license file has been uploaded to the device.

Precautions

  • The license file must use .dat or .zip as file name extension and be saved to the default root directory in the storage of the device.
  • Before activating a license file, you can run the license verify command to verify the license file.

Example

# Activate license.dat in the storage of the device.

<HUAWEI> license active license.dat
Now activing the license.................................done.
MainBoard:
Info: Succeeded in activating the license file on the board.
Related Topics

license backup

Function

The license backup command backs up license information in the license partition to the specified file.

NOTE:

The CE5800 series switchesdo not support this command.

Format

license backup flash file-name

Parameters

Parameter

Description

Value

flash

Backs up license information in the license partition in specified files.

-

file-name

Specifies the name of the backup file.

The value is a string of 1 to 127 case-sensitive characters without spaces. When double quotation marks are used around the string, spaces are allowed in the string.

Views

User view

Default Level

3: Management level

Usage Guidelines

To check whether the activated license is the same as the loaded license, run the license backup flash command to back up the activated license in specified files and then compare it with the loaded license file. The license file can be opened in text mode.

After you run this command, the system backs up two files using the file name extensions .master.zip and .slave.zip, and saves the files to the root directory on the default storage of the device. The backup license file in the primary license partition uses the file name extension .master.zip, and that in the secondary license partition uses the file name extension .slave.zip.

Example

# Back up license information in the license partition to the files huawei.master.zip and huawei.slave.zip.

<HUAWEI> license backup flash huawei
Info: Succeeded in backing up the license file to huawei.master.zip and huawei.slave.zip. 

license delete

Function

The license delete command deletes a license file in the $_license directory.

Format

license delete file-name

Parameters

Parameter Description Value
file-name Specifies the name of a license file to be deleted. The value is a string of 1 to 127 case-sensitive characters without spaces.

Views

User view

Default Level

3: Management level

Usage Guidelines

After you run the license active command to activate a license file, the system backs up the license file in the $_license directory. After you upgrade the license file, the expired license file in $_license still exists and occupies system resources. To delete redundant license files in $_license, run the license delete command.

To view files in $_license, run the dir command.

<HUAWEI> cd $_license
<HUAWEI> dir
Directory of flash:/$_license/
                     
  Idx  Attr     Size(Byte)  Date        Time       FileName
    0  -r--          1,710  Nov 04 2014 11:50:57   LICENSE.dat

3,480,880 KB total (2,307,848 KB free)

Example

# Delete the license file license.dat in $_license.

<HUAWEI> license delete license.dat
Warning: The file license.dat cannot be recycled. Continue? [Y/N]:y

license export

Function

The license export command stores a license file which is activated in the current system in the root directory of a storage device.

By default, an activated license file is not stored in the root directory.

Format

license export file-name

Parameters

Parameter Description Value
file-name Specifies the name of the license file to be saved to the root directory. The value is a string of 5 to 127 case-sensitive characters without spaces. The extension of a file is ".zip".

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

You can run this command to save the license file to the root directory on the storage of the device.

Precautions

The saved license file must use .zip as the file name extension.

Example

# Save the license file to the root directory on the storage of the device.

<HUAWEI> license export license.zip
Info: Succeeded in exporting the license file to license.zip. 

license revoke

Function

The license revoke command revokes a license file.

Format

license revoke [ slot slot-id ]

Parameters

Parameter Description Value
slot slot-id

Specifies a stacked device.

The value is an integer, and the value range depends on the device configuration.

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

You can upgrade a license file to:

  • Add new features.
  • Optimizes device performance.
  • Fix bugs in the current version.

Before updating a license file, run the license revoke command to revoke the existing license. The system then returns a license revocation code. This code is the evidence for license invalidation and is used to apply for a new license.

NOTE:

A license revocation code is a character string generated after a license file becomes invalid. You can determine that a license file is invalid based on the corresponding revocation code.

Precautions

After you run the license revoke command, the license file enters the Trial state and cannot be activated again regardless of how long the license file will expire. A license file in Trial state can be used only for 60 days. After the license file in Trial state expires, the successfully delivered features controlled by the license are still valid. The features can be deleted, but cannot be added. To add functions controlled by the license, re-apply for a license file and activate it.

Please apply for a new license and activate it before the original license expires so that services are not affected.

Example

# Revoke the current license file.

<HUAWEI> license revoke
Warning: The license will switch to trial state. Continue? [Y/N]:y
MainBoard:
Info: Succeeded in revoking the license. The revoke ticket is LIC201411261KSC50:87CE09A70A7401C7D0E1853B7931E3FA755AC88D.
Related Topics

license verify

Function

The license verify command verifies the license file of the device.

Format

license verify file-name

Parameters

Parameter Description Value
file-name Specifies the name of a license file. The name of a license file must already exist.

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

Before running the license active command to activate a license file, verify the license file.

The result of the license verify command can be the following:
  • Major error

    The license file cannot be activated.

  • Minor error

    The license file may be unable to be activated.

  • Success

    The license file can be activated.

Prerequisites

The license file has been saved on the device.

Example

# Verify the license file license.dat.
<HUAWEI> license verify license.dat
MainBoard:
Info: Verify license succeeded.
Related Topics

patch active all

Function

The patch active all command activates the patches on the current system.

By default, the loaded patches on the current system are inactive.

Format

patch active all

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

If you do not specify the active or run keyword when running the patch load command, run the patch active all command to activate all the loaded patches to make them effect.

Prerequisites

Patches have been loaded using the patch load command.

Configuration Impact

  • After a non-incremental patch is loaded and the patch active all command is run, the patches in the current system are activated.

  • If an incremental patch is loaded and the previous patch package is running, the previous patch package is still in running state after you run the patch active all command. The new patch package is activated.

Follow-up Procedure

After running the patch active all command, use the patch run all command to run the activated patch.

Precautions

After you run the patch active all command:
  • If the device is restarted, all the active patches become inactive. To reactivate the patches, run the patch active all command.

Example

# Activate all patches.

<HUAWEI> patch active all

patch configuration-synchronize

Function

The patch configuration-synchronize command synchronizes the patch configuration and patch file of the master switch to other member switches in a stack.

Format

patch configuration-synchronize

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

After you replace or add a member switch in a stack and start the new member switch, run this command to synchronize the patch configuration and patch file from the master switch if the patch file of the new member switch is incorrect.

Example

# Run the following commands on the new member switch to synchronize the patch configurations and patch files to the new member switch.

<HUAWEI> patch configuration-synchronize

patch deactive all

Function

The patch deactive all command deactivates the patches on the current system.

Format

patch deactive all

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

If you find errors in some patches after using the patch active all command to activate the loaded patches, run the patch deactive all command to deactivate patches on the current system to prevent them from taking effect.

Prerequisites

Active patches exist on the current system.

Precautions

After the patch deactive all command is run, patches in the active state are deactivated.

The patch deactive all command makes patches on the current system ineffective. To make the loaded patches take effect again, run the patch active all command.

Example

# Deactivate patches on the current system.

<HUAWEI> patch deactive all

patch delete

Function

The patch delete command deletes patches from the current system.

Format

patch delete all

Parameters

Parameter Description Value
all Deletes all patches on all the boards. -

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

Before installing a non-incremental patch, you need to run the patch delete all command to delete existing patches from the current system and then install a new patch package.

Configuration Impact

After the patch delete all command is run, patches on the system are deleted regardless of their status.

Precautions

  • The patch delete all command may affect the performance of the system. So, confirm the action before you use this command.

  • When the patch delete all command is run to delete patches from the current system, the system prompts you whether to delete patches.

  • After the patch delete all command is run to delete existing patches from the current system, the deleted patches cannot be restored. So, confirm the action before you use this command.

Example

# Delete all hot patches from the current system.

<HUAWEI> patch delete all
This will delete the patch. Are you sure? [Y/N]:y
Info: Operating, please wait for a moment....done.
Info:Succeeded in deleting the patch.
# Delete all cold patches from the current system.
<HUAWEI> patch delete all
This will delete the patch. Are you sure? [Y/N]:y
Info: Operating, please wait for a moment.......done.

****************************************************************************
* Warning: Perform the following operations to deal with the cold patch.   * 
****************************************************************************
----------------------------------------
Device    Type    Upgrade mode        
----------------------------------------
10        MPU     reset board         
----------------------------------------
Info: Succeeded in deleting the patch.
t
Related Topics

patch load

Function

The patch load command loads a matching patch in the patch package to the current system.

Format

patch load file-name all [ active | run ]

Parameters

Parameter Description Value
file-name

Specifies the path name and name of the patch package. The path name is an absolute path name or a relative path name.

The value is a string of 5 to 127 case-sensitive characters without spaces. The value of the patch name is a string of 5 to 63 characters.
all Loads all patches on all the boards. -
active Activates a patch after the patch is loaded. -
run Runs a patch after the patch is loaded. -

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

Before loading a patch, the system resolves the patch package to check the validity of patch files and obtain the attributes of patch files.

When loading a patch to the current system, the system searches the patch package for a matching patch file according to the attributes of the patch file.
  • If a matching patch file is found in the patch package, the system loads the patch.

  • If no matching patch file is found in the patch package, the system does not load the patch.

Prerequisites

The desired patch file has been uploaded to the master main control board of the device.

Configuration Impact

After the patch load command is run, the system loads all types of patches in the patch package.
  • If the parameter active is used in the patch load command, the system activates the patch file after loading it. Then, you can run the patch run all command to run the patch file.

  • If the parameter run is used in the patch load command, the system runs the patch file after loading it.

Precautions

The device is reset before a cold patch takes effect.

Example

# Load the hot patch package to the current system.

<HUAWEI> patch load CE8800, CE7800,
CE6800, and CE5800 series switchesSPH403.PAT all run
# Load and run the cold patch package on the current system.
<HUAWEI> patch load CE8800, CE7800,
CE6800, and CE5800 series switchesSPH403.PAT all run
Info: Operating, please wait for a moment...
****************************************************************************
* Warning: Perform the following operations to deal with the cold patch.   * 
****************************************************************************
----------------------------------------
Device    Type    Upgrade mode        
----------------------------------------
11        MPU     reset board          
12        MPU     reset board          
----------------------------------------
Info: Succeeded in running the patch.
Related Topics

patch run all

Function

The patch run all command runs the patches on the current system.

Format

patch run all

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

When the device is restarted, the active patches become deactivated and need to be activated again. To enable the active patches to retain in running start after a device restart, use this command to run these active patches.

Prerequisites

Patches have been loaded and activated on the system.

Configuration Impact

After you run this command to run patches on the current system, the patches remain in the running state if a device restart occurs.

After the patch run all command is run, the patches enter running state and cannot be restored to the previous state. Confirm the action before you run the command.

Example

# Run active patches in the current system.

<HUAWEI> patch run all

reset patch-configure

Function

The reset patch-configure command deletes the configuration of the patch file for next startup.

Format

reset patch-configure next-startup

Parameters

Parameter Description Value
next-startup Deletes the configuration of the patch file for next startup. -

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

After you run the startup patch command to specify the patch file for next startup, you can use the reset patch-configure command to delete the configuration.

Precautions

If you run the reset patch-configure command, the patch file for next startup is empty. When the device restarts, the system does not load and run the patch file.

Example

# Delete the configuration of the patch file for next startup.

<HUAWEI> reset patch-configure next-startup
Info: Succeeded in clearing startup the patch.
Related Topics

snmp-agent trap enable feature-name lcs

Function

The snmp-agent trap enable feature-name lcs command enables the trap function of the lcs module.

The undo snmp-agent trap enable feature-name lcs command disables the trap function of the lcs module.

By default, the trap function of the lcs module is enabled.

NOTE:

Only the CE6870EI support this command.

Format

snmp-agent trap enable feature-name lcs [ trap-name trap-name ]

undo snmp-agent trap enable feature-name lcs [ trap-name trap-name ]

Parameters

Parameter Description Value
trap-name trap-name Enables the traps of LCS events of specified types.
  • hwgtldefaultvalue: Enables the device to send a trap when a license file became invalid, the system used the default configuration of the license.

  • hwgtldefaultvaluecleared: Enables the device to send a clear trap when a license file became invalid, the system used the default configuration of the license.

  • hwgtlinitial: Enables the device to send a trap when a license file is activated abnormally and the current license file has been initialized.

  • hwgtlinitialcleared: Enables the device to send a clear trap when a license file is activated abnormally and the current license file has been initialized.

  • hwgtlitemmismatch: Enables the device to send a trap when the chassis license files do not match with each other, in the enabled or disabled multi-chassis scenario.

  • hwgtlitemmismatchcleared: Enables the device to send a clear trap when the chassis license files do not match with each other, in the enabled or disabled multi-chassis scenario.

  • hwgtlneardeadline: Enables the device to send a trap when the system date was approaching the deadline of the service module defined in the license.

  • hwgtlneardeadlinecleared: Enables the device to send a clear trap when the system date was approaching the deadline of the service module defined in the license.

Views

System view

Default Level

3: Management level

Usage Guidelines

To enable the traps of one or more events, you can specify type-name.

You can run the display snmp-agent trap feature-name lcs all command to check the configuration result.

Example

# Enable the trap function of the lcs module.

<HUAWEI> system-view
[~HUAWEI] snmp-agent trap enable feature-name lcs

upgrade all

Function

The upgrade all command upgrades the system file.

Format

upgrade all { startup | filename } bios [ force ]

Parameters

Parameter Description Value
all

Indicates all the registered devices.

-
startup

Uses the running system software to upgrade the system.

-
filename

Specifies the name of the system file that is used to upgrade the system.

The name of the system file must already exist. The format is flash:/xxx.cc.
bios

Indicates the BIOS system.

-
force

Indicates forcible upgrade.

-

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

To restart the system faster, you can run this command to upgrade the system file before the restart.

Precautions

Services are interrupted during a device upgrade or logical software upgrade using this command.

Example

# Forcibly upgrade the system using the current startup file.

<HUAWEI> upgrade all startup bios force
*********************************************************   
*                     W A R N I N G                     *  
*                                                       *    
* Please ensure that the configuration has been saved.  *    
* And please ensure that the board does not be powered  *  
* off or be reseted during the upgrade operation.       *  
* Also ensure that any board of this device is not      *  
* removed (pull out or plug in) during this process.    * 
*                                                       *     
*                     W A R N I N G                     *      
*********************************************************  
Confirm to upgrade.continue? [Y/N]:y             
                                                  
Loading slot:<1>                                
Info: Operating, please wait for a moment...     
....................                        
Load BIOS Finish!               
Upgrade result information:               
------------------------------------------------------------          
Slot     Type     Item         LoadMode     Result                    
------------------------------------------------------------            
1        MPU      BIOS         online       success                      
------------------------------------------------------------       
done. 
Table 3-70  Description of the upgrade all startup bios force command output

Item

Description

Slot

A device.

Type

Status of a device.

Item

Items to be upgraded.

LoadMode

Mode in which the upgrade file is loaded.

Result

Upgrade result.

upgrade slot startup

Function

The upgrade slot startup command upgrades the system file of a device.

Format

upgrade boardtype slot slotid { startup | filename } bios [ force ]

Parameters

Parameter Description Value
boardtype

Indicates all the registered devices.

The value is mpu, lpu.
slot slotid

Indicates a device.

The value is dependent on the specific device.
startup

Uses the running system software to upgrade the system.

-
filename

Specifies the name of the system file that is used to upgrade the system.

The name of the system file must already exist, in the format of flash:/xxx.cc.
bios

Indicates the BIOS system.

-
force

Indicates forcible upgrade.

-

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

When you find that the version of a device is different from the system software, run the command to upgrade the device version.

Precautions

Services are interrupted during a device upgrade or logical software upgrade using this command.

Example

# Forcibly upgrade the device by using the current bios software.

<HUAWEI> upgrade mpu slot 1 startup bios force
*********************************************************                                                                           
*                     W A R N I N G                     *                                                                           
*                                                       *                                                                           
* Please ensure that the configuration has been saved.  *                                                                           
* And please ensure that the board does not be powered  *                                                                           
* off or be reseted during the upgrade operation.       *                                                                           
* Also ensure that any board of this device is not      *                                                                           
* removed (pull out or plug in) during this process.    *                                                                           
*                                                       *                                                                           
*                     W A R N I N G                     *                                                                           
*********************************************************                                                                           
Confirm to upgrade.continue? [Y/N]:y                                                                                                
                                                                                                                                    
Loading slot:<1>                                                                                                                    
Info: Operating, please wait for a moment...                                                                                        
....................                                                                                                                
Load BIOS Finish!                                                                                                                   
Upgrade result information:                                                                                                         
------------------------------------------------------------                                                                        
Slot     Type     Item         LoadMode     Result                                                                                  
------------------------------------------------------------                                                                        
1        MPU      BIOS         online       success                                                                                 
------------------------------------------------------------                                                                        
done. 
Table 3-71  Description of the upgrade mpu slot 1 startup bios force command output

Item

Description

Slot

A device.

Type

Type of a device.

Item

Items to be upgraded.

LoadMode

Mode in which the upgrade file is loaded.

Result

Upgrade result.

upgrade rollback

Function

The upgrade rollback command enables the system rollback function and sets the time the system has to wait before rollback.

The undo upgrade rollback command disables the rollback function.

By default, the rollback function is disabled.

Format

upgrade rollback rollback-timer time-value

undo upgrade rollback

Parameters

Parameter Description Value
rollback-timer time-value Specifies the value of the rollback timer. The value is an integer that ranges from 10 to 360, in minutes.

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

If an error occurs during an upgrade (for example, the new startup files are damaged), cancel the current upgrade and restore the previous version used before the upgrade.

After the version rollback function is enabled and the system package is restarted, the system will perform a version rollback to roll back the system package and patch if no users successfully log in to the device in a specified period of time.

After the version rollback function is disabled, the system version does not roll back regardless whether any user is authenticated and logs in to the system within the specified period.

By default, the version rollback function is disabled. After each version rollback completes, the version rollback function is disabled again.

Precautions

If any user successfully logs in to the device, the rollback timer is cancelled.

After you run this command, the current system resets the rollback timer.

Example

# Configure the rollback timer for the current system upgrade.

<HUAWEI> upgrade rollback rollback-timer 300
Info:The state of upgrade rollback is enable. Limit time is 300 minutes.        
If no User cancels the function, the main MPU will restart by the bootfile flash:/software.cc.

# Disable the rollback function.

<HUAWEI> undo upgrade rollback
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 44145

Downloads: 330

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next