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

S12700 V200R013C00 Command Reference

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).
USB-based Deployment Configuration Commands

USB-based Deployment Configuration 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.

display device usb-deployment configuration

Function

The display device usb-deployment configuration command displays the configuration of USB-based deployment.

Format

display device usb-deployment configuration

Parameters

None

Views

All views

Default Level

3: Management level

Usage Guidelines

After the USB-based deployment configuration is completed, you can run this command to view related configuration information, including whether USB-based deployment is enabled, configuration file encryption password, and whether HMAC check is enabled.

Example

# Display the configuration of USB-based deployment.

<HUAWEI> display device usb-deployment configuration
USB-deployment: disable
Config-file password: %#%#:(t!-9uZcGmZ2T=F-Ch'1^gu,]|nmGSTzYJoqi89%#%#
HMAC: enable
Table 2-23  Description of the display device usb-deployment configuration command output

Item

Description

USB-deployment

Whether USB-based deployment is enabled.
  • disable: indicates that USB-based deployment is disabled on an interface.

  • enable: indicates that USB-based deployment is enabled on an interface.

Config-file password

Configuration file encryption password. When no password is configured, this field is empty.

HMAC

Whether HMAC check is enabled.
  • disable: indicates that HMAC check is disabled on an interface.

  • enable: indicates that HMAC check is enabled on an interface.

display snmp-agent trap feature-name usbloadtrap all

Function

display snmp-agent trap feature-name usbloadtrap all command displays the status of all traps on the USBLOADTRAP module.

Format

display snmp-agent trap feature-name usbloadtrap all

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After the trap function of a specified feature is enabled, you can run the display snmp-agent trap feature-name usbloadtrap all command to check the status of all traps of USBLOADTRAP. You can use the snmp-agent trap enable feature-name usbloadtrap command to enable the trap function of USBLOADTRAP.

Prerequisites

SNMP has been enabled. For details, see snmp-agent.

Example

# Display all the traps of the USBLOADTRAP module.

<HUAWEI>display snmp-agent trap feature-name usbloadtrap all
------------------------------------------------------------------------------                                                      
Feature name: USBLOADTRAP                                                                                                           
Trap number : 2                                                                                                                     
------------------------------------------------------------------------------                                                      
Trap name                       Default switch status   Current switch status                                                       
hwUSBPlugIn                     on                      on                                                                          
hwUSBPlugOut                    on                      on
Table 2-24  Description of the display snmp-agent trap feature-name usbloadtrap all command output

Item

Specification

Feature name

Name of the module that the trap belongs to.

Trap number

Number of traps.

Trap name

Trap name. Traps of the USBLOADTRAP module include:

  • hwUSBPlugIn: A USB flash drive is installed.

  • hwUSBPlugOut: A USB flash drive is removed.

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.

set device usb-deployment disable

Function

The set device usb-deployment disable command disables the USB-based deployment function.

The undo set device usb-deployment disable command enables the USB-based deployment function.

By default, the USB-based deployment function is disabled.

Format

set device usb-deployment disable

undo set device usb-deployment disable

Parameters

None

Views

System view

Default Level

3: Management level

Usage Guidelines

By default, the USB-based deployment function is disabled. However, if a device has no configuration, the USB-based deployment function is always enabled.
NOTE:

On an unconfigured switch, both the configuration files for current startup and next startup are not specified. That is, the Startup saved-configuration file and Next startup saved-configuration file are NULL in the display startup command output.

Example

# Disable the USB-based deployment function.

<HUAWEI> system-view
[HUAWEI] set device usb-deployment disable

# Enable the USB-based deployment function.

<HUAWEI> system-view
[HUAWEI] undo set device usb-deployment disable
Warning: The function of USB deployment in this device will be enabled. Continue
? [Y/N]:y                                                                       

set device usb-deployment config-file password

Function

The set device usb-deployment config-file password command configures an encryption password for the configuration file used in USB-based deployment.

The undo set device usb-deployment config-file password command deletes the encryption password for the configuration file used in USB-based deployment.

By default, no encryption password is configured.

NOTE:

If upgrade files for USB-based deployment include a configuration file, it is recommended that you run this command to configure an encryption password for the configuration file and compress the configuration file using the configured password before saving it in the USB flash drive. This configuration improves security.

Format

set device usb-deployment config-file password password

undo set device usb-deployment config-file password

Parameters

