07-Security Command Reference

HomeSupportReference GuidesCommand ReferencesH3C WX Series Access Controllers Command References(R3308 R2308)-6W10707-Security Command Reference
06-User Profile Commands
Title Size Download
06-User Profile Commands 87.17 KB

display user-profile

Syntax

display user-profile [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

2: System level

Parameters

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display user-profile to display information about all user profiles that have been created.

Examples

# Display information about all user profiles that have been created.

<Sysname> display user-profile

Status    User profile

enabled   a123

        ----Total user profiles:        1-------

        ----Enabled user profiles:      1-------

Table 1 Command output

Field

Description

Status

Status of the user profile:

·     enabled.

·     disabled.

User profile

User profile name.

Total user profiles

Total number of user profiles that have been created.

Enabled user profiles

Total number of user profiles that have been enabled.

 

user-profile enable

Syntax

user-profile profile-name enable

undo user-profile profile-name enable

View

System view

Default level

2: System level

Parameters

profile-name: Specifies the name of a user profile that has been created. The name takes a case-sensitive string of 1 to 31 characters. It can only contain English letters, digits, and underlines, and it must start with an English letter.

Description

Use user-profile enable to enable a user profile that has been created. If the user profile does not exist, the command fails. Only enabled user profiles can be applied to authenticated users.

Use undo user-profile enable to disable the specified user profile. Disabling a user profile logs out users that are using the user profile. To edit or remove the configurations in a user profile, disable the user profile first.

By default, a created user profile is disabled.

Examples

# Enable user profile a123.

<Sysname> system-view

[Sysname] user-profile a123 enable

user-profile

Syntax

user-profile profile-name

undo user-profile profile-name

View

System view

Default level

2: System level

Parameters

profile-name: Assigns a name to the user profile. The name is a case-sensitive string of 1 to 31 characters. It can only contain English letters, digits, and underlines, and it must start with an English letter. A user profile name must be globally unique.

Description

Use user-profile to create a user profile and enter the user profile view. If the specified user profile has been created, you enter the user profile view directly.

Use undo user-profile to remove an existing disabled user profile. You cannot remove a user profile that is enabled.

By default, no user profiles exist on the device.

Related commands: user-profile enable.

Examples

# Create user profile a123.

<Sysname> system-view

[Sysname] user-profile a123

[Sysname-user-profile-a123]

# Enter the user profile view of a123.

<Sysname> system-view

[Sysname] user-profile a123

[Sysname-user-profile-a123]

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网