Part 7 - ACL - QoS

09-User Profile Commands

Chapters Download  (63.23 KB)

09-User Profile Commands


User Profile Configuration Commands

display user-profile

Syntax

display user-profile

View

Any view

Default Level

2: System level

Parameters

None

Description

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

Examples

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

<Sysname> display user-profile

Status      User profile                        AuthType

disabled   a123                                  PORTAL

enabled    b123                                  DOT1X

        ----Total user profiles:        2-------

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

Table 1-1 display user-profile command output description

Field

Description

Status

Status of the current user profile:

l  enabled

l  disabled

User profile

User profile name

AuthType

Authentication type of the current user profile, which may take the following values:

l  DOT1X: 802.1X authentication

l  PORTAL: portal authentication

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: Use profile name, a case sensitive string of 1 to 31 characters. It can only contain English letters, digits, underlines, and must start with an English letter.

Description

Use the user-profile enable command to enable a user profile that has been created.

Use the undo user-profile enable command to disable the specified user profile.

By default, a created user profile is disabled.

Note that:

l   When you execute the command, the specified user profile must be created; otherwise, the command fails.

l   Only enabled user profiles can be applied for authenticated users.

l   You cannot modify or remove the configurations in a user profile until the user profile is disabled.

l   Disabling a user profile logs out the users that are using the user profile.

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: Use profile name, a case sensitive string of 1 to 31 characters. It can only contain English letters, digits, underlines, and must start with an English letter. A user profile name must be globally unique.

Description

Use the user-profile command to create a user profile and enter the user profile view. If the specified user profile already exists, you directly enter the user profile view.

Use the undo user-profile command to remove an existing disabled user profile.

By default, no user profiles exist on the device.

Note that an enabled user profile cannot be removed.

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]

H3C reserves the right to modify its collaterals without any prior notice. For the latest information of the collaterals, please consult H3C sales or call 400 hotline.