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

S1720, S2700, S5700, and S6720 V200R011C10

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

Command Support

Commands provided in this section and all the parameters in the commands are supported by all switch models by default, unless otherwise specified. For details, see specific commands.

check configuration compatible

Function

The check configuration compatible command checks whether the configuration file for next startup conflicts with the system software for next startup.

NOTE:

Only the S5720HI supports this command.

Format

check configuration compatible { system-software | version version }

Parameters

Parameter

Description

Value

system-software

Specifies the system software to be checked as the system software for next startup.

-

version version

Specifies the version of the system software to be checked.

The value is a string of 11 or 17 case-insensitive characters in the format of VxxxRxxxCxx or VxxxRxxxCxxSPCxxx in which x indicates digits 0 to 9.

Views

User view

Default Level

3: Management level

Usage Guidelines

If you upgrade the system software to V200R009C00 or a later version and the configuration file contains WLAN configurations, the system displays a message indicating that the configuration file conflicts with the system software for next startup when the device restarts. The system software upgrade fails. You are suggested to run the check configuration compatible system-software command to check whether the system software for next startup conflicts with the configuration file for next startup, or run the check configuration compatible version version command to check whether a specified system software conflicts with the configuration file for next startup. If a conflict occurs, you need to use the eDesk tool to convert configurations in the configuration file, and specify the converted configuration file as the configuration file for next startup. If the configuration file is not converted, the configurations will be lost after the system is restarted and upgraded.

NOTE:

After converting configurations in the configuration file using the eDesk tool, restart the switch without saving the configurations. If the configurations are saved, the converted configuration file is invalid.

Example

# Check whether the configuration file for next startup conflicts with the system software for next startup.

<HUAWEI> check configuration compatible system-software
Info: The configuration is compatible with system software.

# Check whether the configuration file for next startup conflicts with V200R011C10.

<HUAWEI> check configuration compatible version V200R011C10
Info: The configuration is compatible with V200R011C10 software.
Table 2-68  Description of the check configuration compatible command output

Item

Description

Info: The configuration is compatible with system software.

The configuration file for next startup is compatible with the system software for next startup.

Info: The configuration is compatible with V200R011C10 software.

The configuration file for next startup is compatible with the specified system software.

Warning: The WLAN configuration conflicts with the next startup system software. To prevent configuration loss, use the eDesk tool to convert the configuration, and then specify the new configuration file for next startup.

The configuration file for next startup is incompatible with the system software for next startup.

Info: The WLAN configurations have been converted using the eDesk tool. Do not save the configurations; otherwise, converted configurations will be lost.

WLAN configurations have been converted using the eDesk tool. To prevent the converted configurations from being lost, do not save the configurations.

Error: The software version format is incorrect. The suggested format is VxxxRxxxCxx or VxxxRxxxCxxSPCXXX.

The specified system software format is incorrect or the switch fails to obtain version information from the specified system software.

Error: The configuration file version format is incorrect. The suggested format is VxxxRxxxCxx or VxxxRxxxCxxSPCXXX.

The switch fails to obtain configuration information from the specified system software.

Error: Failed to get the next startup system software version.

The switch fails to obtain version information from the system software for next startup.

Error: Failed to get the next startup configuration file version.

The switch fails to obtain configuration information from the system software for next startup.

Related Topics

check startup

Function

The check startup command checks the correctness of various resource files, including the PAF file, the patch package, the startup software, and the configuration file.

Format

check startup [ crc ] [ next ]

Parameters

Parameter Description Value
crc Performs a CRC check on various resource files. -
next Checks various resource files used for next startup. -

Views

User view

Default Level

1: Monitoring level

Usage Guidelines

After configuring the resource files for next startup, you can run this command to check whether the resource files are complete and whether the formats and versions of the resource files are correct.

Example

# Check the correctness of the resource files.

<HUAWEI> check startup
Main board:
Check startup software.......ok                                                 
Check configuration file.....ok                                                 
Check PAF....................ok                                                 
Check Patch..................ok                                                 
PAF is fitted with startup software                                             
Info: Slave board is not existing. 

# Performs a CRC check on various resource files.

<HUAWEI> check startup crc
Warning: This operation will take several minutes! Continue?[Y/N]:y
Check startup software CRC....................................................  
ok                                                                              
Info: Slave board is not existing.  

display license information

Function

The display license information command displays license information about the master, standby, and slave switches in a stack system.

NOTE:

Only the S5720HI, S6720EI, S6720S-EI, S5720-28P-LI-AC, S5720-28P-PWR-LI-AC, S5720-52P-LI-AC, and S5720-52P-PWR-LI-AC support this command.

Format

display license information

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

  • If the control items of the license files on the standby/slave and master switches are the same, the standby/slave switch uses its own license file and does not synchronize the license file of the master switch. You can run the display license command to check the license control items. An active/standby switchover has no impact on the license files loaded on the master, standby, and slave switches.
  • If the control items of the license files on the standby/slave and master switches are different, the standby/slave switch synchronizes the license file of the master switch. The ESN in the synchronized license file will differ from the standby/slave switch's ESN. If so, the license changes to the Trial state and enters the trial period. After an active/standby switchover, the license on the new master switch enters the trial period. You can run the display license information command on the master switch to check whether the switch's ESN is the same as the ESN in the license file.

Precautions

The display license command displays license information about the master switch only, whereas the display license information command displays license information about the master, standby, and slave switches in the stack system.

