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

Fat AP and Cloud AP V200R010C00 Command Reference

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).
command-privilege level

command-privilege level

Function

The command-privilege level command sets the command level in a specified view.

The undo command-privilege command restores the default command level.

By default, each command in each view has a default command level.

Format

command-privilege level level view view-name command-key

undo command-privilege view view-name command-key

Parameters

Parameter Description Value
level level Specifies the command level. The value is an integer that ranges from 0 to 15.
view view-name

Specifies the view name. You can enter a question mark (?) in the terminal GUI to obtain all view names in the command view.

-
command-key

Specifies a command. The command must be entered manually because automatic command line completion is not supported.

-

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

The system divides commands into four levels and sets the command level in the specified view. The device administrator can change the command level as required, so that a lower-level user can use some high-level commands. The device administrator can also change the command level to a larger value to improve device security.

You can run the command-privilege level command to change the level of one command line based on Table 2-1.
Table 2-1  Common Views
View View Name
cli_8f All views
user User view
system System view
aaa AAA view
eth-trunk Eth-Trunk interface view
gigabitethernet GE interface view
multige MultiGE interface view
loopBack Loopback interface view
vlanif VLANIF interface view

Precautions

You are advised not to change the default command level. If you need to change it, consult with professional personnel to ensure that routine operations and maintenance are not affected and security risk is avoided.

When you run this command to lower the level of a command, pay attention to relative commands in the upper-layer view of the command. If the level of commands in the upper-layer view is lower the current command level, users of the corresponding level cannot run the command for which the level is lowered because the users cannot enter the upper-layer view.

The rules for using this command to set the command level of a specified view are as follows:

  • When you degrade the target command, all keywords in the command are degraded.
  • When you upgrade the target command, only the last keyword in the command is upgraded.
  • When you set a level for the target command, the levels of all commands (in the same view) starting with this command are changed.
  • When you set a level for the target command, the keyword level in other commands having the same index as the keyword whose level is changed is also changed.
  • If the level of keywords that have the same index is modified for multiple times, the latest configured level takes effect.
You cannot change the command level of some commands, including:
  • config lock
  • config unlock interval time
  • diagnose
  • quit
  • return
  • cls

Example

# Set the privilege level of the save command to 5.
<Huawei> system-view
[Huawei] command-privilege level 5 view user save
Related Topics
Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 204510

Downloads: 122

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