• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 新华三人才研学中心
  • 关于我们

09 安全命令参考

目录

06-User Profile命令

本章节下载 06-User Profile命令  (93.6 KB)

docurl=/cn/Service/Document_Software/Document_Center/Switches/Catalog/CE3000/CE3000-EI/Command/Command_Manual/H3C_CE3000-32F-EI_CR-Release_18xx-6W100/09/201403/822574_30005_0.htm

06-User Profile命令


1 User Profile

1.1  User Profile配置命令

1.1.1  display user-profile

【命令】

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

【视图】

任意视图

【缺省级别】

2:系统级

【参数】

|:使用正则表达式对显示信息进行过滤。有关正则表达式的详细介绍,请参见“基础配置指导”中的“CLI”。

begin:从包含指定正则表达式的行开始显示。

exclude:只显示不包含指定正则表达式的行。

include:只显示包含指定正则表达式的行。

regular-expression:表示正则表达式,为1~256个字符的字符串,区分大小写。

【描述】

display user-profile命令用来显示当前已创建的全部User Profile的信息。

【举例】

# 显示全部User Profile的状态信息。

<Sysname> display user-profile

Status    User profile

enabled   a123

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

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

表1-1 display user-profile命令显示信息描述表

字段

描述

Status

当前User Profile的状态(enabled表示已经激活,disabled表示未激活)

User profile

User Profile的名称

Total user profiles

当前已创建的User Profile总数

Enabled user profiles

处于激活状态的User Profile总数

 

1.1.2  user-profile enable

【命令】

user-profile profile-name enable

undo user-profile profile-name enable

【视图】

系统视图

【缺省级别】

2:系统级

【参数】

profile-name:表示User Profile的名称,为1~31个字符的字符串,只能包含英文字母(a~z或A~Z)、数字、下划线,且必须以英文字母开始,区分大小写。

【描述】

user-profile enable命令用来激活已创建的User Profile。undo user-profile enable命令用来禁用指定的User Profile。

缺省情况下,创建的User Profile处于未激活(禁用)状态。

需要注意的是:

·     使用该命令时,指定的User Profile必须已经创建成功,否则,该命令执行失败。

·     激活的User Profile才能被用户使用,但其中的配置内容不允许修改,禁用后才可以被修改或删除。

·     禁用User Profile将导致正在使用该User Profile的用户被强制下线。

【举例】

# 激活名称为a123的User Profile。

<Sysname> system-view

[Sysname] user-profile a123 enable

1.1.3  user-profile

【命令】

user-profile profile-name

undo user-profile profile-name

【视图】

系统视图

【缺省级别】

2:系统级

【参数】

profile-name:表示User Profile的名称,为1~31个字符的字符串,只能包含英文字母[a-z,A-Z]、数字、下划线,且必须以英文字母开始,区分大小写。User Profile的名称必须全局唯一。

【描述】

user-profile命令用来创建User Profile并进入相应的user-profile视图,如果指定的User Profile已经存在,则直接进入相应的user-profile视图,不需要再创建User Profile。undo user-profile命令用来删除已存在的、并处于未激活状态的User Profile。

缺省情况下,设备上不存在User Profile。

需要注意的是,如果User Profile处于激活状态,则不能删除该User Profile。

相关配置可参考命令user-profile enable

【举例】

# 创建名称为a123的User Profile。

<Sysname> system-view

[Sysname] user-profile a123

[Sysname-user-profile-a123]

# 进入User Profile a123的命令视图。

<Sysname> system-view

[Sysname] user-profile a123

[Sysname-user-profile-a123]

 

不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们