If a switch is not in a stack system, the display license information command displays license information about the switch only. If a stack system contains the master, standby, and slave switches, the display license information command displays license information about the master, standby, and slave switches.

Follow-up Procedure

If the ESN of the standby/slave switch differs from the ESN in the synchronized license file, the license enters the trial period. Apply for a new license file before the trial period expires according to the following process.

  1. Run the license revoke command on the master switch to obtain the revocation code of the license file on the switch.
  2. Run the display esn command on the master switch to collect ESNs of the master, standby, and slave switches.
  3. Log in to Huawei's license application website, and use the revocation code and ESNs of the master, standby, and slave switches to apply for a new license file for the stack system.
  4. Run the license active license-name command on the master switch to activate the new license file.

Example

# Display license information about the master, standby, and slave switches in a stack system.

<HUAWEI> display license information

Slot 0:
Current license file           : flash:/s5720-hi_slot0_full.dat
Synchronize from master board  : NO
Current license file esn       : 210235859810EC000018
Current slot esn               : 210235859810EC000018
License esn match with device  : YES

Slot 1:
Current license file           : flash:/s5720-hi_slot2_full.dat
Synchronize from master board  : YES
Current license file esn       : 210235859810EC000030
Current slot esn               : 210235859810F1000101
License esn match with device  : NO

Slot 2:
Current license file           : flash:/s5720-hi_slot2_full.dat
Synchronize from master board  : YES
Current license file esn       : 210235859810EC000030
Current slot esn               : 210235859810EC000030
License esn match with device  : YES
Table 2-69  Description of the display license information command output

Item

Description

Slot

Slot ID.

Current license file

Current license file.

Synchronize from master board

Whether the license file is synchronized from the master switch.

For the master switch, the value is YES.

Current license file esn

ESN in the current license file.

Current slot esn

ESN of the switch.

License esn match with device

Whether the ESN in the license file matches the switch's ESN.

display license

Function

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

Only the S1720GW, S1720GWR, S1720X, S1720GW-E, S1720GWR-E, S1720X-E, S5720HI, S5720-28P-LI-AC, S5720-28P-PWR-LI-AC, S5720-52P-LI-AC, S5720-52P-PWR-LI-AC, S6720EI, and S6720S-EI support this command.

Format

display license [ file-name | verbose ]

Parameters

Parameter Description Value
file-name

Displays summary information about the license file with a specified file name.

file-name supports file name association. The disk where the file resides can be automatically associated.
  • Full help: All the disks of the device can be associated and displayed.
  • Partial help: The related disk and file can be associated and displayed after you enter a specified character string.

The value is a string of 5 to 64 case-insensitive characters without spaces.

verbose

Displays detailed information about the current active license file.

-

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. Based on the information, you can determine whether to upgrade the system version to support more features.

Example

# Display information about the active license file of the device.
<HUAWEI> display license
 Active license    : flash:/LICORTF163673-554BEF51E8.dat
 License state     : Trial
 Revoke ticket     : No ticket
 
 RD of Huawei Technologies Co., Ltd.
 
 Product name      : S5700

 Product version   : V200R009
 License Serial No : LIC2014032800EC50
 Creator           : Huawei Technologies Co., Ltd.
 Created Time      : 2014-03-28 16:38:36
 Feature name      : ES5FEA1
 Authorize type    : DEMO
 Expired date      : 2014-05-25
 Trial days        : 60

 Item name          Item type  Value    Description
 -------------------------------------------------------------
 ES5SF4512K00       Resource   2        FIB512K
 ES5SF4128K00       Resource   6        FIB128K
 ES5SWL16AP00       Resource   64       WL16AP
 ES5SWL64AP00       Resource   16       WL64AP
 ES5SWL128AP0       Resource   8        WL128AP
 ES5SWL512AP0       Resource   2        WL512AP
                                          
 Master board license state: Trial. The trial days remains 60 days. Apply for authentic license before the current license expires.
Table 2-70  Description of the display license command output

Item

Description

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

    • A license file enters the Trial state if the ESN does not match the device. A license file in Trial state can be used only for 60 days.

      To continue to use a license file after the Trial state, apply for a new license file using the correct ESN.

    • A temporary 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.

    • If you replace the master switch but the new ESN does not match the license file, the license file enters the Trial state.

      To continue to use a license file after the Trial state, apply for a new license file matching the new ESN 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.

  • Emergency

    In the emergency conditions like earthquake, volcano explosion, and tsunami, you can run the license emergency command to trigger a license file to enter the Emergency state. The Emergency state stays for seven days, and a license file can enter the Emergency state three times.

  • Default: No license file is activated or a license file expires.

    If a license file enters the Default state, services will be interrupted.

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

Revoke ticket

License revocation code. no ticket indicates that the license is permanently valid.

Product name

Name of the product that runs the license.

Product version

Product version.

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. If the license loses effectiveness, it will have 60 days for trying out.

Item name

Name of a control item.

Item type

Type of a control item.

Value

Value of a control item.

Description

Description of a control item.

display license esn

Function

The display license esn command displays the equipment serial number (ESN) used for applying a license.

NOTE:

Only the S1720GW, S1720GWR, S1720X, S1720GW-E, S1720GWR-E, S1720X-E, S5720HI, S5720-28P-LI-AC, S5720-28P-PWR-LI-AC, S5720-52P-LI-AC, S5720-52P-PWR-LI-AC, S6720EI, and S6720S-EI support this command.

