- Table of Contents
-
- 07-Security Command Reference
- 00-Preface
- 01-AAA Commands
- 02-802.1X Commands
- 03-MAC Authentication Commands
- 04-Portal Commands
- 05-Port Security Commands
- 06-User Profile Commands
- 07-Password Control Commands
- 08-Public Key Commands
- 09-PKI Commands
- 10-SSH Commands
- 11-SSL Commands
- 12-SSL VPN Commands
- 13-TCP Attack Protection Commands
- 14-ARP Attack Protection Commands
- 15-IPsec Commands
- 16-ALG Commands
- 17-Firewall Commands
- 18-Session Management Commands
- 19-Web Filtering Commands
- 20-User Isolation Commands
- 21-Source IP Address Verification Commands
- 22-FIPS Commands
- 23-Protocol Packet Rate Limit Commands
- 24-Attack detection and protection commands
- Related Documents
-
Title | Size | Download |
---|---|---|
06-User Profile Commands | 58.46 KB |
User profile configuration commands
display user-profile
Use display user-profile to display information about all existing user profiles.
Syntax
display user-profile [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command 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.
Examples
# Display information about all existing user profiles.
<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 or 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
Use user-profile enable to enable a user profile that has been created.
Use undo user-profile enable to disable the specified user profile.
Syntax
user-profile profile-name enable
undo user-profile profile-name enable
Default
A created user profile is disabled.
Views
System view
Default command level
2: System level
Parameters
profile-name: Specifies a user profile name, 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. The user profile must already exist.
Usage guidelines
Only enabled user profiles can be applied to authenticated users.
Disabling a user profile logs out users that are using the user profile. To edit or remove the configurations in a user profile, first disable the user profile.
Examples
# Enable user profile a123.
<Sysname> system-view
[Sysname] user-profile a123 enable
user-profile
Use user-profile to create a user profile and enter user profile view. If the specified user profile has been created, you directly enter user profile view.
Use undo user-profile to remove an existing disabled user profile. You cannot remove a user profile that is enabled.
Syntax
user-profile profile-name
undo user-profile profile-name
Default
No user profiles exist on the device.
Views
System view
Default command 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.
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]
Related commands
user-profile enable