Parameter Description Value
password Specifies the password used for encrypting the configuration file.
The value is a string of 1 to 64 characters or a string of 48 to 108 characters.
  • If the password is in plain text, it is a string of 1 to 64 case-sensitive characters and must be a combination of at least two of the following: letters, digits, and special characters.
  • If the password is in cipher text, it is a string of 48 to 108 characters.
The password is displayed in cipher text in the configuration file regardless of whether you enter it in plain or cipher text.

Views

System view

Default Level

3: Management level

Usage Guidelines

If a password is configured using the set device usb-deployment config-file password password command, you need to compress and encrypt the configuration file (if any) with this password and save the compressed file to a specified directory in the USB flash drive. The device cannot compress a .zip configuration file. If such a configuration file is used, decompress the file, use the configured password to compress it, and save it in the USB flash drive.

A user with a level lower than the management level cannot query the password configured using this command. If this user query the configuration file, the password is displayed as asterisks (******).

Example

# Set the encryption password for the configuration file used in USB-based deployment to Pwd123456.

<HUAWEI> system-view
[HUAWEI] set device usb-deployment config-file password Pwd123456

set device usb-deployment hmac

Function

The set device usb-deployment hmac command enables hashed message authentication code (HMAC) check for the configuration file used for USB-based deployment.

The undo set device usb-deployment hmac command disables HMAC check for the configuration file used for USB-based deployment.

By default, HMAC check is disabled.

NOTE:

If upgrade files for USB-based deployment include a configuration file, it is recommended that you enable HMAC check to improve security of the configuration file.

Format

set device usb-deployment hmac

undo set device usb-deployment hmac

Parameters

None

Views

System view

Default Level

3: Management level

Usage Guidelines

Prerequisites

Before enabling the HMAC check function, run the set device usb-deployment config-file password command to configure an encryption password for the configuration file used for USB-based deployment.

Applications

If upgrade files for USB-based deployment include a configuration file, you can enable HMAC check to ensure validity of the configuration file to be loaded. After HMAC check is enabled on a device, the device uses the password configured by the set device usb-deployment config-file password command to calculate the HMAC for the configuration file, and compares the calculated value with the HMAC field value in the index file. If the two values are the same, the configuration file is considered valid and loaded to the device. If not, the configuration file is considered invalid and cannot be loaded.

Example

# Enable HMAC check for the configuration file used for USB-based deployment.

<HUAWEI> system-view
[HUAWEI] set device usb-deployment hmac

set device usb-deployment password

Function

The set device usb-deployment password command sets an authentication password for USB-based deployment.

The undo set device usb-deployment password command deletes the authentication password for USB-based deployment.

Format

set device usb-deployment password cipher password (only for command compatibility after an upgrade and not configurable)

undo set device usb-deployment password

Parameters

Parameter Description Value
cipher password Specifies the authentication password for USB-based deployment.

The value is a cipher text string of 68 characters.

Views

System view

Default Level

3: Management level

Usage Guidelines

The set device usb-deployment password cipher password command is only used to ensure command compatibility after an upgrade. You cannot use this command to set a password but can use the undo set device usb-deployment password command to delete the password configured in the earlier version.

A user with a level lower than the management level cannot query the password configured using this command. If this user query the configuration file, the password is displayed as asterisks (******).

Example

# Delete the authentication password for USB-based deployment.

<HUAWEI> system-view
[HUAWEI] undo set device usb-deployment password

snmp-agent trap enable feature-name usbloadtrap

Function

snmp-agent trap enable feature-name usbloadtrap command enables the trap function for the USBLOADTRAP module.

undo snmp-agent trap enable feature-name usbloadtrap command disables the trap function for the USBLOADTRAP module.

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

Format

snmp-agent trap enable feature-name usbloadtrap [ trap-name { hwusbplugin | hwusbplugout } ]

undo snmp-agent trap enable feature-name usbloadtrap [ trap-name { hwusbplugin | hwusbplugout } ]

Parameters

Parameter

Description

Value

trap-name

Enables or disables the trap function for the specified event.

-

hwusbplugin

Enables the trap function when a USB flash drive is installed.

-

hwusbplugout

Enables the trap function when a USB flash drive is removed.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

When the trap function is enabled, the device generates traps during running and sends traps to the NMS through SNMP. When the trap function is not enabled, the device does not generate traps and the SNMP module does not send traps to the NMS.

You can specify trap-name to enable the trap function for one or more events.

Example

# Enable the hwusbplugin trap of the USBLOADTRAP module.

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable feature-name usbloadtrap trap-name hwusbplugin
Translation
Download
Updated: 2019-04-09

Document ID: EDOC1100065659

Views: 127629

Downloads: 88

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