Format

display license esn

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

When you need to use licensed resource items or function items, apply to Huawei for a license file. When applying for a license, you need to provide the device ESN.

ESN is the only identifier of device components, run the display license esn command to display the ESN of the current device, and then use the ESN to apply a license file for the device.

The ESN of the chassis must be the same as the ESN in the license to be activated. If they are different, the license file cannot be activated.

Example

# Display the ESN used for applying a license.

<HUAWEI> display license esn
ESN: 2102113090P0C2000291
Table 2-71  Description of the display license esn command output

Item

Description

ESN

ESN of the device.

display license resource usage

Function

The display license resource usage command displays the usage of the resource items defined in a license file.

NOTE:

Only the S1720GW, S1720GWR, S1720X, S1720GW-E, S1720GWR-E, S1720X-E, S5720HI, S5720-28P-LI-AC, S5720-28P-PWR-LI-AC, S5720-52P-LI-AC, S5720-52P-PWR-LI-AC, S6720EI, and S6720S-EI support this command.

Format

display license resource usage

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can use the display license resource usage command to check the usage of the resource items defined in the license file.

Resource usage refers to the percentage of resources used out of resources defined by the license file.

Example

# Display the usage of licensed resources.

<HUAWEI> display license resource usage
Info: Active License on master board: flash:/LICORTF163673-554BEF51E8.dat
 FeatureName    | ConfigureItemName       | ResourceUsage

 ES5FEA1           ES5SF4512K00                0/2
 ES5FEA1           ES5SF4128K00                0/6
 ES5FEA1           ES5SWL16AP00                0/64
 ES5FEA1           ES5SWL64AP00                0/16
 ES5FEA1           ES5SWL128AP0                0/8
 ES5FEA1           ES5SWL512AP0                0/2
Table 2-72  Description of the display license resource usage command output

Item

Description

Activated License on master board

File name and path of an active license name.

FeatureName

Name of the feature controlled by the license.

ConfigureItemName

Name of a control item.

ResourceUsage

Percentage of used resources.

display license revoke-ticket

Function

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

NOTE:

Only the S1720GW, S1720GWR, S1720X, S1720GW-E, S1720GWR-E, S1720X-E, S5720HI, S5720-28P-LI-AC, S5720-28P-PWR-LI-AC, S5720-52P-LI-AC, S5720-52P-PWR-LI-AC, S6720EI, and S6720S-EI support this command.

Format

display license revoke-ticket

Parameters

None

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. Otherwise, no command output is displayed.

Example

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

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

display license state

Function

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

NOTE:

Only the S1720GW, S1720GWR, S1720X, S1720GW-E, S1720GWR-E, S1720X-E, S5720HI, S5720-28P-LI-AC, S5720-28P-PWR-LI-AC, S5720-52P-LI-AC, S5720-52P-PWR-LI-AC, S6720EI, and S6720S-EI support this command.

Format

display license state

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

To check the status of the running license, run this command. The command displays the current 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 that has expired but is still valid during the trial period
  • Emergency: emergency license
  • Default: default license

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

Prerequisites

A license file has been stored on the main control board of the device and has been activated. This ensures that valid entries are displayed after the execution of the command. If the license file is not activated, no command output is displayed.

Example

# Display the status of the license on the device.

<HUAWEI> display license state
Info: Current license state is Trial. 60 days remain.

display module-information

Function

The display module-information command displays information about dynamically uploaded modules.

Format

display module-information [ verbose | next-startup ]

Parameters

Parameter Description Value
verbose

Displays detailed information about dynamically uploaded modules.

-

next-startup

Displays information about the module packages to be uploaded at the next startup.

-

Views

All views

Default Level

3: Management level

Usage Guidelines

After modules are uploaded, you can run the display module-information command to check information about these modules.

Example

# Display information about dynamically uploaded modules.

<HUAWEI> display module-information

                           Module Information
------------------------------------------------------------------------
Module     Version   InstallTime                     PackageName
------------------------------------------------------------------------
MACSEC     SPH       2011-01-16 16:39:18+00:00       s5720hi.mod

Total = 1

# Display detailed information about dynamically uploaded modules.

<HUAWEI> display module-information verbose

                           Module Information
------------------------------------------------------------------------
Module     Version   InstallTime                     PackageName
------------------------------------------------------------------------
MACSEC     SPH       2011-01-16 16:39:18+00:00       s5720hi.mod

Total = 1
Board Info:

------------------------------------------------------------------------
Slot       Module         State     Count Time(YYYY-MM-DD HH:MM:SS)
------------------------------------------------------------------------
0          MACSEC         Using     1     2011-01-16 16:39:17+00:00

Total = 1
Table 2-73  Description of the display module-information command output

Item

Description

Module Information

Module information.

Module

Module name.

Version

Module package version.

PackageName

Module package name.

InstallTime

Time when the module package was uploaded to the memory.

Total

The Total field under Module Information displays the number of module packages that take effect. The Total field under Board Info displays the number of boards that have modules installed.

Board Info

Board information.

Slot

Slot ID of the board where a module resides.

State

Status of the module.

Count

Number of modules that take effect on the board.

Time(YYYY-MM-DD HH:MM:SS)

Time when the module took effect, that is, time when the current module was loaded to the current state.

# Display information about the next startup modules configured in the system.

<HUAWEI> display module-information next-startup
Info: The result will be shown in several minutes. Please wait for a moment......

                      Next startup module packages
Total = 1
------------------------------------------------------------------------
No.  PackageName
------------------------------------------------------------------------
1    flash:/$_install_mod/s5720hi.mod
Table 2-74  Description of the display module-information next-startup command output

Item

Description

Next startup module packages

Information about module packages to be installed at the next startup.

Total

Number of module packages to be installed at the next startup.

No.

Sequence number of a module package to be installed at the next startup.

PackageName

Name of a module package to be installed at the next startup.

display paf

Function

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

Format

display paf { all | { resource | service } item-name }

Parameters

Parameter

Description

Value

all

Displays all information about the PAF file.

-

resource

Specifies the value set for a resource item in the PAF file.

-

service

Specifies the value set for a service item in the PAF file.

-

item-name

Specifies the name of a resource item or a service item.

The value is a string of 1 to 64 characters.

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

# Display the value set for a resource item in the PAF file.

<HUAWEI> display paf resource PAF_LCS_NQA_SPECS_NUM_ENTRY
 PAF_LCS_NQA_SPECS_NUM_ENTRY = 1, 32, 32, 0

# Display the value set for a service item in the PAF file.

<HUAWEI> display paf service PAF_LCS_IPV6_BASE_SPECS_ENABLED
 PAF_LCS_IPV6_BASE_SPECS_ENABLED = 1, 1
Table 2-75  Description of the display paf resource command output

Item

Description

PAF_LCS_NQA_SPECS_NUM_ENTRY

Resource item name in the PAF file.

1

Whether a resource item is controlled by a license.
  • 1: yes
  • 0: no

32

Default value of the resource item in the PAF file.

32

Maximum value of the resource item in the PAF file.

0

Minimum value of the resource item in the PAF file.

Table 2-76  Description of the display paf service command output

Item

Description

PAF_LCS_IPV6_BASE_SPECS_ENABLED

Service item name in the PAF file.

1

Whether a service item is controlled by a license.
  • 1: yes
  • 0: no

1

Service status.
  • 1: enabled
  • 0: disabled

display patch-information

Function

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

Format

display patch-information [ history ]

Parameters

Parameter Description Value
history

Displays historical information about the patch in the current system.

-

Views

All views

Default Level

3: Management level

Usage Guidelines

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

Example

# Display current information about the patch in the system.

<HUAWEI> display patch-information
Patch Package Name   :flash:/patch_all_pack.pat
Patch Package Version:V200R008C00SPH001
The state of the patch state file is: Running
The current state is: Running

************************************************************************
*           Information about hot patch errors is as follows:          *
************************************************************************

     Slot            CurrentVersion
------------------------------------------------------------

No hot patch error occurs on any board.


************************************************************************
*                The hot patch information, as follows:                *
************************************************************************

 Slot       Type           State     Count Time(YYYY-MM-DD HH:MM:SS)
------------------------------------------------------------------------
 0          C              Running   5     2014-10-28 15:17:14+00:00            

# Display historical information about the patch in the system.

<HUAWEI> display patch-information history
************************************************************************        
*                The patch command history, as follows:                *        
************************************************************************        
                                                                                
 time(Y.M.D/HH:MM:SS)   state         size     patch-package name               
 -----------------------------------------------------------------------        
 2014.01.29/14:07:39  Startup       827318      patch_all_pack.pat.pat       
 2014.10.13/11:33:12  Running         8404      patch_all_pack1.pat.pat       
 2014.10.13/10:48:36     Idle       827318      patch_all_pack2.pat
Table 2-77  Description of the display patch-information command output

Item

Description

Patch Package Name

Name of the patch file.

Patch Package Version

Version of the patch.

The state of the patch state file is

Status of the patch file.

The current state is

Current status of the patch.

Slot

Slot ID.

Type

Patch type.

  • C: single-core patch.

  • ENP: indicates an ENP patch. (Only the S5720HI supports this patch type.)

  • Kernel: indicates a kernel patch. (Only the S5720HI and S5720EI support this patch type.)

  • BIN: indicates a process patch. (The S1720, S2720EI, S2750EI, S5700LI, S5700S-LI, S5710–X-LI, and S5720EI do not support this patch type.)

State

Running status of the patch.

  • Deactive

  • Active

  • Running

  • Idle: no patch in the system

  • Startup: the patch file for next startup

Count

Number of patch units.

For kernel patches, the number of kernel patches in Active and Running states is displayed.

Time(YYYY-MM-DD HH:MM:SS)

Time when the patch takes effect.

size

Size of the patch.

display rollback

Function

The display rollback { information | result } command displays rollback information in the system.

Format

display rollback { information | result }

Parameters

Parameter

Description

Value

information

Displays version information after the system is rolled back.

-

result

Checks whether the rollback is successful.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

If an error occurs during an upgrade and you need to cancel the upgrade, run the rollback command to roll back the system to the previous version.

  • Before performing a rollback, you can run the display rollback information command to preview the version status after the rollback, including the system software, configuration file, and patch file used after the rollback, as well as the remaining time for the rollback function to take effect.
  • After completing the rollback, you can run the display rollback result command to check whether the rollback is successful.

Example

# Display rollback information in the system.

<HUAWEI> display rollback information
--------------------------------------------------------------------
MainBoard:
 Software package:        flash:/basicsoft.cc
 Configuration file:      flash:/vrpcfg201506011523.zip
 Patch file:              NULL
 Rollback remain time:    00:16:49
--------------------------------------------------------------------
Table 2-78  Description of the display rollback information command output

Item

Description

Software package

System software used after the rollback.

Configuration file

Configuration file used after the rollback.

This configuration file is the backup configuration file automatically generated by the system after the upgrade. The file name is in the format of filenameYYYYMMDDhhmm.zip.
  • filename: indicates the name of the configuration file before the upgrade.
  • YYYY: indicates the year.
  • MM: indicates the month.
  • DD: indicates the day.
  • hh: indicates the hour.
  • mm: indicates the minute.

If the file name is too long, the system automatically shortens the file name length to the required length.

Patch file

Patch file used after the rollback.

Rollback remain time

Remaining time for the rollback function to take effect.

# Check whether the rollback is successful after the rollback is complete.

<HUAWEI> display rollback result
Rollback result: Success.
Table 2-79  Description of the display rollback result command output

Item

Description

Rollback result

Rollback result:

  • Success: The rollback is successful.

  • Fail: The rollback fails.

    If the rollback fails, the system displays specific rollback failure information:
    • Software rollback fail: The system software fails to be rolled back.
    • Configuration rollback fail: The configuration file fails to be rolled back.
    • Patch rollback fail: The patch file fails to be rolled back.
Related Topics

display snmp-agent trap feature-name gtl all

Function

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

NOTE:

Only S5720HI, S6720EI, and S6720S-EI support this command.

Format

display snmp-agent trap feature-name gtl all

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display snmp-agent trap feature-name gtl all command to check status of all GTL traps. This status can be configured using the snmp-agent trap enable feature-name gtl command.

Example

# Display all trap messages of the GTL module.

<HUAWEI> display snmp-agent trap feature-name gtl all
------------------------------------------------------------------------------
Feature name: GTL
Trap number : 3
------------------------------------------------------------------------------
Trap name                       Default switch status   Current switch status
hwGtlResourceUsedUp             on                      on
hwGtlNearDeadline               on                      on
hwGtlDefaultValue               on                      on
hwGtlResourceUsedUpCleared      on                      on
hwGtlNearDeadlineCleared        on                      on
hwGtlDefaultValueCleared        on                      on
hwGtlEsnMismatch                on                      on
hwGtlEsnMismatchCleared         on                      on
Table 2-80  Description of the display snmp-agent trap feature-name gtl 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 GTL module:

  • hwGtlResourceUsedUp: The trap was generated when the percentage of the resources used by the service module was not less than the threshold defined by the license.
  • hwGtlNearDeadline: The trap was generated when the system date was approaching the deadline of the service module defined in the license, that is, when the license entered the demo status.
  • hwGtlDefaultValue:The system used the default configuration of the license, when a license file became invalid.
  • hwGtlResourceUsedUpCleared: The trap was generated when the resource usage of the service module fell below the threshold.
  • hwGtlNearDeadlineCleared: The trap was generated when the old license file became invalid or the new license file took effect.
  • hwGtlDefaultValueCleared: The trap was generated when the system did not use default license configurations.
  • hwGtlEsnMismatch: The trap was generated when thedevice ESN and the license ESN did not match.
  • hwGtlEsnMismatchCleared: The trap was generated when the device ESN and the license ESN matched again.

Default switch status

Status of the default trap function:
  • on: indicates that the trap function is enabled.
  • off: indicates that the trap function is disabled.

Current switch status

Status of the current trap function:
  • on: indicates that the trap function is enabled.
  • off: indicates that the trap function is disabled.

display snmp-agent trap feature-name ssp_adp all

Function

The display snmp-agent trap feature-name ssp_adp all command displays the status of all traps on the SSP_ADP module.

Format

display snmp-agent trap feature-name ssp_adp all

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After enabling the trap function for the SSP_ADP module, you can run the display snmp-agent trap feature-name ssp_adp all command to check the status of all traps on the SSP_ADP module. To enable the trap function for the SSP_ADP module, run the snmp-agent trap enable feature-name ssp_adp command.

Prerequisites

The SNMP function has been enabled on the switch. For details, see snmp-agent.

Example

# Display the status of all traps on the SSP_ADP module.

<HUAWEI>display snmp-agent trap feature-name ssp_adp all
------------------------------------------------------------------------------
Feature name: SSP_ADP
Trap number : 1
------------------------------------------------------------------------------
Trap name                       Default switch status   Current switch status
hwPatchDelNeedReStartTrap       on                      on
Table 2-81  Description of the display snmp-agent trap feature-name ssp_adp all command output

Item

Specification

Feature name

Name of the module that the trap belongs to.

Trap number

Number of traps.

Trap name

Name of a trap.

hwPatchDelNeedReStartTrap: The switch needs to be restarted after the patch is deleted.

Default switch status

Default status of the trap function:
  • on: indicates that the trap function is enabled by default.

  • off: indicates that the trap function is disabled by default.

Current switch status

Status of the trap function:

  • on: indicates that the trap function is enabled.

  • off: indicates that the trap function is disabled.

install-module

Function

The install-module command installs module packages.

By default, no module package is installed.

Format

install-module file-name [ next-startup ]

Parameters

Parameter Description Value
file-name

Specifies the name of a module package to be installed.

file-name supports file name association. The related file can be associated and displayed after you enter a specified character string.

The value is a string of 5 to 64 case-insensitive characters without spaces.

next-startup

Specifies the name of the module package to be installed during next startup.

-

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

Software upgrade is a common method to add new services on a network. This method, however, is complex and affects services. To solve these problems, you can run the install-module command to install the module package of a desired function, without upgrading or powering off your device.

  • Run the install-module file-name command to load a module in the module package to the device. The module directly takes effect after being loaded. If the device is in a stack, the module is loaded to all the devices in the stack, including the master, standby, and slave switches.
  • Run the install-module file-name next-startup command to add the module package to the next startup module list. The device automatically loads the module next time it starts. Before a module package is installed dynamically, the system checks the module package validity. In the next startup module list, one module can exist in only one module package.

Precautions

  • The file name extension of the module package must be .MOD, and the file must be saved in the directory $_install_mod on the device.
  • The module package version must match the current system software version. Otherwise, the module package will fail to be installed.
  • The system allows you to install up to 16 modules.

Example

# Load the module package s5720hi.mod.

<HUAWEI> install-module s5720hi.mod
Info: Installing the module flash:/$_install_mod/s5720hi.mod..
.
Info: Succeeded in installing the module on the master board....

# Configure the module package to be loaded during next startup.

<HUAWEI> install-module s5720hi.mod next-startup
Info: The result will be shown in several minutes. Please wait for a moment.....
...
Info: Succeeded in setting the next-startup module.

license active

Function

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

NOTE:

Only the S1720GW, S1720GWR, S1720X, S1720GW-E, S1720GWR-E, S1720X-E, S5720HI, S5720-28P-LI-AC, S5720-28P-PWR-LI-AC, S5720-52P-LI-AC, S5720-52P-PWR-LI-AC, S6720EI, and S6720S-EI support this command.

Format

license active file-name

Parameters

Parameter

Description

Value

file-name

Specifies the name of a license file.

file-name supports file name association. The disk where the file resides can be automatically associated.
  • Full help: All the disks of the device can be associated and displayed.
  • Partial help: The related disk and file can be associated and displayed after you enter a specified character string.

The value is a string of 5 to 64 characters without spaces.

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 master swtich activates the current license file and the system uses the new license file.

Prerequisites

The new license file has been uploaded to the device.

Follow-up Procedure

When the system restarts, the system activates the license file that was activated last time to ensure the license files are the same before and after restart.

Precautions

  • The license file must use .dat as file name extension and be saved to the default root directory in the storage of the device.
  • If no path is specified, the license file in the working path is activated by default.
  • If the specifications of the new license file are lower than those of the current license file (some functions are authorized in the current license file, but not in the new license file, or the new license file allows fewer resources than the current one), the system displays a message asking you whether to continue.
  • If the license is loaded and activated on the S5720-28P-LI-AC, S5720-28P-PWR-LI-AC, S5720-52P-LI-AC, and S5720-52P-PWR-LI-AC in V200R011C00 and later versions and the switch is restarted, configuration information will be lost in the following scenarios. Reconfigure the device and run the save command to save the configuration.
    1. In the standalone and stack systems, when the configuration file contains configurations implemented using commands in which GE uplink interfaces are specified and no key word interface is before the specified GE uplink interfaces in views excluding the interface view, such configurations are completely lost if the switch is restarted after the license is loaded.
    2. In the standalone and stack systems, when the configuration file contains configurations implemented using commands in which the key work interface is contained and the specified interfaces are GE uplink interfaces in views excluding the interface view, such configurations and configurations of the GE uplink interfaces are lost if the switch is restarted after the license is loaded.
    3. Assume that a stack system configuration file contains the configuration of a GE uplink port of a member switch. Load the license and restart the stack system. The GE uplink port configuration will be lost if this switch joins the stack system after the stack system is set up.

Example

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

<HUAWEI> license active license.dat

license emergency

Function

The license emergency command enables the emergency state for the license.

NOTE:

Only the S1720GW, S1720GWR, S1720X, S1720GW-E, S1720GWR-E, S1720X-E, S5720HI, S5720-28P-LI-AC, S5720-28P-PWR-LI-AC, S5720-52P-LI-AC, S5720-52P-PWR-LI-AC, S6720EI, and S6720S-EI support this command.

Format

license emergency

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

The system configuration is classified into maximum configuration, authorized configuration, and minimum configuration.

  • In maximum configuration, the maximum number of dynamic resource items are configured. Static resource items and function items are configured according to license configuration.
  • Authorization configuration means the functions and resources of the software configured on the basis of contract or special authorization. Authorized configuration depends on feature authorization of license files.
  • The minimum configuration is the default configuration when no activated license file exists in the system. The minimum configuration varies according to products.

Configurations are classified to limit the bearer capability of the system in different running status.

When you run the license emergency command to enable the emergency state for the license, the system is free from license control. In this case, the system can run with the maximum configuration of dynamic resources and the license-defined configuration of static resources and functions. When the validity period of the emergency state expires, dynamic resources are controlled by the license again. One version is provided with three validity periods of emergency state, each lasting for seven days.

The purpose for enabling the emergency state for the GTL license is disaster tolerance. If an earthquake takes place, for example, this mechanism protects users' services from being affected.

Precautions

  • The emergency state cannot be disabled manually.
  • The emergency state can only be enabled three times for each license, and the license can keep in emergency state for 7 days each time.
  • The next emergency state can be enabled only on the last day when the last emergency state expires.
  • After the emergency state is enabled, the device provides maximum number of resource control items contained in the loaded license. The device does not provide resource control items that are not contained in the loaded license even through the emergency state is enabled.

Example

# Enable the license emergency state.

<HUAWEI> license emergency
Warning: This operation will cause LCS into the EMERGENCY state. Continue? [Y/N]:y
Info: Emergency started cannot be stopped.
Related Topics

license revoke

Function

The license revoke command revokes a license file.

NOTE:

Only the S1720GW, S1720GWR, S1720X, S1720GW-E, S1720GWR-E, S1720X-E, S5720HI, S5720-28P-LI-AC, S5720-28P-PWR-LI-AC, S5720-52P-LI-AC, S5720-52P-PWR-LI-AC, S6720EI, and S6720S-EI support this command.

Format

license revoke

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

License is an authorization file. You can apply for, upgrade, or activate the license file to get corresponding user rights.

If new devices are deployed, you can purchase new licenses as needed to enable license-controlled features and functions on the devices. This reduces purchase costs. If the capacities of the existing devices need to be expanded, you can update the licenses used on the devices to enable more license-controlled features and functions.

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

  • When the existing license is going to expire, apply for a new license, upgrade, and activate the license. If the license has expired, the service modules are disabled and services are interrupted.

  • 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.

Example

# Revoke the current license file.

<HUAWEI> license revoke
Warning: The license will enter the Trial state and will not be activated again.
 Continue?[Y/N]: y
Related Topics

license verify

Function

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

NOTE:

Only the S1720GW, S1720GWR, S1720X, S1720GW-E, S1720GWR-E, S1720X-E, S5720HI, S5720-28P-LI-AC, S5720-28P-PWR-LI-AC, S5720-52P-LI-AC, S5720-52P-PWR-LI-AC, S6720EI, and S6720S-EI support this command.

Format

license verify file-name

Parameters

Parameter Description Value
file-name Specifies the name of a license file.
file-name supports file name association. The disk where the file resides can be automatically associated.
  • Full help: All the disks of the device can be associated and displayed.
  • Partial help: The related disk and file can be associated and displayed after you enter a specified character string.
The value is a string of characters without spaces.

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
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.

To make the patches become active, run the patch active all command again.

The active state can prevent a patch error from causing continuous faults of the system. If a patch has a bug and the patch is in the active state, restart the device to prevent the patch from taking effect.

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
Info: Finished synchronizing the patch package file and the patch configuration.

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

This command does not take effect in the current version. During the operation, if a bug is detected in a patch and the system software problem cannot be solved, run the patch delete all command to delete the patches in the patch area in the memory.

Example

# Deactivate patches on the current system.

<HUAWEI> patch deactive all
Warning: This function is no longer supported in the current version.

patch delete all

Function

The patch delete all command deletes patches on the current system.

Format

patch delete all

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

  • If you find errors in patches that have been loaded to the system, run this command to delete the patches to prevent patch errors from affecting system operating.
  • Before loading a non-incremental patch, run this command to delete the existing patches (if any). Otherwise, the non-incremental patch cannot be loaded.
  • After the patch is deleted, it is recommended that you restart the switch.

Example

# Delete all patches.

<HUAWEI> patch delete all
Warning: The device needs to restart after the patch is deleted.
This will delete the patch. Are you sure? [Y/N]

patch load

Function

The patch load command loads the patches to the patch areas in the system.

Format

patch load filename all [ active | run ]

Parameters

Parameter

Description

Value

filename

Specifies the path and file name of a patch package. The path can be an absolute path or a relative path.

file-name supports file name association. The disk where the file resides can be automatically associated.
  • Full help: All the disks of the device can be associated and displayed.
  • Partial help: The related disk and file can be associated and displayed after you enter a specified character string.

The value is a string of 5 to 64 case-insensitive characters without spaces. The file name must have an extension of .pat.

all

Loads the patches of all member switches in a stack.

-

active

Activates loaded patches.

-

run

Runs loaded patches.

-

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

When you load 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 any patch.

Prerequisites

The patch package has been uploaded to the root directory of the storage device.

Before loading a patch, the system must resolve the patch package, check the validity of the patch files in the patch package, and obtain the attributes such as the patch type and version of the patch file.

Precautions

The patch file cannot be reloaded. When you reload a patch, the system displays an error message.

After this command is run, the system loads all types of patches in the patch package.
  • If the active parameter is specified, the system activates the loaded patches directly. Then you can use the patch run all command to run the patches.
  • If the run parameter is specified, the system runs the loaded patches directly.

Example

# Load the patches to the patch area of the device and run the patches directly.

<HUAWEI> patch load patch.pat all run

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 patcheson 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: The result will be shown in several minutes. Please wait for a moment.....
...                                                                             
Info: Succeeded in resetting the next-startup patch state. 
Related Topics

rollback

Function

The rollback command rolls back the system to the previous version.

Format

rollback

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

If an error occurs during an upgrade and you need to cancel the upgrade, run the rollback command to roll back the system to the previous version. After the rollback, the configuration of the device is the same as the previous configuration.

Precautions

  • The rollback function takes effect only for an upgrade during which the reboot command is run to restart the device, and does not support other upgrade modes, such as the EasyDeploy upgrade and smooth stack upgrade. If the reboot command is run to complete an upgrade and then the system is upgraded using another mode, you can only run the rollback command to roll back the system to the latest version before the upgrade during which the reboot command is run. For example, if you run the reboot command to restart the device and upgrade the system from V1.0 to V1.1, and then upgrade the system to V1.2 using EasyDeploy, the system can only be rolled back to V1.0 when you run the rollback command to perform a system rollback.

  • If a device runs continuously for more than 48 hours after being upgraded, the rollback function does not take effect. If the device runs continuously for less than 48 hours and restarts, the system sets the remaining time to zero and the rollback function does not take effect. You can run the display rollback information command to check the remaining time for the rollback function to take effect.

  • If the system software, configuration file, or patch file required in the rollback is deleted using the delete (user view) command, the system prompts that the rollback function cannot be used when you run the rollback command.

If you run the rollback command to roll back the system software, the current configuration of the device will be lost. Therefore, exercise caution when deciding to run this command.

Prerequisites

The device contains the system software, configuration file, and patch file that are used after the rollback and displayed in the display rollback information command output.

Example

# Roll back the system to the previous version.

<HUAWEI> rollback
Info: Checking rollback version information...
Rollback software: flash:/basicsoft.cc
Rollback configuration: flash:/vrpcfg.zip
Rollback patch: NULL
Warning: The version running before the last reboot/reboot fast operation is performed will be restored, and the current configuration will be lost. Continue? [Y/N]:y
Related Topics

snmp-agent trap enable feature-name gtl

Function

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

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

For details about whether the trap function for the gtl module is enabled or disabled by default, see display snmp-agent trap feature-name gtl all.

NOTE:

Only S5720HI, S6720EI, and S6720S-EI supports this command.

Format

snmp-agent trap enable feature-name gtl [ trap-name { hwgtldefaultvalue | hwgtldefaultvaluecleared | hwgtlneardeadline | hwgtlneardeadlinecleared | hwgtlresourceusedup | hwgtlresourceusedupcleared | hwgtlesnmismatch | hwgtlesnmismatchcleared } ]

undo snmp-agent trap enable feature-name gtl [ trap-name { hwgtldefaultvalue | hwgtldefaultvaluecleared | hwgtlneardeadline | hwgtlneardeadlinecleared | hwgtlresourceusedup | hwgtlresourceusedupcleared | hwgtlesnmismatch | hwgtlesnmismatchcleared } ]

Parameters

Parameter

Description

Value

trap-name Enables the traps of GTL 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 trap when the trap, indicating that the system used the default license configurations, was cleared. -
hwgtlneardeadline Enables the device to send trap when the system date was approaching the deadline of the service module defined in the license. -
hwgtlneardeadlinecleared Enables the device to send a trap when the license no longer approached the deadline. -
hwgtlresourceusedup Enables the device to send a trap when the percentage of the resources used by the service module was not less than the threshold defined by the license. -
hwgtlresourceusedupcleared Enables the device to send a trap when the number of resources used by the service module fell below the threshold. -
hwgtlesnmismatch Enables the device to send a trap when the device ESN and the license ESN do not match. -
hwgtlesnmismatchcleared Enables the device to send a trap when the device ESN and the license ESN match again. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

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

Example

# Enable the trap function of the gtl module.

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

snmp-agent trap enable feature-name ssp_adp

Function

The snmp-agent trap enable feature-name ssp_adp command enables the trap function for the SSP_ADP module.

The undo snmp-agent trap enable feature-name ssp_adp command disables the trap function for the SSP_ADP module.

By default, the trap function is enabled for the SSP_ADP module.

Format

snmp-agent trap enable feature-name ssp_adp [ trap-name hwpatchdelneedrestarttrap ]

undo snmp-agent trap enable feature-name ssp_adp [ trap-name hwpatchdelneedrestarttrap ]

Parameters

Parameter

Description

Value

trap-name

Enables or disables the trap function for a specified event of the SSP_ADP module.

-

hwpatchdelneedrestarttrap

Enables the switch to send a Huawei proprietary trap when the patch in the system is deleted.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

After the trap function is enabled, the switch generates traps during operation and sends the traps to the NMS through the SNMP module. If the trap function is disabled, the switch does not generate traps and the SNMP module does not send traps to the NMS.

Example

# Enable the hwpatchdelneedrestarttrap trap function for the SSP_ADP module.

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable feature-name ssp_adp trap-name hwpatchdelneedrestarttrap

uninstall-module

Function

The uninstall-module command uninstalls module packages.

Format

uninstall-module file-name [ next-startup ]

uninstall-module next-startup all

Parameters

Parameter Description Value
file-name

Specifies the name of a module package to be uninstalled.

The value is a string of 5 to 64 case-insensitive characters without spaces.

next-startup

Clears the module list for next startup.

-

all

Clears the module list for next startup.

-

Views

User view

Default Level

3: Management level

Usage Guidelines

If some services or functions are not required, run the uninstall-module command to uninstall the corresponding modules running in the system.

Example

# Uninstall the module package s5720hi.mod from the system.

<HUAWEI> uninstall-module s5720hi.mod
This will uninstall the module. Are you sure? [Y/N]y....
Info: Succeeded in uninstalling the module on the master board.

# Clear a specified module package in the next startup module list.

<HUAWEI> uninstall-module s5720hi.mod next-startup
Info: The result will be shown in several minutes. Please wait for a moment.....
...
Info: Succeeded in resetting the next-startup module.
Translation
Download
Updated: 2019-04-18

Document ID: EDOC1000178165

Views: 42054

Downloads: 1103

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