S1720, S2700, S5700, S6720 V200R011C10 命令参考

本文档介绍了设备中各特性的配置命令,包括每条命令的功能、格式、参数、视图、缺省级别、使用指南、举例和相关命令。

EasyDeploy命令

EasyDeploy命令

命令支持情况

EasyDeploy特性中,Commander和Client角色设备的支持情况如下:

角色 支持的形态 支持的版本 支持管理Client的数量
Commander

S5700HI、S5710HI和S6700

V200R003C00版本至V200R005C00版本 128

S5700EI、S5710EI和S5700SI

64
S5720HI V200R006C00版本及以后版本 128
S5720EI V200R007C00版本及以后版本 128

S6720EI

V200R008C00版本及以后版本 128

S6720S-EI

V200R009C00版本及以后版本 128
Client
  • 盒式交换机全形态支持(S1720GFR、S1720GW-E、S1720GWR-E、S1720X-E除外)
  • 框式交换机全形态支持
V200R003C00版本及以后版本 -

activate-file

命令功能

activate-file命令用来在Commander上配置文件激活的方式和时间。

undo activate-file命令用来取消在Commander上配置的文件激活的方式和时间,使其恢复成缺省情况。

缺省情况下,如果下载的文件中包括系统软件(*.cc),则采用复位设备的方式立即激活文件。另外在批量升级场景中,如果还下载了配置文件,也会采用复位设备的方式立即激活文件。

命令格式

activate-file { reload | { in time | delay delay-time } } *

undo activate-file [ reload | in [ time ] | delay [ delay-time ] ]

参数说明

参数 参数说明 取值
reload 指定复位方式激活文件。 -
in time 指定激活文件的时间。 格式是HH:MM,24小时制,HH表示小时,取值范围是0~23,MM表示分钟,取值范围是0~59。
delay delay-time 指定延时激活的时间。 整数形式,取值范围是0~86400,单位为秒,缺省值为0。

视图

Easy-Operation视图、Easy-Operation group视图

缺省级别

3:管理级

使用指南

应用场景

当Client下载文件后采用缺省的方式激活文件,会对现网其他业务造成影响,特别是在批量升级场景中,升级的设备可能都承载着大量业务,如果进行复位,则会造成业务中断。所以建议通过此命令将激活文件的操作设定在业务量少的时间点。

注意事项

  • 如果指定reload参数,则Client在激活文件时,不需要判断是否包括了系统软件文件,都会进行复位操作。
  • 如果执行命令undo activate-file,则激活方式和时间都将恢复成缺省值。如果undo activate-file命令分别指定reloadindelay,则是取消相应的配置将其恢复成缺省情况。
  • 文件激活方式既可以在Easy-Operation全局视图下配置,也可以在Easy-Operation group视图下配置。如果Client能匹配到group,则以group视图下配置的生效。

使用实例

# 配置激活文件的方式为复位设备的方式。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] activate-file reload

# 配置延时1小时后激活文件。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] activate-file delay 3600

# 配置在凌晨1:00,采用复位的方式激活文件。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] activate-file in 1:00 reload

# 配置匹配group F1的Client在凌晨1:00,采用复位的方式激活文件。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] group custom ip-address F1
[HUAWEI-easyoperation-group-custom-F1] activate-file in 1:00 reload

backup configuration interval

命令功能

backup configuration interval命令用来在Commander上配置自动备份配置文件的功能,并且可以指定备份时间间隔及备份方式。

undo backup configuration命令用来将自动备份配置文件的方式恢复为缺省情况。

缺省情况下,不自动备份配置文件。

命令格式

backup configuration interval interval [ duplicate ]

undo backup configuration [ interval [ interval ] ] [ duplicate ]

参数说明

参数 参数说明 取值
interval 指定备份配置文件的时间间隔。

整数形式,取值范围是0~720,单位小时。

缺省值为0,表示不自动备份配置文件。

duplicate

指定备份方式为保存副本。即不覆盖服务器上原来的配置文件,而保存成另外一个配置文件。

如果不指定该参数,默认备份方式为覆盖原配置文件。

-

视图

Easy-Operation视图

缺省级别

3:管理级

使用指南

应用场景

在故障替换场景中,当新Client替换了故障Client后,新Client必须要获取到原故障Client的实时配置文件,将故障带来的影响降至最小。所以需要配置此功能,将Client的配置文件自动进行备份至文件服务器。

此命令必须在故障发生前就已在Commander上配置,所以建议部署EasyDeploy网络时配置此功能。

前置条件

在执行此命令前,必须先通过tftp-server/sftp-server/ftp-server命令配置文件服务器信息。

注意事项

  • 使能自动备份功能后,此Commander管理的所有Client都会使能自动备份配置文件的功能。
  • 如果需要取消自动备份的功能,可以执行命令undo backup configuration [ interval [ interval ] ]或undo backup configuration interval duplicate,也可以将时间间隔设置为0。
  • 如果需要将备份方式由保存副本改变为覆盖原配置文件,可以执行命令undo backup configuration duplicate
  • 配置文件保存的命名规则:

    • 如果备份方式为保存副本,则副本文件名的命名规则是:vrpcfg-MAC地址-年-月-日-时-分-秒.XXX,扩展名XXX以Client上启动配置文件的扩展名为准。例如:启动配置文件为“vrpcfg.zip”,则备份的配置文件副本名称为“vrpcfg-MAC地址-年-月-日-时-分-秒.zip”。

    • 如果备份方式为覆盖原配置文件,则文件名的命名规则是:vrpcfg-MAC地址.XXX,扩展名XXX以Client上启动配置文件的扩展名为准。

使用实例

# 配置自动备份配置文件的时间间隔为12小时,备份方式为覆盖原配置文件。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] backup configuration interval 12

# 配置取消自动备份配置文件的功能。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] backup configuration interval 0
Warning: This command will cancel the function of backing up configuration. Cont
inue?[Y/N]:y
[HUAWEI-easyoperation]

batch-cmd begin

命令功能

batch-cmd begin命令用来开始在线编辑命令行脚本。

命令格式

batch-cmd begin

参数说明

视图

Easy-Operation视图

缺省级别

3:管理级

使用指南

使用场景

在批量配置设备场景中,使用此命令开始在线编辑命令行脚本,命令录入完成后,使用系统快捷键Ctrl+C退出编辑。退出编辑以后,如果再次执行此命令开始在线编辑命令行脚本,原有已录入的命令行将被清除。

注意事项
  • 同一时间,只允许一名网络管理员在线编辑命令行脚本。
  • 命令行脚本编辑模式下,30秒未操作则自动退出编辑模式返回到Easy-Operation视图。

使用实例

# 在线编辑命令行脚本。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] batch-cmd begin
Info: Begin to edit batch commands. Press CTRL+C to abort this session.
system-view
vlan batch 10 20
ndp enable
ntdp enable                                                                
              
[HUAWEI-easyoperation]

clear topology-error-info

命令功能

clear topology-error-info命令用来清除拓扑中的问题链路信息。

命令格式

clear topology-error-info

参数说明

视图

集群视图

缺省级别

2:配置级

使用指南

本命令只能在Commander交换机上执行。

解决Client交换机的故障后,需要手工执行本命令,清除拓扑信息中的问题链路信息。可以使用display cluster-topology-info命令查看拓扑信息。

使用实例

# 清除问题链路及其子链路。

<HUAWEI> system-view
[HUAWEI] cluster
[HUAWEI-cluster] display cluster-topology-info
The topology information about the cluster:
<-->:normal device         <++>:candidate device         <??>:lost device
-------------------------------------------------------------------------
Total topology node number is 3.
[HUAWEI: Root-00e0-fcb8-d6b6]
|-(GigabitEthernet0/0/2)<??>(GigabitEthernet0/0/1)[0018-8267-7f7d]
|-(GigabitEthernet0/0/3)<-->(GigabitEthernet0/0/3)[00e0-0003-0003]
[HUAWEI-cluster] clear topology-error-info
[HUAWEI-cluster] display cluster-topology-info
The topology information about the cluster:
<-->:normal device         <++>:candidate device         <??>:lost device
-------------------------------------------------------------------------
Total topology node number is 2.
[HUAWEI: Root-00e0-fcb8-d6b6]
|-(GigabitEthernet0/0/3)<-->(GigabitEthernet0/0/3)[00e0-0003-0003] 

client

命令功能

client命令用来在Commander上增加或修改Client信息库中的Client信息。

undo client命令用来在Commander上删除Client信息库中的Client信息。

缺省情况下,Client信息库中没有Client信息。

命令格式

client [ client-id ] { { mac-address mac-address | esn esn } | system-software file-name [ version ] | patch file-name | configuration-file file-name | web-file file-name | license file-name | { custom-file file-name } &<1-3> } *

undo client client-id [ mac-address [ mac-address ] | esn [ esn ] | system-software [ file-name [ version ] ] | patch [ file-name ] | configuration-file [ file-name ] | web-file [ file-name ] | license [ file-name ] | custom-file [ file-name ] ]

参数说明

参数 参数说明 取值
client-id 指定Client的ID,用来标识一台Client。如果未指定此参数,则系统会自动分配一个当前最小且未被分配的ID。 整数形式。取值由Commander上可以支持的Client数量决定。

请参考Commander支持管理Client的数量

mac-address mac-address 指定Client的MAC地址。 格式为H-H-H。
esn esn 指定Client的ESN号。 字符串格式,不区分大小写,不支持空格,长度范围是10~32。
system-software file-name 指定Client需要加载的系统软件名称(*.cc)。 字符串格式,不区分大小写,不支持空格,长度范围是4~48。
version

指定系统软件的版本号,例如:V200R011C10。如果此版本号与Client当前运行的系统软件版本号一致时,则不会进行系统软件的升级。

字符串格式,不区分大小写,不支持空格,长度范围是11~32。
patch file-name 指定Client需要加载的补丁文件名称(*.pat)。 字符串格式,不区分大小写,不支持空格,长度范围是5~48。
configuration-file file-name 指定Client需要加载的配置文件名称(*.zip或*.cfg)。 字符串格式,不区分大小写,不支持空格,长度范围是5~48。
web-file file-name 指定Client需要加载的Web网页文件名称(*.web.7z或*.web.zip)。 字符串格式,不区分大小写,不支持空格,长度范围是8~64。
license file-name 指定Client需要加载的License文件名称(*.dat)。
说明:

当前并不支持在Easy-Operation全局视图中获取License文件信息,仅可以配置,但不生效。

字符串格式,不区分大小写,不支持空格,长度范围是5~64。
custom-file file-name

指定Client需要加载的自定义文件名称。

支持加载3个自定义文件,以空格隔开。

字符串格式,不区分大小写,不支持空格,长度范围是1~64。

视图

Easy-Operation视图

缺省级别

3:管理级

使用指南

应用场景

在空配置部署场景中,当Client数量不多,可以通过此命令一条一条添加Client信息保存至Commander上的Client信息库。

注意事项

  • Client信息库的匹配原则是Client的MAC地址或ESN序列号是否在此信息库中,所以Client与MAC地址或ESN序列号的匹配关系必须要配置。当Client在此信息库中匹配上,则会根据Client ID,获取相同ID的其他信息,包括系统软件名、补丁文件名等等。
  • Client与MAC地址或ESN序列号的匹配关系及此Client需要下载的各种文件信息可以通过此命令一次配置完成,也可以多次分别配置完成。
  • 如果需要删除某个Client的所有信息,可直接执行命令undo client client-id。如果只是需要删除某项信息,则执行相关信息的undo命令。

    指定参数删除某项信息时,该undo命令仅对手工配置的Client生效。

  • 由于不同的Commander支持Client的数量是不一样的,因此对Client信息库中添加数据时,受此规格的限制。
  • 所有文件名可以指定路径。

使用实例

# 添加一条MAC地址为0102-1122-3333、配置文件为vrpcfg.zip的client信息,文件路径为“/configfile/”。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] client mac-address 0102-1122-3333 configuration-file configfile/vrpcfg.zip

# 添加一条Client ID为3、ESN序列号为210235165110A6000619、系统软件名为test.cc、自定义文件名header.txt和aaa.bat的client信息。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] client 3 esn 210235165110A6000619
[HUAWEI-easyoperation] client 3 system-software test.cc
[HUAWEI-easyoperation] client 3 custom-file header.txt custom-file aaa.bat

# 删除client ID为4的配置文件名信息。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] undo client 4 configuration-file

# 删除client ID为5的所有信息。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] undo client 5

client aging-time

命令功能

client aging-time命令用来在Commander上配置Client信息库老化丢失状态Client的功能,并指定老化时间。

undo client aging-time命令用来在取消在Commander上配置Client信息库老化丢失状态Client的功能。

缺省情况下,Commander上未配置Client信息库老化丢失状态Client的功能。

命令格式

client aging-time aging-time

undo client aging-time [ aging-time ]

参数说明

参数 参数说明 取值
aging-time 指定丢失状态Client的老化时间。 整数形式,取值范围72~720,单位为小时。

视图

Easy-Operation视图

缺省级别

3:管理级

使用指南

使用场景

Client信息库中保存着网络管理员手动配置或者自动加入的Client的信息。当Commander两分钟内未收到Client的状态消息,则判定为丢失状态。

Commander支持管理的Client数量受规格限制,当Client的数量超过Commander的上限时,无法再增加新的Client信息。为了防止长时间处于丢失状态的Client占用信息库资源,可以配置老化丢失状态Client的功能,当老化时间超时之后,删除丢失状态Client。如果已经出现长时间处于丢失状态Client占用信息库资源的情况,可以使用命令reset easy-operation client-offline清除丢失状态Client。

注意事项
  • 自动加入的Client,老化时间超时之后,删除丢失状态表项。
  • 手动配置的Client,老化时间超时之后,表项不会被删除,状态变为未知。

使用实例

# 配置老化丢失状态Client的功能,并指定老化时间为72小时。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] client aging-time 72

client auto-clear enable

命令功能

client auto-clear enable命令用来在Commander上使能Client自动清理存储器空间的功能。

undo client auto-clear enable命令用来在Commander上去使能Client自动清理存储器空间的功能。

缺省情况下,此功能不使能。

命令格式

client auto-clear enable

undo client auto-clear enable

参数说明

视图

Easy-Operation视图

缺省级别

3:管理级

使用指南

应用场景

Client在下载文件时,可能因为存储器空间不足,而导致无法下载成功。可以在Commander上使能Client自动清理存储器空间的功能,当存储器空间不足时,可自动清理空间。

注意事项

  • 只有在下载系统软件时,如果空间不足才会清理空间,且只会删除设备上的非启动系统软件。

  • Client在执行自动清理存储器空间时,依赖文件服务器的类型。如果从TFTP服务器下载文件,由于无法获取到文件大小,因此无法执行自动清理存储器空间的动作。在使用FTP或者SFTP服务器时,如果服务器不支持返回文件大小的功能,则Client也不能执行自动清理存储器空间的动作。使用S交换机作FTP或TFTP文件服务器时,不支持返回文件大小的功能。

使用实例

# 使能自动清理存储器空间的功能。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] client auto-clear enable

client auto-join enable

命令功能

client auto-join enable命令用来在Commander上使能Client自动加入功能。

undo client auto-join enable命令用来去使能Client自动加入功能。

缺省情况下,Client自动加入功能不使能。

命令格式

client auto-join enable

undo client auto-join enable

参数说明

视图

Easy-Operation视图

缺省级别

3:管理级

使用指南

应用场景

在运行EasyDeploy功能的网络中,Commander上使能Client自动加入功能,且Client上配置了Commander的IP地址后,Commander会自动学习到Client的基本信息并加入Client信息库中,同时给此Client分配一个Client ID。自动学习到的信息包括Client的MAC地址、ESN序列号、IP地址、设备类型、设备型号、当前Client上加载的系统软件名、配置文件、补丁文件等,从而可以通过Commander实现对网络中Client的设备基本信息和版本文件的监控和管理。

特别是在批量升级的场景中,可以通过这些信息,确定升级对象。

如果为了防止未知的Client设备加入Commander,则可以去使能Client自动加入功能。

注意事项

  • 在批量升级场景中,需要通过命令easy-operation commander ip-address在Client上配置Commander的IP地址。

    在空配置部署或故障替换场景中,如果需要Client完成部署功能和替换功能后仍然在Commander的监控和管理范围内,则需要下载的配置文件中有Commander IP地址的配置信息。

  • 可以通过display easy-operation client命令查看自动学习的Client信息。
  • 如果Commander学习到的Client信息是Client信息库中存在的(通过命令client静态配置),则会更新Client信息库中的数据。
  • 如果一个Client的信息已经被自动学习到Client信息库,当此Client掉电后,其状态会变为LOST。当Client重新启动正常运行后,仍会被加入到Commander的管理中,状态会变为Running。

使用实例

# 使能Client自动加入功能。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] client auto-join enable
Warning: The commander will create the client information in database automatica
lly when received message from unknown client. Continue? [Y/N]: y
[HUAWEI-easyoperation] 

client replace

命令功能

client replace命令用来在Commander上增加或修改Client替换信息库中的Client替换信息。

undo client replace命令用来在Commander上删除Client替换信息库中的Client替换信息。

缺省情况下,Client替换信息库中没有Client的替换信息。

命令格式

client client-id replace { [ mac-address mac-address | esn esn ] | system-software file-name [ version ] | patch file-name | web-file file-name | license file-name | { custom-file file-name } &<1-3> } *

undo client client-id replace [ mac-address [ mac-address ] | esn [ esn ] | system-software [ file-name [ version ] ] | patch [ file-name ] | web-file [ file-name ] | license [ file-name ] | custom-file [ file-name ] ]

参数说明

参数 参数说明 取值
client-id 指定原故障Client的ID,用来标识故障Client。 整数形式。取值由Commander上可以支持的Client数量决定。

请参考Commander支持管理Client的数量

mac-address mac-address 指定新Client的MAC地址。 格式为H-H-H。
esn esn 指定新Client的ESN号。 字符串格式,不区分大小写,不支持空格,长度范围是10~32。
system-software file-name 指定新Client需要加载的系统软件名称(*.cc)。 字符串格式,不区分大小写,不支持空格,长度范围是4~48。
version

指定系统软件的版本号,例如:V200R011C10。如果此版本号与Client当前运行的系统软件版本号一致时,则不会进行系统软件的升级。

字符串格式,不区分大小写,不支持空格,长度范围是11~32。
patch file-name 指定新Client需要加载的补丁文件名称(*.pat)。 字符串格式,不区分大小写,不支持空格,长度范围是5~48。
web-file file-name 指定新Client需要加载的Web网页文件名称(*.web.7z或*.web.zip)。 字符串格式,不区分大小写,不支持空格,长度范围是8~64。
license file-name 指定新Client需要加载的License文件名称(*.dat)。
说明:

当前并不支持在故障替换场景中获取License文件信息,仅可以配置,但不生效。

字符串格式,不区分大小写,不支持空格,长度范围是5~64。
custom-file file-name

指定新Client需要加载的自定义文件名称。

支持加载3个自定义文件,以空格隔开。

字符串格式,不区分大小写,不支持空格,长度范围是1~64。

视图

Easy-Operation视图

缺省级别

3:管理级

使用指南

应用场景

在运行EasyDeploy特性的网络中,如果有一台Client由于硬件故障无法正常工作时,可以通过此命令在Client替换信息库中为故障Client添加一条Client替换信息,从而实现新Client能够快速获取到原故障Client的配置文件,减少故障Client给网络带来的影响。在替换过程中,还可以另外指定除配置文件以外的其他文件信息。

注意事项

  • 替换信息库仅用于故障替换场景对新Client进行匹配,匹配的原则是新Client的MAC地址或ESN是否在此信息库中,所以新Client与MAC地址或ESN序列号的匹配关系必须要配置。当新Client在此信息库中匹配上,则会根据配置的文件信息,从文件服务器下载原故障Client的备份配置文件以及其他指定文件。
  • 要实现故障替换,必须是在已部署EasyDeploy特性的网络中,且故障发生前已在Commander上执行过命令backup configuration interval配置自动备份配置文件功能,确保新Client获取的是原故障Client的实时配置文件。
  • 新Client与MAC地址或ESN序列号的匹配关系及新Client需要下载的各种文件信息可以通过此命令一次配置完成,也可以多次分别配置完成。
  • 如果需要删除Client替换信息,可直接执行命令undo client client-id replace。如果只是需要删除某项信息,则执行相关信息的undo命令。
  • 此命令不会生成配置文件。

使用实例

# 将故障设备Client 3替换为MAC地址为0000-c102-0702的设备,只需要恢复原来的配置。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] client 3 replace mac-address 0000-c102-0702

# 将故障设备Client 3替换为MAC地址为0000-c102-0702的设备,并且另外需要加载系统软件和自定义文件。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] client 3 replace mac-address 0000-c102-0702
[HUAWEI-easyoperation] client 3 replace system-software test.cc V200R011C10
[HUAWEI-easyoperation] client 3 replace custom-file header.txt custom-file aaa.bat

cluster

命令功能

cluster命令用来进入集群视图。

命令格式

cluster

参数说明

视图

系统视图

缺省级别

2:配置级

使用指南

进入集群视图后,可以在Commander的集群视图下配置集群管理VLAN,进而配置Commander作为网络拓扑收集设备功能,使Commander只收集本VLAN内Client的拓扑信息。

使用实例

# 进入集群视图。

<HUAWEI> system-view
[HUAWEI] cluster
[HUAWEI-cluster]

cluster enable

命令功能

cluster enable命令用来使能集群功能。

undo cluster enable命令用来禁止集群功能。

cluster disable命令用来禁止集群功能。

缺省情况下,集群功能处于使能状态。

命令格式

cluster enable

undo cluster enable

cluster disable

参数说明

视图

系统视图

缺省级别

2:配置级

使用指南

配置Commander作为网络拓扑收集设备前,需要在Commander的集群视图下配置集群管理VLAN,从而使Commander只收集本VLAN内Client的拓扑信息。对于S交换机,在配置集群管理VLAN前,还需要执行本命令使能网络集群功能,才能够进入集群视图。

使用实例

# 使能设备的集群功能。

<HUAWEI> system-view
[HUAWEI] cluster enable

cluster-multimac

命令功能

cluster-multimac命令用来配置集群的组播地址。

undo cluster-multimac用来恢复缺省的集群组播地址。

缺省情况下,集群组播地址是0180-C200-000A。

命令格式

cluster-multimac mac-address

undo cluster-multimac

参数说明

参数 参数说明 取值
mac-address 用16进制表示的组播MAC地址。 格式为H-H-H,每个“H”代表4位16进制数。取值范围是0180-C200-0004~0180-C200-0007、0180-C200-0009~0180-C200-0010和0180-C200-0020~0180-C200-002F。缺省值是0180-C200-000A。

视图

集群视图

缺省级别

2:配置级

使用指南

建立集群前,需要先设置集群的组播MAC地址或者使用默认的组播MAC地址,然后再建立集群。 如果默认的组播MAC地址已被网络中的其他业务所使用或者为了增强网络的安全性,此时可以在允许范围内,重新设置集群的组播MAC地址。 集群一旦建立后,那么就不能再修改集群的组播MAC地址。 同一个集群内的设备,需要配置相同的集群组播地址。

使用实例

# 设置集群组播地址为0180-c200-0004。

<HUAWEI> system-view
[HUAWEI] cluster
[HUAWEI-cluster] cluster-multimac 0180-c200-0004

# 将集群组播地址恢复为缺省值。

<HUAWEI> system-view
[HUAWEI] cluster
[HUAWEI-cluster] undo cluster-multimac

configuration-file

命令功能

configuration-file命令用来配置用户指定的需要下载的配置文件信息。

undo configuration-file命令用来删除需要下载的配置文件信息。

命令格式

configuration-file file-name

undo configuration-file [ file-name ]

参数说明

参数 参数说明 取值
file-name 指定Client需要加载的配置文件名称(*.zip或*.cfg),可指定文件路径。 字符串格式,不区分大小写,不支持空格,长度范围是5~48。

视图

Easy-Operation视图、Easy-Operation group视图

缺省级别

3:管理级

使用指南

应用场景

当Client需要加载配置文件的时候,必须配置配置文件信息。

注意事项

配置下载文件信息,可以在Easy-Operation全局视图下配置,也可以在Easy-Operation group视图下配置:
  • 如果在Easy-Operation全局视图下,配置的是默认的下载文件信息。当Group信息库和Client信息库中没有指定需要下载的文件信息时,则下载默认的文件信息。
  • 如果在Easy-Operation group视图下,配置的是能匹配上Group规则的Client的下载文件信息。

配置下载文件名不能与系统配置文件名相同,否则会导致升级失败。

使用实例

# 配置默认的配置文件信息。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] configuration-file easy/vrpcfg.zip

# 为匹配规则为MAC地址的Group,配置需要下载的配置文件信息。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] group custom mac-address test
[HUAWEI-easyoperation-group-custom-test] configuration-file vrpcfg.zip

custom-file

命令功能

custom-file命令用来配置用户指定的需要下载的自定义文件信息。

undo custom-file命令用来删除需要下载的自定义文件信息。

命令格式

{ custom-file file-name } &<1-3>

undo custom-file [ file-name ]

参数说明

参数 参数说明 取值
file-name

指定Client需要加载的自定义文件名称,可指定文件路径。

支持加载3个自定义文件,以空格隔开。

字符串格式,不区分大小写,不支持空格,长度范围是1~64。

视图

Easy-Operation视图、Easy-Operation group视图

缺省级别

3:管理级

使用指南

应用场景

当Client需要加载自定义文件的时候,例如批处理文件、登录标题文件等,则可以使用此命令配置自定义文件信息。

注意事项

配置下载文件信息,可以在Easy-Operation全局视图下配置,也可以在Easy-Operation group视图下配置:
  • 如果在Easy-Operation全局视图下,配置的是默认的下载文件信息。当Group信息库和Client信息库中没有指定需要下载的文件信息时,则下载默认的文件信息。
  • 如果在Easy-Operation group视图下,配置的是能匹配上Group规则的Client的下载文件信息。

配置下载文件名不能与系统自定义文件名相同,否则会导致升级失败。

使用实例

# 配置默认的自定义文件信息。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] custom-file easy/mydoc.bat

# 为匹配规则为MAC地址的Group,配置需要下载的自定义文件信息。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] group custom mac-address test
[HUAWEI-easyoperation-group-custom-test] custom-file mydoc.bat custom-file header.txt

display easy-operation batch-cmd result

命令功能

display easy-operation batch-cmd result命令用来查看批量配置的执行结果。

命令格式

display easy-operation batch-cmd result

参数说明

视图

所有视图

缺省级别

1:监控级

使用指南

由于命令行执行的结果保存在Client的内存中,所以命令行脚本中如果有清除Client内存的命令行,如reboot等,则命令下发后无法通过display easy-operation batch-cmd result查看批量配置的执行结果。

使用实例

# 查看批量配置的执行结果。

<HUAWEI> display easy-operation batch-cmd result
This operation will take some seconds, please wait......
-------------------------------------------------------------
  ID   Total  Successful     Failed    Time                  
-------------------------------------------------------------
   1      10          10          0    2013-09-12  12:57:02  
   2      10          10          0    2013-09-12  12:57:02  
   3      10          10          0    2013-09-12  12:57:02  
-------------------------------------------------------------
表2-4  display easy-operation batch-cmd result命令输出信息描述
项目 描述
ID Client ID。
Total 下发命令行总条数。
Successful 执行成功命令行条数。
Failed 执行失败命令行条数。
Time 命令行在Client上执行完成时间。

display easy-operation client

命令功能

display easy-operation client命令用来显示Commander上Client信息库的信息。

命令格式

display easy-operation client [ client-id | mac-address mac-address | esn esn | verbose ]

参数说明

参数 参数说明 取值
client-id 显示指定Client ID的Client的详细信息。 整数形式。取值由Commander上可以支持的Client数量决定。

请参考Commander支持管理Client的数量

mac-address mac-address 显示匹配指定MAC地址的Client的详细信息。 格式为H-H-H,其中H为4位的十六进制数。
esn esn 显示匹配指定ESN序列号的Client的详细信息。 字符串格式,不区分大小写,不支持空格,长度范围是10~32。
verbose 显示所有Client的详细信息。 -

视图

所有视图

缺省级别

1:监控级

使用指南

通过此命令查看到的是Commander从Client动态获取到的Client信息。包括:主机名、MAC地址、ESN、IP地址、设备类型以及Client上当前加载的文件信息。

如果通过此命令查看到Client的状态为UNKNOWN时,此时显示的MAC地址和ESN是用户配置的值。其他非UNKNOWN状态,都显示的是动态获取的值。如果需要修改非UNKNOWN状态Client的配置以重新匹配设备,则需要执行undo client client-id命令先删除此Client表项。

如果不指定任何参数,则显示的是Client信息库中动态获取的简要信息。

使用实例

# 显示Client信息库的简要信息。

<HUAWEI> display easy-operation client
The total number of client is : 4                                               
                                                                                
------------------------------------------------------------------------------- 
 ID   Mac address    ESN                              IP address       State    
------------------------------------------------------------------------------- 
 1    0025-9EF4-ABCD 2102113089P0BA000390             192.168.150.208  RUNNING     
 2    0000-C102-0701 -                                -                INITIAL  
 3    -              210235182810C3001041             192.168.150.210  INITIAL
 4    0018-1111-2123 2102352763107C800132             192.168.150.122  RUNNING
------------------------------------------------------------------------------- 

# 显示MAC地址为0018-1111-2123的Client的详细信息。

<HUAWEI> display easy-operation client mac-address 0018-1111-2123
---------------------------------------------------------------------------     
 Client ID                    : 4                                               
 Host name                    : HUAWEI
 Mac address                  : 0018-1111-2123                                  
 ESN                          : 2102352763107C800132                            
 IP address                   : 192.168.150.122                                 
 Model                        : S5728C-EI             
 Device Type                  : S5700-EI                    
 System-software file         : flash:/s5700-ei-v200r003c00.cc               
 System-software version      : V200R003C00
 Configuration file           : flash:/122.cfg                                  
 Patch file                   : -                                               
 WEB file                     : -                                               
 License file                 : -                                               
 System CPU usage             : 6%                                              
 System Memory usage          : 55% 
 Backup configuration file    : -                                               
 Backup result                : -                                      
 Last operation result        : -                                      
 Last operation time          : 0000-00-00  00:00:00 
 State                        : RUNNING                                         
 Aging time left (hours)      : - 
----------------------------------------------------------------------------     
表2-5  display easy-operation client命令输出信息描述
项目 描述
ID/Client ID Client ID。
Host name Client的主机名。
Mac address Client的MAC地址。
ESN Client的ESN序列号。
IP address Client的IP地址。
State Client的状态。
  • INITIAL:初始化状态,Client已添加到Client信息库,但Client还未获取到IP地址,未建立与Commander的通信。
  • UPGRADING:正在升级状态。
  • RUNNING:正常运行状态。
  • LOST:2分钟未收到Client的状态消息,判定为丢失状态。在堆叠系统下,如果系统MAC地址变化也会导致堆叠系统LOST。
  • CONFIGURING:批量配置状态。
  • UNKNOWN:不明状态,通常不会用到。
Model Client的设备型号。
Device Type Client的设备类型。
System-software file Client当前的系统软件名。
System-software version Client当前的系统版本号。
Configuration file Client当前的配置文件名。
Patch file Client当前的补丁文件名。
WEB file Client当前的Web网页文件名。
License file Client当前的License文件名。
System CPU usage Client的CPU使用率。
System Memory usage Client的内存使用率。
Backup configuration file Client的备份配置文件名。
Last operation result 上次操作的结果。
Last operation time 上次操作的时间。
Backup result 备份结果。
Aging time left 剩余的老化时间。

display easy-operation client replace

命令功能

display easy-operation client replace命令用来显示Commander上Client替换信息库的信息。

命令格式

display easy-operation client replace [ verbose ]

display easy-operation client client-id replace

参数说明

参数 参数说明 取值
verbose 显示Client替换信息库的详细信息。 -
client-id 显示指定Client ID的Client替换信息。 整数形式。取值由Commander上可以支持的Client数量决定。

请参考Commander支持管理Client的数量

视图

所有视图

缺省级别

1:监控级

使用指南

执行display easy-operation client命令,显示的是Client替换信息库的简要信息。

此命令的显示信息是通过client replace命令配置完成。

使用实例

# 显示Client替换信息库的简要信息。

<HUAWEI> display easy-operation client replace
The total number of replacement information is :  1                             
                                                                                
-----------------------------------------------------------                     
  ID      Replaced Mac     Replaced Esn     Status                              
-----------------------------------------------------------                     
  3       0018-1111-2123   -                enable                              
-----------------------------------------------------------                     

# 显示Client替换信息库的详细信息。

<HUAWEI> display easy-operation client replace verbose 
-----------------------------------------------------------                     
 Client ID            : 3                                                       
 Mac address          : 0018-1111-2123                                
 ESN                  : -                                                       
 System-software file : -                                                       
 Configuration file   : 1.cfg                                                   
 Patch file           : -                                                       
 WEB file             : -                                                       
 License file         : -                                                       
 Customs file 1       : header.txt                                              
 Customs file 2       : aaa.bat                                                 
 Customs file 3       : 1                                                       
 Status               : disable                                                 
-----------------------------------------------------------                     

# 显示Client 3的替换信息。

<HUAWEI> display easy-operation client 3 replace
-----------------------------------------------------------                     
 Client ID            : 3                                                       
 Mac address          : 0018-1111-2123                                          
 ESN                  : -                                                       
 System-software file : -                                                       
 Configuration file   : 1.cfg                                                   
 Patch file           : -                                                       
 WEB file             : -                                                       
 License file         : -                                                       
 Customs file 1       : header.txt                                              
 Customs file 2       : aaa.bat                                                 
 Customs file 3       : 1                                                       
 Status               : disable                                                 
-----------------------------------------------------------                     
表2-6  display easy-operation client replace命令输出信息描述
项目 描述
ID/Client ID 故障Client的ID。
Replaced Mac/Mac address 新Client的MAC地址。
Replaced Esn/ESN 新Client的ESN序列号。
System-software file 新Client需要下载的系统软件名。
Configuration file 新Client需要下载的配置文件名。
Patch file 新Client需要下载的补丁文件名。
WEB file 新Client需要下载的Web网页文件名。
License file 新Client需要下载的License文件名。
Customs file 1 新Client需要下载的第一个自定义文件名。
Customs file 2 新Client需要下载的第二个自定义文件名。
Customs file 3 新Client需要下载的第三个自定义文件名。
Status 替换状态。
  • enable:已使能
  • disable:未使能

display easy-operation configuration

命令功能

display easy-operation configuration命令用来显示Commander的配置信息。

命令格式

display easy-operation configuration

参数说明

视图

所有视图

缺省级别

1:监控级

使用指南

此命令既可以在Commander上执行,也可以在Client上执行。

  • 如果在Commander上执行,可以显示当前设备的角色、Commander的IP地址和端口号、文件服务器信息、默认下载文件信息等等。
  • 如果在Client上执行,可以显示当前设备的角色、Commander的IP地址和端口号。

使用实例

# 在Commander设备上显示EasyDeploy的配置信息。

<HUAWEI> display easy-operation configuration
---------------------------------------------------------------------------     
 Role                            : Commander                                     
 Commander IP address            : 192.168.150.128                               
 Commander UDP port              : 60000                                         
 DTLS status                     : Enable
 IP address of file server       : 192.168.150.200                               
 Type of file server             : SFTP                                           
 Username of file server         : admin                                         
 Default system-software file    : test.cc                                       
 Default system-software version : -                          
 Default configuration file      : -                                           
 Default patch file              : -                                           
 Default WEB file                : -                                              
 Default license file            : test.dat                                       
 Default custom file 1           : mydoc.pat                                     
 Default custom file 2           : header.txt                                    
 Default custom file 3           : -                                                 
 Auto clear up                   : Disable                                       
 Auto join in                    : Disable                                        
 Topology collection             : Enable 
 Activating file time            : In 00:00                                      
 Activating file method          : Default                                       
 Aging time of lost client(hours): -
 Backup configuration file mode  : Default                                       
 Backup configuration file interval(hours): -                                   
---------------------------------------------------------------------------     

# 在Client设备上显示EasyDeploy的配置信息。

<HUAWEI> display easy-operation configuration
---------------------------------------------------------------------------     
 Role                           : Client                                        
 Commander IP address           : 192.168.150.128(dhcp-alloc)                  
 Commander UDP port             : 60000                                         
 DTLS status                    : Enable
---------------------------------------------------------------------------     
表2-7  display easy-operation configuration命令输出信息描述
项目 描述
Role 该设备在EasyDeploy网络中的角色,有Commander和Client两种角色。
Commander IP address Commander的IP地址。

通过easy-operation commander ip-address命令进行配置。

对于带配置启动的Client设备,并且设备是从DHCP服务器获取IP地址的,还可以从DHCP服务器的Option 148信息中来获取Commander的IP地址。因此,Client显示的IP地址会体现出是命令行配置的(configured)还是DHCP服务器指定的(dhcp-alloc)。如果命令行和DHCP服务器同时有配置,则优先使用命令行配置;取消命令行配置后,使用DHCP服务器的配置。

Commander UDP port Commander与Client通信时使用的端口号。

通过easy-operation commander ip-address命令进行配置。

DTLS status DTLS状态。
IP address of file server 文件服务器的IP地址。

通过tftp-serversftp-server | ftp-server命令进行配置。

Type of file server 文件服务器类型。
Username of file server 访问文件服务器的用户名。
Default system-software file 默认的系统软件文件名。如果没有配置则为空。

通过system-software命令进行配置。

Default system-software version 默认的系统软件版本号。如果没有配置则为空。

通过system-software命令进行配置。

Default configuration file 默认的配置文件名。如果没有配置则为空。

通过configuration-file命令进行配置。

Default patch file 默认的补丁文件名。如果没有配置则为空。

通过patch命令进行配置。

Default WEB file 默认的Web网页文件名。如果没有配置则为空。

通过web-file命令进行配置。

Default license file 默认的License文件名。如果没有配置则为空。

通过license命令进行配置。

Default custom file 1 默认的第一个自定义文件名。如果没有配置则为空。

通过custom-file命令进行配置。

Default custom file 2 默认的第二个自定义文件名。如果没有配置则为空。

通过custom-file命令进行配置。

Default custom file 3 默认的第三个自定义文件名。如果没有配置则为空。

通过custom-file命令进行配置。

Auto clear up 自动清理存储器空间功能是否使能。

通过client auto-clear enable命令进行配置。

Auto join in 自动加入功能是否使能。

通过client auto-join enable命令进行配置。

Topology collection 拓扑收集功能是否使能。

通过topology enable命令进行配置。

Activating file time 文件激活时间。如果是默认方式,会显示Immediately

通过activate-file命令进行配置。

Activating file method 文件激活方式。如果是默认方式,会显示Default

通过activate-file命令进行配置。

Aging time of lost client(hours) 丢失状态Client的老化时间。

通过client aging-time命令进行配置。

Backup configuration file mode 备份配置文件方式。如果是默认方式,会显示Default

通过backup configuration interval命令进行配置。

Backup configuration file interval(hours) 备份配置文件方式的时间间隔。如果备份功能没有配置,会显示“-”。

通过backup configuration interval命令进行配置。

display easy-operation device-information

命令功能

display easy-operation device-information命令用来显示当前设备的设备信息。

命令格式

display easy-operation device-information

参数说明

视图

所有视图

缺省级别

1:监控级

使用指南

通过此命令查看的设备信息包括MAC地址、ESN、设备型号、设备类型以及主备角色。

此命令既可以在Commander上执行,也可以在Client执行。

在EasyDeploy网络中,如果Client是堆叠系统,则MAC地址匹配的是堆叠系统的MAC地址(不一定为主设备的MAC地址)、ESN匹配的是主设备的ESN。

使用实例

# 显示当前设备的设备信息。

<HUAWEI> display easy-operation device-information
System MAC: 0200-0000-0000                                                      
Slot MAC            ESN                  Model               Device-Type Role   
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
0   0200-0000-0000  2102354043107C800132 S5701-28X-LI-AC     S5700-X-LI  Master 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
表2-8  display easy-operation device-information命令输出信息描述
项目 描述
System MAC 系统MAC地址。
Slot 槽位号。
MAC 设备MAC地址。
ESN 设备ESN。
Model 设备型号。
Device-Type 设备类型。
Role 设备主备角色。

display easy-operation download-status

命令功能

display easy-operation download-status命令用来在Commander上显示Client的下载状态。

命令格式

display easy-operation download-status [ client client-id | verbose ]

参数说明

参数 参数说明 取值
client client-id 显示指定Client ID的下载状态。 整数形式。取值由Commander上可以支持的Client数量决定。请参考Commander支持管理Client的数量
verbose 显示Client下载状态的详细信息。 -

视图

所有视图

缺省级别

1:监控级

使用指南

通过此命令可以查询各Client当前的下载状态信息,包括Client的基本信息(Client ID、MAC地址、IP地址等)、操作场景(空配置(包括故障替换)、升级)、下载文件阶段(下载何种文件)及当前状态。

Client下载文件的顺序是系统软件、补丁文件、License文件、Web网页文件、配置文件及自定义文件。

如果不指定client client-idverbose参数,显示的是所有Client下载状态的简要信息。

使用实例

# 显示所有Client下载状态的简要信息。

<HUAWEI> display easy-operation download-status
---------------------------------------------------------------------------- 
  ID     Mac address    IP address      Method      Phase         Status     
---------------------------------------------------------------------------- 
  1      0011-2233-4455 10.10.10.5      Zero-touch  Sys-file      Upgrading  
  2      0011-1122-3333 10.10.10.6      Upgrade     Config-file   Failed     
  3      70F3-950B-1A52 10.10.10.7      Zero-touch  Patch-file    Waiting  
  4      0011-2233-4458 10.10.10.8      Zero-touch  Web-file      Upgrading  
----------------------------------------------------------------------------

# 显示Client下载状态的详细信息。

<HUAWEI> display easy-operation download-status verbose
The total number of client in downloading files is : 1

---------------------------------------------------------------------------
 Client ID                    : 5
 Mac address                  : 0212-2323-2323
 ESN                          : 21023536291234567890
 Host name                    : RTF_1-54
 IP address                   : 192.168.14.252
 Method                       : Zero-touch
 IP address of file server    : 192.168.1.88
 Type of file server          : SFTP
 Username of file server      : 1
 Configuration file           : -
 System-software file         : -
 Patch file                   : -
 WEB file                     : -
 License file                 : -
 Customs file 1               : -
 Customs file 2               : -
 Customs file 3               : -
 Activating file time         : Immediately
 Activating file method       : Default
 Phase                        : Unknown
 DownloadSize(byte)           : 29916738
 Status                       : Upgrading
 Reason                       : The device will enter getting download-information state.
 Description                  : The device will enter getting download-information state.
---------------------------------------------------------------------------
表2-9  display easy-operation download-status命令输出信息描述
项目 描述
ID/Client ID Client ID。
Mac address Client的MAC地址。
ESN Client的ESN序列号。
Host name Client的主机名称。
IP address Client的IP地址。
Method Client的操作场景。
  • Zero-touch:空配置场景(包含了故障替换的场景)。
  • Upgrade:批量升级场景。
Phase 下载文件的阶段:Sys-file、Config-file、Patch-file、Web-file、License-file、Custom-file、Activating、Rebooting、Unknown。
Status 下载状态。
  • Upgrading:正在下载状态。
  • Waiting:等待状态。
  • Failed:下载失败状态,可能会由于Client存储器空间不足或文件服务器中文件不存在造成下载失败。
IP address of file server 文件服务器IP地址。
Type of file server 文件服务器类型。
Username of file server 访问文件服务器的用户名。
Configuration file 正下载的配置文件名。
System-software file 正下载的系统软件名。
Patch file 正下载的补丁文件名。
WEB file 正下载的Web网页文件名。
License file 正下载的License文件名。
Customs file 1 正下载的第一个自定义文件名。
Customs file 2 正下载的第二个自定义文件名。
Customs file 3 正下载的第三个自定义文件名。
DownloadSize(byte) 已经下载的文件大小。
说明:
从R9及之前版本升级到R10及之后版本时,显示为“-”。
Activating file time 文件激活时间。Immediately表示立即激活。
Activating file method 文件激活方式。Default表示默认方式,Reload表示复位方式激活所有文件。
Reason 下载结果。各种可能的结果描述以及解决措施请参考表2-10
Description 下载结果描述。各种可能的结果描述以及解决措施请参考表2-10
表2-10  下载结果描述及对应措施

Reason描述

Description描述

解决措施

Input has been detected in the console

Input has been detected in the console. Easyoperation will stop

空配置开局过程中,用户在待开局设备上进行了串口输入,导致终止升级。建议用户将设备重启再次启动开局流程,并且不要有串口输入。

The USB upgrade is working

The USB upgrade is working. Easyoperation will stop

设备已经在U盘开局流程中,EasyDeploy不会进行开局操作。U盘开局与EasyDeploy功能互斥,建议停止一种功能。

The uni-mng system is working

The uni-mng system is working. Easyoperation will stop

设备正在运行SVF,EasyDeploy不会进行开局操作。SVF与EasyDeploy功能互斥,建议停止一种功能。

The device has in initial state

The device is in initial state. Easyoperation will stop

设备正处于WEB初始化模式中,EasyDeploy不会进行开局操作。WEB初始化模式与EasyDeploy功能互斥,建议停止一种功能。

Getting download-information failed. The device will get download-information again

Getting download-information failed. The device will be back to initialization state.

待开局设备获取下载信息失败。
  • 如果以中间文件方式开局,请检查中间文件的内容与格式是否正确;检查待开局设备与存放中间文件的服务器之间网络是否正常;以及检查配置的文件服务器用户名和密码是否正确。
  • 如果以Commander方式开局,请检查待开局设备与Commander之间的网络是否正常;检查配置的下载信息是否正确。

Downloading file failed

The system software file and version are wrong. The device will be back to initialization state

用户指定了升级的大包的版本号,但是未指定文件名,请指定文件名。

Downloading the system software file failed. Please check the reason

  1. 检查下载文件时是否发生网络故障。
  2. 检查保存文件的文件服务器是否发生异常。
  3. 检查大包、补丁、配置文件、License、Web文件、自定义文件等文件名是否合法。
  4. 检查待下载的大包、补丁、配置文件、License、Web文件、自定义文件的文件名是否与当前系统文件重名。
  5. 检查待升级设备上磁盘空间是否足够。

Downloading the patch file failed. Please check the reason

Downloading the web file failed. Please check the reason

Downloading the licence file failed. Please check the reason

Downloading the configuration file failed. Please check the reason

Downloading the custom file 1 failed. Please check the reason

Downloading the custom file 2 failed. Please check the reason

Downloading the custom file 3 failed. Please check the reason

The file does not exist in the file server

The file does not exist in the file server

从文件服务器下载文件时,文件服务器上没有此文件,请确认。

There is no enough space on the device

There is no enough space on master device or board

待升级设备上的磁盘空间不足,无法下载大包,请确保空间足够。

The file server is unreachable

The file server is unreachable

请检查配置的文件服务器IP地址是否正确,并且设备与文件服务器之间的网络连接是否正常。

Authentication on file server fails

Authentication on file server fails

在文件服务器上认证失败,请检查:
  1. 用户名、密码配置是否正确。
  2. 文件服务器上用户管理配置是否正确。
  3. 其他用户管理配置是否正确。
The filename is the same as the system file The filename of the patch is same as the system patch file 下载的补丁与系统文件重名。
The filename of the system-software is same as the system file 下载的大包与系统文件重名。
Check file failed System-software crc check error 下载的大包CRC校验失败,请检查文件服务器上的大包是否可用。
The file is a system file on the other device The file is system file on other device 待升级的补丁在备设备或从设备上是系统文件。
Activate file failed. The device will be back to initialization state after 5 minutes Activating file failed. The device will be back to initialization state after 5 minutes 激活文件失败,可能的原因有:
  1. 设置大包、配置文件、补丁为下次启动文件时,设置失败,请检查文件是否可用。
  2. 重启设备失败,请检查待升级设备上面是否存在未保存的配置;检查主、备设备的下次启动文件是否不一致;检查系统文件是否被损坏。
Reboot system failed The WLAN configuration conflicts with the next startup system software. To prevent configuration loss, use the eDesk tool to convert the configuration, and then specify the new configuration file for next startup 设备存在WLAN相关的配置,升级到高版本时会导致配置丢失,需要先将相关WLAN配置导出使用专用工具转换后再导入使用。
Copying file to other device or board failed Copying file to other device or board failed 向系统中备设备或从设备拷贝文件失败,请确认文件系统功能是否正常,在拷贝过程中是否有单板插拔动作。
There is no enough space on other device or board 拷贝待升级文件到备设备或从设备上时,备设备或从设备上磁盘空间不足,请确保磁盘空间足够存放所有待升级文件。
The download file was deleted The download file was deleted in client , please check the environment 之前下载下来的待升级文件被删除,请确认是否存在其他用户登录设备将文件删除。
Unknown error Unknown error 未知错误,请联系技术支持人员处理。
EasyOperation client opertaion failed The file server is not configured. Configure a file server first 请检查文件服务器是否已配置,并检查文件服务器配置是否正确。

display easy-operation group

命令功能

display easy-operation group命令用来显示Commander上Group信息库的信息。

命令格式

display easy-operation group [ build-in [ device-type ] | custom [ group-name ] ]

参数说明

参数 参数说明 取值
build-in 显示内置Group。

不指定设备类型,则显示所有此类Group。

-
device-type 显示指定的设备类型。 枚举值类型,不区分大小写。支持的设备类型有:
  • S2720-EI
  • S2750-EI
  • S5700-P-LI/S5700-X-LI
  • S5700-10P-LI/S5700S-LI
  • S5700-TP-LI
  • S5710-X-LI
  • S5700S-X-LI
  • S5700S-P-LI
  • S5700-EI/S5700-SI
  • S5700-HI/S5710-HI/S5720-HI
  • S5720-LI
  • S5710-EI/S5720-EI
  • S5720-SI
  • S5720S-LI
  • S5730-SI
  • S5730S-EI
  • S6700-EI
  • S6720-SI
  • S6720-EI
  • S6720-LI
  • S6720S-LI
  • S6720S-SI
  • S7700/S9700
  • S7900
  • S12700
  • E600
  • S600-E
custom 显示用户自定义Group。

不指定Group名称,则显示所有自定义Group。

-
group-name 显示指定的用户自定义Group名称。 字符串格式,区分大小写,不支持空格。长度范围1~31,必须以字母开头。

视图

所有视图

缺省级别

1:监控级

使用指南

通过此命令查询Commander上配置的各种类型的Group。

如果不指定build-incustom参数,则显示Commander上所有Group的简要信息。

使用实例

# 显示Commander上所有Group的简要信息。

<HUAWEI> display easy-operation group
The total number of group configured is : 6                                    
The number of build-in group is         : 2                                     
The number of custom group is           : 4                                    
                                                                                
-------------------------------------------------------                         
 Groupname                       Type     MatchType                             
-------------------------------------------------------                         
 AAA                             custom   ip-address                            
 F1                              custom   ip-address                            
 S5720-HI                        build-in device-type                           
 test                            custom   mac-address                           
 test1                           custom   ip-address                            
-------------------------------------------------------                         

# 显示内置Group的配置信息。

<HUAWEI> display easy-operation group build-in
---------------------------------------------------------------------------     
 Group name                : S5720-HI
 Configuration file        : vrpcfg.zip                                       
 System-software file      : S5720-HI.cc                                            
 Patch file                : -                                                  
 WEB file                  : -                                                  
 License file              : -                                                  
 Customs file 1            : -                                                  
 Customs file 2            : -                                                  
 Customs file 3            : -                                                  
 Activating file time      : Immediately                                        
 Activating file method    : Default                                            
---------------------------------------------------------------------------     

# 显示用户自定义Group AAA的配置信息。

<HUAWEI> display easy-operation group custom AAA
---------------------------------------------------------------------------     
 Group name                : AAA                                                
 Configuration file        : -                                                  
 System-software file      : -                                                  
 Patch file                : -                                                  
 WEB file                  : -                                                  
 License file              : -                                                  
 Customs file 1            : header.txt                                          
 Customs file 2            : -                                                  
 Customs file 3            : -                                                  
 Activating file time      : Immediately                                        
 Activating file method    : Default                                            
 Ip-address list           :                                                    
  Ip-address        Ip-mask                                                     
  192.168.150.110   255.255.255.0                                             
  192.168.150.111   255.255.255.0                                             
  192.168.150.112   255.255.255.0                                             
  192.168.150.113   255.255.255.0                                             
  192.168.150.114   255.255.255.0                                             
  192.168.150.115   255.255.255.0                                             
---------------------------------------------------------------------------     
表2-11  display easy-operation group命令输出信息描述
项目 描述
Groupname Group名称。
Type Group类型:build-in和custom。
MatchType Group的匹配类型。

内置Group通过group build-in命令进行配置。

自定义Group通过group custom命令进行配置。

Configuration file 匹配此Group的Client需要下载的系统软件文件名。如果没有配置则为“-”。

通过configuration-file命令进行配置。

System-software file 匹配此Group的Client需要下载的配置文件名。如果没有配置则为“-”。

通过system-software命令进行配置。

Patch file 匹配此Group的Client需要下载的补丁文件名。如果没有配置则为“-”。

通过patch命令进行配置。

WEB file 匹配此Group的Client需要下载的Web网页文件名。如果没有配置则为“-”。

通过web-file命令进行配置。

License file 匹配此Group的Client需要下载的License文件名。如果没有配置则为“-”。

通过license命令进行配置。

Customs file 1 匹配此Group的Client需要下载的第一个自定义文件名。如果没有配置则为“-”。

通过custom-file命令进行配置。

Customs file 2 匹配此Group的Client需要下载的第二个自定义文件名。如果没有配置则为“-”。

通过custom-file命令进行配置。

Customs file 3 匹配此Group的Client需要下载的第三个自定义文件名。如果没有配置则为“-”。

通过custom-file命令进行配置。

Activating file time 匹配此Group的Client的文件激活时间。如果是默认方式,会显示Immediately

通过activate-file命令进行配置。

Activating file method 匹配此Group的Client的文件激活方式。如果是默认方式,会显示Default

通过activate-file命令进行配置。

Ip-address list 此Group的匹配规则是IP地址,且显示所有匹配的IP地址信息。
  • 如果匹配规则是ESN序列号,此处显示ESN list

  • 如果匹配规则是MAC地址,此处显示Match mac-address list

  • 如果匹配规则是设备型号(model),此处显示Product model

  • 如果匹配规则是设备类型(device-type),此处显示Device type

通过match命令进行配置。

display easy-operation power

命令功能

display easy-operation power命令用来查看Commander和Client的能耗信息。

命令格式

display easy-operation power [ client client-id | commander ]

参数说明

参数 参数说明 取值
client client-id 显示指定Client的能耗信息。 整数形式。取值由Commander上可以支持的Client数量决定。

请参考Commander支持管理Client的数量

commander 显示Commander的能耗信息。 -

视图

所有视图

缺省级别

1:监控级

使用指南

在不同角色设备上命令功能有所不同:

  • 在Commander上

    • 若不选择参数,则查看Commander和所有处于初始化状态、升级状态和正常运行状态的Client的能耗信息。
    • 若选择client client-id参数,则查看指定Client的能耗信息。
    • 若选择commander参数,则查看Commander的能耗信息。
  • 在Client上

    不支持选择client client-idcommander参数,此命令只用来查看当前Client的能耗信息。

使用实例

# 在Commander上查看Commander和Client的能耗信息。

<HUAWEI> display easy-operation power
------------------------------------------------------------------------------  
Role       HostName                    Interface     Usage(W)  Gauge  Mode      
------------------------------------------------------------------------------  
Commander  HUAWEI                                    995.0     actual standard  
Client1    HUAWEI                                    511.3     rated  standard  
                                       GE0/0/1       0.7       actual           
Client3    HUAWEI                                    93.0      rated  standard  
Client4    HUAWEI                                    100.0     rated  standard  
------------------------------------------------------------------------------
表2-12  display easy-operation power命令输出信息描述
项目 描述
Role 设备在EasyDeploy网络中的角色,有Commander和Client两种角色。
HostName 设备主机名。
Interface 接口名称:
  • 若显示为空,则表示整机能耗。
  • 若显示不为空,则表示相应接口接入设备PD(Power Device)的能耗。
Usage(W) 能耗值,单位瓦特(W)。
Gauge 能耗类型:
  • actual:实时能耗。
  • rated:额定能耗。
Mode
整机节能模式:
  • standard:标准节能模式。
  • basic:基本节能模式。
  • deep:深度节能模式。

display easy-operation topology

命令功能

display easy-operation topology命令用来查看Commander收集到的网络拓扑信息。

命令格式

display easy-operation topology

参数说明

视图

所有视图

缺省级别

1:监控级

使用指南

使用此命令可以查看Commander收集到的网络拓扑信息,可以根据收集到的拓扑信息,实现空配置设备部署和故障设备自动替换。

使用实例

# 查看Commander收集到的网络的拓扑信息。

<HUAWEI> display easy-operation topology
<-->:normal device         <??>:lost device
Total topology node number: 3
------------------------------------------------------------------------------
[HUAWEI: 4CB1-6C8F-0447](Commander)
|-(GE0/0/8)<-->(GE0/0/38)[HUAWEI: 0200-2326-1007](Client 1)
| |-(GE0/0/16)<-->(GE0/0/16)[HUAWEI: 0200-0000-0001] (Client 2)
表2-13  display easy-operation topology命令输出信息描述
项目 描述
<--> 正常运行状态Client。
<??> 已经正常运行的Client变为丢失状态。
Total topology node number 网络拓扑中的节点数目,包括Commander。

display ndp

命令功能

display ndp命令用来查看全局或指定接口的NDP信息。

命令格式

display ndp [ interface { interface-type interface-number1 [ to interface-type interface-number2 ] } & <1-10> ]

参数说明

参数 参数说明 取值
interface { interface-type interface-number1 [ to interface-type interface-number2 ] }

查看指定接口的NDP信息。

  • interface-type interface-number1表示第一个接口类型和编号。
  • interface-type interface-number2表示最后一个接口类型和编号。

如果不指定接口,执行该命令将查看所有接口的NDP信息。

-

视图

所有视图

缺省级别

1:监控级

使用指南

查看NDP信息的情况:

  • 全局NDP功能未使能,只能查看交换机当前的NDP状态。
  • 全局NDP功能使能,能够查看交换机当前全局和接口的NDP信息和状态。

使用实例

# 显示全局NDP和所有接口的NDP信息。

<HUAWEI> display ndp
 Neighbor discovery protocol is enabled.
 Neighbor Discovery Protocol Ver: 1, Hello Timer: 60(s), Aging Timer: 180(s)
 Interface: GigabitEthernet0/0/1
    Status: Enabled, Packets Sent: 114, Packets Received: 108, Packets Error: 0
    Neighbor 1:  Aging Time: 174(s)
       MAC Address : 0018-8203-39d8
       Port Name   : GigabitEthernet0/0/1
       Software Version: Version 5.130 V200R011C10
       Device Name : S5700 
       Port Duplex : FULL                                                       
       Product Ver : S5700 V200R011C10 
---- More ----   
表2-14  display ndp命令输出信息描述

项目

描述

Neighbor discovery protocol is status

全局NDP功能处于status状态。status包括两个状态:
  • disabled表示去使能全局NDP功能。

  • enabled表示使能全局NDP功能。

可以通过ndp enable (系统视图)命令配置。

Neighbor Discovery Protocol Ver

支持的NDP版本。目前,设备都支持版本1。

Hello Timer

NDP报文的发送时间间隔。以秒为单位。可以通过ndp timer hello命令配置。

Aging Timer

NDP信息的老化时间。以秒为单位。可以通过ndp timer aging命令配置。

Interface

交换机的接口编号。

Status

接口的NDP状态:
  • Disabled:表示本接口去使能了NDP功能。

  • Enabled:表示本接口使能了NDP功能。

可以通过ndp enable (系统视图)ndp enable (接口视图)命令配置。

Packets Sent

接口发送的NDP报文数。

Packets Received

接口接收到的NDP报文数。

Packets Error

接口接收到的错误的NDP报文数。

Neighbor 1

邻居节点1。

Aging Time

接口连接的邻居节点的NDP信息老化时间。

MAC Address

邻居节点的MAC地址。

Port Name

邻居节点的与本接口相连的接口名称。

Software Version

邻居节点的系统软件的版本信息。

Device Name

邻居节点的主机名。

Port Duplex

邻居节点与本接口相连的接口的双工模式。
  • FULL:表示全双工。

  • HALF:表示半双工。

Product Ver

邻居节点的型号以及软件版本号。

# 显示未使能全局NDP功能的交换机NDP信息。

<HUAWEI> display ndp
 Neighbor discovery protocol is disabled.
 Neighbor Discovery Protocol Ver: 1, Hello Timer: 60(s), Aging Timer: 180(s)

display ntdp

命令功能

display ntdp命令用来查看NTDP配置信息。

命令格式

display ntdp

参数说明

视图

所有视图

缺省级别

1:监控级

使用指南

该命令用来查看交换机的NTDP配置信息,与交换机全局和接口是否使能NTDP功能无关。

使用实例

# 查看交换机NTDP配置信息。

<HUAWEI> display ntdp
Network topology discovery protocol is enabled
Hops      : 8                                                                  
Timer     : 0 min                                                               
Hop Delay : 200 ms                                                              
Port Delay: 20 ms                                                               
Total time for last collection: 330 ms  
表2-15  display ntdp命令输出信息描述

项目

描述

Network topology discovery protocol is status

全局NTDP功能处于status状态。status包括两个状态:
  • disabled表示去使能全局NTDP功能。

  • enabled表示使能全局NTDP功能。

可以通过ntdp enable(系统视图)命令配置。

Hops

拓扑收集范围(跳数)。可以通过ntdp hop命令配置。

Timer

定时收集拓扑的时间间隔。可以通过ntdp timer命令配置。

Hop Delay

第一个接口转发NTDP请求报文的延迟时间。可以通过ntdp timer hop-delay命令配置。

Port Delay

其它接口转发NTDP请求报文的延迟时间。可以通过ntdp timer port-delay命令配置。

Total time for last collection

最近一次收集拓扑时所用的时间。

display ntdp device-list

命令功能

display ntdp device-list命令用来查看通过NTDP收集到的拓扑信息。

命令格式

display ntdp device-list [ verbose ]

参数说明

参数 参数说明 取值
verbose

显示设备的详细信息。

如果不指定可选参数,本命令将显示设备的概要信息。

-

视图

所有视图

缺省级别

1:监控级

使用指南

应用场景

当交换机未配置定时拓扑信息收集功能时,需要在用户视图下执行ntdp explore命令进行拓扑信息收集后,才能使用该命令查看到NTDP收集到的交换机信息。

当交换机的接口未使能NTDP功能时,通过NTDP只能收集到交换机自身的信息。

前置条件

交换机全局NTDP功能已经使能。

使用实例

# 查看NTDP收集到的交换机的概要信息。

<HUAWEI> display ntdp device-list
The device-list of NTDP:
------------------------------------------------------------------------------
 MAC             HOP  IP                  PLATFORM
------------------------------------------------------------------------------
 5489-9875-edff  0                        S5700                                 
 0012-3321-2211  1    10.1.1.2/24         S5700                                 
 5489-9875-ea74  1    10.1.1.3/24         S5700 
表2-16  display ntdp device-list命令输出信息描述(简要信息)

项目

描述

MAC

设备的MAC地址。

HOP

设备距离拓扑收集设备的跳数。

IP

设备的IP地址。

PLATFORM

设备类型。

# 查看NTDP收集到的设备的详细信息。

<HUAWEI> display ntdp device-list verbose
 Hostname  : HUAWEI
 MAC       : 5489-9875-edff
 Hop       : 0
 Platform  : S5700
 IP        : 
 Version   : Version 5.150 V200R011C10
 Cluster   : Administrator switch of cluster
 Peer MAC        Native Port ID Peer Port ID   N-Index    P-Index    Speed Dup
 0012-3321-2211  GE0/0/4        GE0/0/4        9          9          1000  FULL 
 5489-9875-ea74  GE0/0/1        GE0/0/1        6          6          1000  FULL

-----------------------------------------------------------------------------
                                                                               
 Hostname  : HUAWEI                                             
 MAC       : 0012-3321-2211                                                     
 Hop       : 1                                                                  
 Platform  : S5700                                                              
 IP        : 10.1.1.2/24                                                        
 Version   : Version 5.150 V200R011C10                                   
 Cluster   : Candidate switch 
                                                                                
 Peer MAC        Native Port ID Peer Port ID   N-Index    P-Index    Speed Dup  
 5489-9875-edff  GE0/0/4        GE0/0/4        9          9          1000   FULL        
                                            
-----------------------------------------------------------------------------   
                                                                                
 Hostname  : HUAWEI                                              
 MAC       : 5489-9875-ea74                                                     
 Hop       : 1                                                                  
 Platform  : S5700                                                              
 IP        : 10.1.1.3/24                                                        
 Version   : Version 5.150 V200R011C10                                   
 Cluster   : Candidate switch 
                                                                                
 Peer MAC        Native Port ID Peer Port ID   N-Index    P-Index    Speed Dup  
 5489-9875-edff  GE0/0/1        GE0/0/1        6          6          1000   FULL    
       
表2-17  display ntdp device-list verbose命令输出信息描述(详细信息)

项目

描述

Hostname

设备的主机名。

MAC

设备的MAC地址。

Hop

本设备距离拓扑收集设备的跳数。

Platform

设备型号。

IP

设备的私有IP地址。

Version

设备的系统软件版本。

Cluster

设备在集群中的角色。

Peer MAC

邻居节点的MAC地址。

Native Port ID

本设备与邻居节点连接时所使用的接口。

Peer Port ID

邻居节点与本设备连接时所使用的接口。

N-Index

本地接口索引。

P-Index

对端接口索引。

Speed

邻居节点与本设备连接时的接口速率。

Dup

邻居节点与本设备连接时的接口双工方式。

display cluster-topology-info

命令功能

display cluster-topology-info命令用来显示集群拓扑信息。

命令格式

display cluster-topology-info

参数说明

视图

所有视图

缺省级别

1:监控级

使用指南

本命令只能在Commander交换机上执行。

两台设备之间存在多个接口相互连接的情况下,执行该命令只能显示其中一对接口连接的链路。

使用实例

# 显示集群拓扑信息。

<HUAWEI> display cluster-topology-info
The topology information about the cluster:
<-->:normal device         <++>:candidate device         <??>:lost device
-------------------------------------------------------------------------
Total topology node number is 5.
[HUAWEI_0.Administrator: Root-00e0-ad14-c600]
|-(GigabitEthernet0/0/2)<-->(GigabitEthernet0/0/1)[HUAWEI_3.Member-3: 00e0-da1c-4c00]
| |-(GigabitEthernet0/0/3)<-->(GigabitEthernet0/0/1)[HUAWEI_2.Member-2: 00e0-875b-8f00]
| | |-(GigabitEthernet0/0/1)<-->(GigabitEthernet0/0/1)[HUAWEI_1.Member-1: 00e0-0f68-6f00]
|-(GigabitEthernet0/0/1)<-->(GigabitEthernet0/0/2)[HUAWEI_4.Member-4: 00e0-9f7e-0b00]

该显示信息主要内容解释见表2-18

表2-18  display cluster-topology-info命令输出信息描述

项目

描述

<-->

正常链路。

<++>

候选链路。

<??>

问题链路。

Total topology node number is

集群拓扑中的节点数目。

[HUAWEI_0.Administrator: Root-00e0-ad14-c600]

表示交换机的主机名和MAC地址。该信息根据与实际设备的主机名和MAC地址而变化。

|-

表示第一级设备,直接与根结点相连。

| |-

表示第二级设备,与第一级设备相连。

| | |-

表示第三级设备,与第二级设备相连。

(GigabitEthernet0/0/1)<-->(GigabitEthernet0/0/2)

表示两个连接的设备各自使用的接口名称。该信息根据设备对接口的描述而变化。左边表示上级设备的信息,右边表示下级设备的信息。

[HUAWEI_3.Member-3: 00e0-da1c-4c00]

下级成员设备的MAC地址。该信息根据与实际设备的主机名和MAC地址而变化。

display snmp-agent trap feature-name easyoperatrap all

命令功能

display snmp-agent trap feature-name easyoperatrap all命令用来查看EASYOPERATRAP模块的所有告警开关的信息。

命令格式

display snmp-agent trap feature-name easyoperatrap all

参数说明

视图

所有视图

缺省级别

1:监控级

使用指南

应用场景

在打开了指定特性告警的功能后,执行命令display snmp-agent trap feature-name easyoperatrap all可以查看EASYOPERATRAP模块所有告警的开关状态信息。用户可使用snmp-agent trap enable feature-name easyoperatrap命令打开EASYOPERATRAP模块的告警开关。

前置条件

已经使能网元的SNMP功能,使能命令可以参考snmp-agent

使用实例

# 查看EASYOPERATRAP模块的所有告警信息。

<HUAWEI>display snmp-agent trap feature-name easyoperatrap all
------------------------------------------------------------------------------                                                      
Feature name: EASYOPERATRAP                                                                                                         
Trap number : 3                                                                                                                     
------------------------------------------------------------------------------                                                      
Trap name                       Default switch status   Current switch status                                                       
hwEasyOperationClientAdded      on                      on                                                                          
hwEasyOperationClientLost       on                      on                                                                          
hwEasyOperationClientJoinNotPermit                                                                                                  
                                on                      on
表2-19  display snmp-agent trap feature-name easyoperatrap all命令输出信息描述

项目

描述

Feature name

告警所属的模块名称。

Trap number

告警的数量。

Trap name

告警的名称,EASYOPERATRAP模块的告警包括:

  • hwEasyOperationClientAdded:Client加入告警。

  • hwEasyOperationClientLost:非法设备请求告警。

  • hwEasyOperationClientJoinNotPermit:Client丢失告警。

Default switch status

告警开关缺省状态:
  • on:表示缺省情况下告警处于开启状态。

  • off:表示缺省情况下告警处于关闭状态。

Current switch status

告警的状态:

  • on:表示告警处于开启状态。

  • off:表示告警处于关闭状态。

display snmp-agent trap feature-name hgmp all

命令功能

display snmp-agent trap feature-name hgmp all命令用来查看HGMP模块的所有告警开关的信息。

命令格式

display snmp-agent trap feature-name hgmp all

参数说明

视图

所有视图

缺省级别

1:监控级

使用指南

简单网络管理协议SNMP(Simple Network Management Protocol)是广泛用于TCP/IP网络的网络管理标准协议。SNMP提供了一种通过运行网络管理软件的中心计算机(即网络管理工作站)来管理网元的方法。网元上运行的管理代理可以主动上报告警给管理工作站,可使管理工作站及时获取网络状态,从而使网络管理员能够及时采取相应措施。

执行display snmp-agent trap feature-name hgmp all命令可以用来查看HGMP模块所有告警的开启关闭状态。

使用实例

# 查看HGMP模块的所有告警信息。

<HUAWEI>display snmp-agent trap feature-name hgmp all
------------------------------------------------------------------------------
Feature name: HGMP
Trap number : 1
------------------------------------------------------------------------------
Trap name                       Default switch status   Current switch status
hgmpNtdpTopoChange              on                      on
表2-20  display snmp-agent trap feature-name hgmp all命令输出信息描述

项目

描述

Feature name

告警所属的模块名称。

Trap number

告警的数量。

Trap name

告警的名称,HGMP模块的告警包括:

  • hgmpNtdpTopoChange:NTDP拓扑变化通知时,发送告警信息。

Default switch status

默认告警的状态:

  • on:表示告警处于开启状态。
  • off:表示告警处于关闭状态。

Current switch status

当前告警标识符:

  • on:表示告警处于开启状态。
  • off:表示告警处于关闭状态。

easy-operation

命令功能

easy-operation命令用来进入Easy-Operation视图。

命令格式

easy-operation

参数说明

视图

系统视图

缺省级别

3:管理级

使用指南

应用场景

文件服务器的指定、下载文件信息及文件激活策略等都需要在进入Easy-Operation视图后配置。

前置条件

只有设备作为Commander时,才可以进入Easy-Operation视图。

如果选定一台设备作为Commander,则需要先执行easy-operation commander ip-address命令配置Commander的IP地址,然后再执行easy-operation commander enable命令使能Commander功能。

使用实例

# 进入Easy-Operation视图。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] 

easy-operation client ftp-server

命令功能

easy-operation client ftp-server命令用来在设备出厂前指定FTP文件服务器的IP地址、用户名及密码。

undo easy-operation client ftp-server命令用来删除指定的FTP文件服务器的IP地址、用户名及密码。

缺省情况下,设备上没有指定FTP文件服务器的IP地址、用户名及密码。

命令格式

easy-operation client ftp-server ip-address ipaddress &<1-4> [ username username [ password password ] ]

undo easy-operation client ftp-server ip-address [ ipaddress ] [ username username ] [ password ]

参数说明

参数 参数说明 取值
ip-address ipaddress 指定FTP文件服务器的IP地址。 点分十进制格式。
username username 指定访问FTP服务器的用户名。 字符串形式,长度范围是1~64。
password password 指定访问FTP服务器的密码。 字符串形式,明文输入时长度范围是1~16,密文输入时长度为48。

视图

系统视图

缺省级别

3:管理级

使用指南

应用场景

设备需要下载的文件都保存在文件服务器中,当设备从中间文件获取到要下载的文件信息后,就会根据这些下载信息从文件服务器中下载指定文件,所以需要执行此命令来指定文件服务器的信息。

注意事项

  • easy-operation client ftp-server命令仅可以包含在设备出厂的配置文件中,正常情况下,用户不可以手动执行。
  • 如果用户不希望使用带配置部署功能,为了避免设备出厂自带的配置对其他功能产生影响,可以在系统视图下执行undo easy-operation client ftp-server命令来删除指定的FTP文件服务器的IP地址、用户名及密码。
  • 用户名及密码是否需要指定取决于服务器端是否设置了用户名及密码。
  • 使用FTP协议存在安全风险,推荐使用SFTP服务器。
  • 最多可指定4个FTP文件服务器的IP地址、用户名及密码。设备下载文件时,按照配置的先后顺序依次从各个文件服务器上查找并获取文件。
  • 请确保设备需要下载的文件都已上传至指定的文件服务器。

使用实例

# 删除指定的FTP文件服务器的IP地址、用户名及密码。

<HUAWEI> system-view
[HUAWEI] undo easy-operation client ftp-server ip-address 10.1.1.1 username huawei password

easy-operation client ftp-server-url

命令功能

easy-operation client ftp-server-url命令用来在设备出厂前指定FTP文件服务器的URL地址、用户名及密码。

undo easy-operation client ftp-server-url命令用来删除指定的FTP文件服务器的URL地址、用户名及密码。

缺省情况下,没有指定FTP文件服务器的URL地址、用户名及密码。

命令格式

easy-operation client ftp-server-url url-address [ username username [ password password ] ]

undo easy-operation client ftp-server-url [ url-address ] [ username username ] [ password ]

参数说明

参数 参数说明 取值
url-address 指定FTP文件服务器的URL地址。 字符串形式,长度范围是1~64。
username username 指定访问FTP服务器的用户名。 字符串形式,长度范围是1~64。
password password 指定访问FTP服务器的密码。 字符串形式,明文输入时长度范围是1~16,密文输入时长度为48。

视图

系统视图

缺省级别

3:管理级

使用指南

应用场景

设备需要下载的文件都保存在文件服务器中,当设备从中间文件获取到要下载的文件信息后,就会根据这些下载信息从文件服务器中下载指定文件,用户可以通过执行此命令来指定FTP文件服务器的URL地址。

注意事项

easy-operation client ftp-server-url命令仅可以包含在设备出厂的配置文件中,正常情况下,用户不可以手动执行。

如果用户不希望使用带配置部署功能,为了避免设备出厂自带的配置对其他功能产生影响,可以在系统视图下执行undo easy-operation client ftp-server-url命令来删除配置的FTP文件服务器的URL地址、用户名及密码。

用户在指定FTP文件服务器的地址时,可以通过IP地址的方式指定,也可以通过URL地址的方式指定,二者只能选其一。

使用实例

# 删除指定的FTP文件服务器的URL地址、用户名及密码。

<HUAWEI> system-view
[HUAWEI] undo easy-operation client ftp-server-url www.1234.com username huawei password

easy-operation client netfile

命令功能

easy-operation client netfile命令用来在设备出厂前指定带配置部署流程中所使用的中间文件名。

undo easy-operation client netfile命令用来删除指定的带配置部署流程中所使用的中间文件名。

缺省情况下,设备使用的中间文件为lswnet.cfg。

命令格式

easy-operation client netfile filename

undo easy-operation client netfile [ filename ]

参数说明

参数 参数说明 取值
filename 指定中间文件名称(*.cfg)。 字符串格式,长度范围是5~48。

视图

系统视图

缺省级别

3:管理级

使用指南

应用场景

带配置部署流程中,设备所需的版本文件信息需要从中间文件中获取。中间文件存放在文件服务器上,内容为SNMP主机的IP地址、设备MAC地址或ESN序列号、待下载文件的信息等。

如果用户不指定,设备默认使用名称为lswnet.cfg的中间文件。如果用户想要使用其他名称的配置文件,可以通过本命令来指定。

注意事项

easy-operation client netfile命令仅可以包含在设备出厂的配置文件中,正常情况下,用户不可以手动执行。

如果用户不希望使用带配置部署功能,为了避免设备出厂自带的配置对其他功能产生影响,可以在系统视图下执行undo easy-operation client netfile命令来删除指定的带配置部署流程中所使用的中间文件名。

通过中间文件指定的配置文件中,不能包括带配置部署相关命令行。

使用实例

# 删除指定的带配置部署流程中所使用的中间文件名。

<HUAWEI> system-view
[HUAWEI] undo easy-operation client netfile huawei.cfg

easy-operation client sftp-server

命令功能

easy-operation client sftp-server命令用来在设备出厂前指定SFTP文件服务器的IP地址、用户名及密码。

undo easy-operation client sftp-server命令用来删除指定的SFTP文件服务器的IP地址、用户名及密码。

缺省情况下,设备上没有指定SFTP文件服务器的IP地址、用户名及密码。

命令格式

easy-operation client sftp-server ip-address ipaddress &<1-4> [ username username [ password password ] ]

undo easy-operation client sftp-server ip-address [ ipaddress ] [ username username ] [ password ]

参数说明

参数 参数说明 取值
ip-address ipaddress 指定SFTP文件服务器的IP地址。 点分十进制格式。
username username 指定访问SFTP服务器的用户名。 字符串形式,长度范围是1~64。
password password 指定访问SFTP服务器的密码。 字符串形式,明文输入时长度范围是1~16,密文输入时长度为48。

视图

系统视图

缺省级别

3:管理级

使用指南

应用场景

设备需要下载的文件都保存在文件服务器中,当设备从中间文件获取到要下载的文件信息后,就会根据这些下载信息从文件服务器中下载指定文件,所以需要执行此命令来指定文件服务器的信息。

注意事项

  • easy-operation client sftp-server命令仅可以包含在设备出厂的配置文件中,正常情况下,用户不可以手动执行。
  • 如果用户不希望使用带配置部署功能,为了避免设备出厂自带的配置对其他功能产生影响,可以在系统视图下执行undo easy-operation client sftp-server命令来删除指定的SFTP文件服务器的IP地址、用户名及密码。
  • 用户名及密码是否需要指定取决于服务器端是否设置了用户名及密码。
  • 最多可指定4个SFTP文件服务器的IP地址、用户名及密码。设备下载文件时,按照配置的先后顺序依次从各个文件服务器上查找并获取文件。
  • 请确保设备需要下载的文件都已上传至指定的文件服务器。

使用实例

# 删除指定的SFTP文件服务器的IP地址、用户名及密码。

<HUAWEI> system-view
[HUAWEI] undo easy-operation client sftp-server ip-address 10.1.1.1 username huawei password

easy-operation client sftp-server-url

命令功能

easy-operation client sftp-server-url命令用来在设备出厂前指定SFTP文件服务器的URL地址、用户名及密码。

undo easy-operation client sftp-server-url命令用来删除指定的SFTP文件服务器的URL地址、用户名及密码。

缺省情况下,没有指定SFTP文件服务器的URL地址、用户名及密码。

命令格式

easy-operation client sftp-server-url url-address [ username username [ password password ] ]

undo easy-operation client sftp-server-url [ url-address ] [ username username ] [ password ]

参数说明

参数 参数说明 取值
url-address 指定SFTP文件服务器的URL地址。 字符串形式,长度范围是1~64。
username username 指定访问SFTP服务器的用户名。 字符串形式,长度范围是1~64。
password password 指定访问SFTP服务器的密码。 字符串形式,明文输入时长度范围是1~16,密文输入时长度为48。

视图

系统视图

缺省级别

3:管理级

使用指南

应用场景

设备需要下载的文件都保存在文件服务器中,当设备从中间文件获取到要下载的文件信息后,就会根据这些下载信息从文件服务器中下载指定文件,用户可以通过执行此命令来指定SFTP文件服务器的URL地址。

注意事项

  • easy-operation client sftp-server-url命令仅可以包含在设备出厂的配置文件中,正常情况下,用户不可以手动执行。
  • 如果用户不希望使用带配置部署功能,为了避免设备出厂自带的配置对其他功能产生影响,可以在系统视图下执行undo easy-operation client sftp-server-url命令来删除指定的SFTP文件服务器的URL地址、用户名及密码。

  • 用户在指定SFTP文件服务器的地址时,可以通过IP地址的方式指定,也可以通过URL地址的方式指定,二者只能选其一。
  • 用户名及密码是否需要指定取决于服务器端是否设置了用户名及密码。
  • 请确保设备需要下载的文件都已上传至指定的文件服务器。

使用实例

# 删除指定的SFTP文件服务器的URL地址、用户名及密码。

<HUAWEI> system-view
[HUAWEI] undo easy-operation client sftp-server-url www.1234.com username huawei password

easy-operation client snmp securityname

命令功能

easy-operation client snmp securityname命令用来在设备出厂前配置设备与SNMP主机的共享密钥。

undo easy-operation client snmp securityname命令用来删除配置的设备与SNMP主机的共享密钥。

缺省情况下,设备上没有配置与SNMP主机的共享密钥。

命令格式

easy-operation client snmp securityname cipher password

undo easy-operation client snmp securityname

参数说明

参数 参数说明 取值
cipher password 指定共享密钥。 字符串格式,取值范围是1~32位的明文或48/68位的密文。

视图

系统视图

缺省级别

3:管理级

使用指南

应用场景

带配置部署流程中,设备可以通过SNMP模块向网管发送告警,用以监控部署流程是否正常。此命令可用来配置设备与SNMP主机的共享密钥。

注意事项

easy-operation client snmp securityname命令仅可以包含在设备出厂的配置文件中,正常情况下,用户不可以手动执行。

如果用户不希望使用带配置部署功能,为了避免设备出厂自带的配置对其他功能产生影响,可以在系统视图下执行undo easy-operation client snmp securityname命令来删除配置的设备与SNMP主机的共享密钥。

使用实例

# 删除配置的设备与SNMP主机的共享密钥。

<HUAWEI> system-view
[HUAWEI] undo easy-operation client snmp securityname

easy-operation client tftp-server

命令功能

easy-operation client tftp-server命令用来在设备出厂前指定TFTP文件服务器的IP地址。

undo easy-operation client tftp-server命令用来删除指定的TFTP文件服务器的IP地址。

缺省情况下,设备上没有指定TFTP文件服务器的IP地址。

命令格式

easy-operation client tftp-server ip-address ipaddress &<1-4>

undo easy-operation client tftp-server ip-address [ ipaddress ]

参数说明

参数 参数说明 取值
ip-address ipaddress 指定TFTP文件服务器的IP地址。 点分十进制格式。

视图

系统视图

缺省级别

3:管理级

使用指南

应用场景

设备需要下载的文件都保存在文件服务器中,当设备从中间文件获取到要下载的文件信息后,就会根据这些下载信息从文件服务器中下载指定文件,所以需要执行此命令来指定文件服务器的信息。

注意事项

  • easy-operation client tftp-server命令仅可以包含在设备出厂的配置文件中,正常情况下,用户不可以手动执行。
  • 如果用户不希望使用带配置部署功能,为了避免设备出厂自带的配置对其他功能产生影响,可以在系统视图下执行undo easy-operation client tftp-server命令来删除指定的TFTP文件服务器的IP地址。
  • 使用TFTP协议存在安全风险,推荐使用SFTP服务器。
  • 最多可指定4个TFTP文件服务器的IP地址。设备下载文件时,按照配置的先后顺序依次从各个文件服务器上查找并获取文件。
  • 请确保设备需要下载的文件都已上传至指定的文件服务器。

使用实例

# 删除指定的TFTP文件服务器的IP地址。

<HUAWEI> system-view
[HUAWEI] undo easy-operation client tftp-server ip-address 10.1.1.1

easy-operation client tftp-server-url

命令功能

easy-operation client tftp-server-url命令用来在设备出厂前指定TFTP文件服务器的URL地址。

undo easy-operation client tftp-server-url命令用来删除指定的TFTP文件服务器的URL地址。

缺省情况下,没有配置TFTP文件服务器的URL地址。

命令格式

easy-operation client tftp-server-url url-address

undo easy-operation client tftp-server-url [ url-address ]

参数说明

参数 参数说明 取值
url-address 指定TFTP文件服务器的URL地址。 字符串形式,长度范围是1~64。

视图

系统视图

缺省级别

3:管理级

使用指南

应用场景

设备需要下载的文件都保存在文件服务器中,当设备从中间文件获取到要下载的文件信息后,就会根据这些下载信息从文件服务器中下载指定文件,用户可以通过执行此命令来指定TFTP文件服务器的URL地址。

注意事项

easy-operation client tftp-server-url命令仅可以包含在设备出厂的配置文件中,正常情况下,用户不可以手动执行。

如果用户不希望使用带配置部署功能,为了避免设备出厂自带的配置对其他功能产生影响,可以在系统视图下执行undo easy-operation client tftp-server-url命令来删除指定的TFTP文件服务器的URL地址。

用户在指定TFTP文件服务器的地址时,可以通过IP地址的方式指定,也可以通过URL地址的方式指定,二者只能选其一。

使用实例

# 删除指定的TFTP文件服务器的URL地址。

<HUAWEI> system-view
[HUAWEI] undo easy-operation client tftp-server-url www.1234.com

easy-operation client ztp-with-cfg enable

命令功能

easy-operation client ztp-with-cfg enable命令用来在设备出厂前使能设备的带配置部署功能。

undo easy-operation client ztp-with-cfg enable命令用来去使能设备的带配置部署功能。

缺省情况下,设备没有使能带配置部署功能。

命令格式

easy-operation client ztp-with-cfg enable

undo easy-operation client ztp-with-cfg enable

参数说明

视图

系统视图

缺省级别

3:管理级

使用指南

应用场景

在某些特定场景下,设备出厂时可以自带定制化的配置文件,配置文件中包含了带配置部署相关的命令行,用以指定文件服务器地址、开局使用的中间文件名、设备与SNMP主机的共享密钥等。用户仅需简单地配置设备上线,设备就可以自动获取并加载正确的配置,减少用户的操作成本。

注意事项

easy-operation client ztp-with-cfg enable命令仅可以包含在设备出厂的配置文件中,正常情况下,用户不可以手动执行。

如果用户不希望使用带配置部署功能,为了避免设备出厂自带的配置对其他功能产生影响,可以在系统视图下执行undo easy-operation client ztp-with-cfg enable命令来去使能设备的带配置部署功能。

使用实例

# 去使能设备的带配置部署功能。

<HUAWEI> system-view
[HUAWEI] undo easy-operation client ztp-with-cfg enable

easy-operation commander enable

命令功能

easy-operation commander enable命令用来使能设备的Commander功能。

undo easy-operation commander enable命令用来去使能设备的Commander功能。

缺省情况下,Commander功能不使能。

命令格式

easy-operation commander enable

undo easy-operation commander enable

参数说明

视图

系统视图

缺省级别

3:管理级

使用指南

应用场景

可以使能设备的Commander功能,指定该设备作为Commander,实现EasyDeploy中空配置部署、故障替换以及批量升级的场景。Commander在EasyDeploy网络中是管理者的角色,可统一管理和控制Client,给Client分配与部署相关的信息(包括文件服务器信息、系统软件名、配置文件名等),通过Client自动加载所需要的文件后,实现EasyDeploy自动部署的功能。

前置条件

在使能Commander功能前,必须要先执行命令easy-operation commander ip-address配置Commander的IP地址。

注意事项

  • 一个EasyDeploy网络中只可指定一台设备作为Commander。
  • 此命令只可配置在作为Commander的设备上。
  • 当执行命令undo easy-operation commander enable去使能设备的Commander功能后,Commander上的Client信息库中的动态信息将会被清除,配置信息保存至内存。如果Commander没有重启,当再次使能Commander功能后,配置信息会恢复。

使用实例

# 使能设备的Commander功能。

<HUAWEI> system-view
[HUAWEI] easy-operation commander enable

easy-operation commander ip-address

命令功能

easy-operation commander ip-address命令用来配置Commander的IP地址。

undo easy-operation commander ip-address命令用来删除Commander的IP地址。

缺省情况下,Commander设备的IP地址没有配置。

命令格式

easy-operation commander ip-address ip-address [ udp-port udp-port ]

undo easy-operation commander ip-address [ ip-address [ udp-port udp-port ] ]

参数说明

参数 参数说明 取值
ip-address 指定Commander的IP地址。 点分十进制格式。
udp-port udp-port 指定Commander与Client通信时使用的UDP端口号。 整数形式,取值范围是1025~65535。缺省端口号为60000。

视图

系统视图

缺省级别

3:管理级

使用指南

应用场景

在Commander上配置了IP地址后,可以使得Client可以通过此IP地址与Commander建立通信。所以在批量升级的场景中,还必须在Client上执行此命令配置Commander的IP地址。空配置部署场景和故障替换场景,Client都是从DHCP服务器获取Commander的IP地址。

注意事项

Commander的IP地址必须是Commander设备中存在的IP地址。

Commander的IP地址不能是已绑定VPN的VLANIF接口的IP地址。

使能设备的Commander功能后,不允许再修改Commander的IP地址,否则会导致Commander无法检测和管理Client。

在批量升级场景中,Commander与Client上指定的Commander的IP地址和端口号必须一致,否则无法建立通信。

使用实例

# 配置Commander的IP地址。

<HUAWEI> system-view
[HUAWEI] easy-operation commander ip-address 10.10.10.5

easy-operation dtls disable

命令功能

easy-operation dtls disable命令用于去使能DTLS加密功能。

undo easy-operation dtls disable命令用于使能DTLS加密功能。

缺省情况下,DTLS加密功能使能。

命令格式

easy-operation dtls disable

undo easy-operation dtls disable

参数说明

视图

系统视图

缺省级别

3:管理级

使用指南

应用场景

主要应用于现网扩容场景,当Client的软件版本为V200R010C00及之后版本,Commander的软件版本为V200R010C00之前版本时,需要在client上配置easy-operation dtls disable命令关闭DTLS加密功能。

注意事项

  • 必须在Commander和Client上同时使能或去使能DTLS加密功能。

  • V200R010C00版本之前的设备,升级到V200R010C00及之后版本,会自动生成一条easy-operation dtls disable的配置。

  • 对于V200R010C00及之后版本的Client,如果需要加入V200R010C00之前版本的Commander进行管理,需要在Client上配置easy-operation dtls disable命令关闭DTLS加密功能。

  • 对于V200R010C00之前版本的Client,如果需要加入V200R010C00及之后版本的Commander进行管理,若Commander使能了DTLS加密功能,则必须将Client升级到V200R010C00及之后版本。否则,Client无法加入到现有的网络。

  • DTLS加密开启后,通过easy-operation shared-key命令配置的shared-key不再起作用。

  • DTLS加密开启后,用户可以通过easy-operation dtls psk命令配置DTLS的PSK功能。

使用实例

#去使能DTLS功能。

<HUAWEI> system-view
[HUAWEI] easy-operation dtls disable

easy-operation dtls psk

命令功能

easy-operation dtls psk命令用于配置DTLS的PSK的值。

undo easy-operation dtls psk命令用于恢复DTLS的PSK为默认值。

您可以在《S系列交换机缺省帐号与密码》(企业网运营商)文档中获取各种缺省帐号与密码信息。获取该文档需要权限,如需升级权限,请查看网站帮助。

命令格式

easy-operation dtls psk psk

undo easy-operation dtls psk

参数说明

参数 参数说明 取值
psk 预共享密钥。 长度为6~32的明文密钥或者长度为48、68的密文密钥。

视图

系统视图

缺省级别

3:管理级

使用指南

应用场景

DTLS加密开启后,用户通过此命令可以修改DTLS加密的预共享密钥的值。

注意事项

预共享密钥必须在Commander和Client上分别同时配置,且配置的密钥必须相同。

使用实例

# 配置DTLS会话的预共享密钥为test12345。

<HUAWEI> system-view
[HUAWEI] easy-operation dtls psk test12345

easy-operation shared-key

命令功能

easy-operation shared-key命令用来在Commander上或Client上配置共享密钥。

undo easy-operation shared-key命令用来删除在Commander上或Client上配置的共享密钥。

缺省情况下,没有在Commander上和Client上配置共享密钥。

命令格式

easy-operation shared-key cipher key-string

undo easy-operation shared-key

参数说明

参数 参数说明 取值
cipher 配置共享密钥为密文形式 -
key-string 指定共享密钥。 字符串形式,区分大小写,不支持空格。以明文方式输入时,长度范围是1~64;以密文方式输入时,长度范围是48~108。

视图

系统视图

缺省级别

3:管理级

使用指南

应用场景

在批量升级和批量配置的场景下,为了增强Commander和Client之间通信的安全性,防止有仿冒的Commander获取Client的控制权,用户可以通过easy-operation shared-key命令在Commander和Client上配置共享密钥。

注意事项

  • 共享密钥必须在Commander和Client上分别同时配置,且配置的密钥必须相同。
  • 如果Commander上配置了shared-key,则此Commander不能管理V200R008C00版本以前的Client,也不能管理没有配置shared-key的Client。
  • 共享密钥的配置不影响空配置设备部署。

使用实例

# 在Commander上配置共享密钥。

<HUAWEI> system-view
[HUAWEI] easy-operation shared-key cipher Easy@huawei

execute to

命令功能

execute to命令用来配置Commander向Client或Group下发命令行。

命令格式

execute [ script-file ] to client { all | { client-id1 [ to client-id2 ] }&<1-10> }

execute [ script-file ] to group { all | { name group-name }&<1-10> }

参数说明

参数 参数说明 取值
script-file 脚本文件名称。如果未指定脚本名称,则代表下发在线编辑的脚本。 请根据实际情况选择,字符串形式,取值范围是5~64。
client { client-id1 [ to client-id2 ] } 向指定Client下发命令行。 整数形式。取值由Commander上可以支持的Client数量决定。

请参考Commander支持管理Client的数量

client all 向所有Client下发命令行。 -
group name group-name 向指定Group下发命令行。 字符串格式,区分大小写,不支持空格。长度范围1~31,必须以字母开头。
group all 向所有Group下发命令行。 -

视图

Easy-Operation视图

缺省级别

3:管理级

使用指南

使用场景

在运行EasyDeploy功能的网络中,如果需要对Client进行配置,可以将需要配置的命令编辑成脚本,通过Commander将命令行下发给Client执行,从而实现对设备的批量配置功能。

使用实例

# Commander下发命令行到所有Client上执行。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] execute to client all
Warning: This operation will start the batch command executing process to the cl
ients. Continue?[Y/N]:y
Info: This operation will take some seconds, please wait..

group build-in

命令功能

group build-in命令用来在Commander上配置内置Group并进入Easy-Operation Group视图。

undo group build-in命令用来在Commander上删除内置Group。

缺省情况下,没有配置内置Group。

命令格式

group build-in device-type

undo group build-in [ device-type ]

参数说明

参数 参数说明 取值
device-type 指定匹配的设备类型。 枚举值类型,不区分大小写。支持的设备类型有:
  • S2720-EI
  • S2750-EI
  • S5700-P-LI/S5700-X-LI
  • S5700-10P-LI/S5700S-LI
  • S5700-TP-LI
  • S5710-X-LI
  • S5700S-X-LI
  • S5700S-P-LI
  • S5700-EI/S5700-SI
  • S5700-HI/S5710-HI/S5720-HI
  • S5720-LI
  • S5710-EI/S5720-EI
  • S5720-SI
  • S5720S-LI
  • S5730-SI
  • S5730S-EI
  • S6700-EI
  • S6720-SI
  • S6720-EI
  • S6720-LI
  • S6720S-LI
  • S6720S-SI
  • S7700/S9700
  • S7900
  • S12700
  • E600
  • S600-E

视图

Easy-Operation视图

缺省级别

3:管理级

使用指南

应用场景

如果网络中Client的设备类型比较集中,可以通过配置内置Group,使得相同类型的设备加载相同的文件,特别是加载系统软件和补丁文件。

注意事项

  • 如果Commander上还执行group custom命令配置了用户自定义Group,则以匹配自定义Group优先。

  • Commander上最多可以配置256个Group,包括内置Group和用户自定义Group。

  • 当执行不带参数device-typeundo group build-in命令时,将删除所有的内置Group。

使用实例

# 配置内置Group匹配S5720-HI

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] group build-in s5720-hi
[HUAWEI-easyoperation-group-build-in-S5720-HI]

group custom

命令功能

group custom命令用来在Commander上配置用户自定义Group并进入Easy-Operation Group视图。

undo group custom命令用来删除用户自定义的Group。

缺省情况下,没有配置用户自定义Group。

命令格式

group custom { mac-address | esn | ip-address | model | device-type } group-name

undo group custom [ { mac-address | esn | ip-address | model | device-type } [ group-name ] ]

参数说明

参数 参数说明 取值
group-name 指定用户自定义Group的名称。 字符串格式,区分大小写,不支持空格。长度范围1~31,必须以字母开头。
mac-address 指定Group按照MAC地址来匹配Client。 -
esn 指定Group按照ESN序列号来匹配Client。 -
ip-address 指定Group按照IP地址来匹配Client。 -
model 指定Group按照Client的型号来匹配Client。 -
device-type

指定Group按照Client的类型来匹配Client。

兼容在Commander内置Group不能支持的新的设备类型。

-

视图

Easy-Operation视图

缺省级别

3:管理级

使用指南

应用场景

在整个网络中,对于一些设备需要下载的文件是相同的情况下,可以通过配置Group的方式来进行管理,从而可以简化配置。Commander上支持配置多种自定义Group,用户可以根据网络设备的部署情况,选择适合的匹配方式。

注意事项

  • Commander上最多可以配置256个Group,包括内置Group和用户自定义Group。

  • 用户自定义Group中,各个匹配类型的优先级如下:mac-address > esn > ip > model > device-type

  • 执行undo group custom命令,将删除所有自定义Group。

使用实例

# 配置用户自定义Group,按MAC地址匹配Client。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] group custom mac-address test
[HUAWEI-easyoperation-group-custom-test]

license

命令功能

license命令用来配置用户指定的需要下载的License文件信息。

undo license命令用来删除需要下载的License文件信息。

命令格式

license file-name

undo license [ file-name ]

参数说明

参数 参数说明 取值
file-name 指定Client需要加载的License文件名称(*.dat),可指定文件路径。 字符串格式,不区分大小写,不支持空格,长度范围是5~64。

视图

Easy-Operation视图、Easy-Operation group视图

缺省级别

3:管理级

使用指南

应用场景

当Client需要加载License文件的时候,必须配置License文件信息。

注意事项

仅支持为框式交换机加载License文件。当Client为盒式交换机时,即使指定了需要下载的License文件信息,也不会生效。

配置下载文件信息,可以在Easy-Operation全局视图下配置,也可以在Easy-Operation group视图下配置:
  • 如果在Easy-Operation全局视图下,配置的是默认的下载文件信息。当Group信息库和Client信息库中没有指定需要下载的文件信息时,则下载默认的文件信息。
  • 如果在Easy-Operation group视图下,配置的是能匹配上Group规则的Client的下载文件信息。

配置下载文件名不能与系统License文件名相同,否则会导致升级失败。

使用实例

# 配置默认的License文件信息。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] license easy/test.dat

# 为匹配规则为MAC地址的Group,配置需要下载的License文件信息。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] group custom mac-address test
[HUAWEI-easyoperation-group-custom-test] license license.dat

match

命令功能

match命令用来在Commander上配置Group的匹配规则。

undo match命令用来取消在Commander上配置的Group匹配规则。

缺省情况下,没有配置Group的匹配规则。

命令格式

match mac-address mac-address [ mac-mask | mac-mask-length ]

match esn esn

match ip-address ip-address [ ip-mask | ip-mask-length ]

match model model

match device-type device-type

undo match mac-address [ mac-address [ mac-mask | mac-mask-length ] ]

undo match esn [ esn ]

undo match ip-address [ ip-address [ ip-mask | ip-mask-length ] ]

undo match model [ model ]

undo match device-type [ device-type ]

参数说明

参数 参数说明 取值
mac-address mac-address

指定按照MAC地址配置匹配规则。

允许配置多个匹配的MAC地址或地址段,只要匹配上其中一个,则认为是匹配上这个Group。

格式为H-H-H,其中H为4位的十六进制数。
mac-mask 指定MAC地址的掩码。 格式为H-H-H。缺省情况下,MAC地址的掩码是ffff-ffff-ffff。
mac-mask-length 指定MAC地址的掩码长度。 整数形式,取值范围是0~48。缺省情况下,MAC地址的掩码长度是48。
esn esn

指定按照ESN序列号配置匹配规则。

允许配置多个匹配的ESN序列号,只要匹配上其中一个,则认为是匹配上这个Group。

字符串格式,不区分大小写,不支持空格,长度范围是10~32。
ip-address ip-address

指定按照IP地址配置匹配规则。

允许配置多个匹配的IP地址或地址段(如192.168.110.0),只要匹配上其中一个,则认为是匹配上这个Group。

点分十进制格式。
ip-mask 指定IP地址的掩码。 点分十进制格式。缺省情况下,IP地址的掩码是255.255.255.255。
ip-mask-length 指定IP地址的掩码长度。 整数形式,取值范围是0~32。缺省情况下,IP地址的掩码长度是32。
model model

指定按照设备型号配置匹配规则。

字符串格式,不区分大小写,不支持空格,长度范围是1~32。
device-type device-type 指定按照设备类型配置匹配规则。 字符串格式,不区分大小写,不支持空格,长度范围是1~32。

视图

Easy-Operation group视图

缺省级别

3:管理级

使用指南

应用场景

当在Commander上配置用户自定义Group后,必须要执行此命令配置相应的匹配规则。Client只有匹配上指定的规则后,才能获取此规则下配置的下载文件信息。

注意事项

  • 匹配规则只有在相应的用户自定义Group中配置。例如:执行命令match mac-address mac-address配置按照MAC地址进行匹配的规则,只能在MAC地址类型的用户自定义Group中配置。
  • MAC地址、ESN和IP地址类型的Group,一个Group中最多配置256条匹配规则,所有Group的规则总数不能超过256条。
  • 设备型号类型的Group,匹配规则中指定的设备型号必须与设备的正式型号保持一致,否则设备将无法匹配此Group。
  • 设备类型的Group,匹配规则中指定的设备类型必须与设备的正式类型保持一致,否则设备将无法匹配此Group。

使用实例

# 配置用户自定义Group的匹配规则为多条MAC地址。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] group custom mac-address test
[HUAWEI-easyoperation-group-custom-test] match mac-address 70F3-950B-1A52
[HUAWEI-easyoperation-group-custom-test] match mac-address 70F3-950B-1B36

mngvlanid

命令功能

mngvlanid命令用来设置集群的管理VLAN。

undo mngvlanid命令用来将集群的管理VLAN恢复为缺省值。

缺省情况下,管理VLAN是VLAN 1。

命令格式

mngvlanid vlan-id

undo mngvlanid

参数说明

参数 参数说明 取值
vlan-id 指定VLAN编号。 整数形式,取值范围是1~4094。

视图

集群视图

缺省级别

2:配置级

使用指南

在EasyDeploy功能Commander交换机上更改管理VLAN的VLAN编号或者删除管理VLAN及相应的VLANIF,则集群自动被删除。

在EasyDeploy功能Client交换机上更改管理VLAN的VLAN编号,则Client交换机自动退出集群。

在将某VLAN指定为管理VLAN后,应避免与其他诸如RRPP、组播等业务使用同一个VLAN,否则会对业务功能产生影响。

使用实例

# 设置本设备的管理VLAN为VLAN 2。

<HUAWEI> system-view
[HUAWEI] cluster
[HUAWEI-cluster] mngvlanid 2
相关主题

ndp enable(接口视图)

命令功能

ndp enable命令用来使能接口NDP功能。

undo ndp enable命令用来去使能接口NDP功能。

ndp disable命令用来去使能接口NDP功能。

缺省情况下,接口NDP处于使能状态。

命令格式

ndp enable

undo ndp enable

ndp disable

参数说明

视图

Ethernet接口视图、GE接口视图、XGE接口视图、Eth-Trunk接口视图、40GE接口视图、端口组视图、MultiGE接口视图

缺省级别

2:配置级

使用指南

网络拓扑收集功能是基于NDP和NTDP的,在使能网络拓扑收集功能之前,必须保证NDP和NTDP功能已使能。

使用实例

# 在GE0/0/1接口视图下去使能接口NDP功能。

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] undo ndp enable

ndp enable (系统视图)

命令功能

ndp enable命令用来使能全局NDP或接口NDP功能。

undo ndp enable命令用来去使能全局NDP或接口NDP功能。

ndp disable命令用来去使能全局NDP或接口NDP功能。

缺省情况下,全局NDP功能处于使能状态。

命令格式

ndp enable [ interface { interface-type interface-number1 [ to interface-type interface-number2 ] } &<1-10> ]

undo ndp enable [ interface { interface-type interface-number1 [ to interface-type interface-number2 ] } &<1-10> ]

ndp disable interface { interface-type interface-number1 [ to interface-type interface-number2 ] } &<1-10>

ndp disable

参数说明

参数 参数说明 取值
interface interface-type interface-number1 [ to interface-type interface-number2 ] 使能或去使能NDP功能的接口:
  • interface-type interface-number1表示第一个接口类型和编号。
  • interface-type interface-number2表示最后一个接口类型和编号。
如果不指定接口,执行该命令使能或去使能全局NDP功能。
-

视图

系统视图

缺省级别

2:配置级

使用指南

应用场景

网络拓扑收集功能是基于NDP和NTDP的,在使能网络拓扑收集功能之前,必须保证NDP和NTDP功能已使能。

配置影响

该命令是累增式命令,多次配置时,配置结果按多次累加生效。

使用实例

# 使能GE0/0/1接口的NDP功能。

<HUAWEI> system-view
[HUAWEI] ndp enable interface gigabitethernet 0/0/1

ndp timer aging

命令功能

ndp timer aging命令用来配置NDP报文在接收交换机上的老化时间。

undo ndp timer aging命令用来恢复NDP报文在接收交换机上的老化时间的缺省值。

缺省情况下,NDP报文在接收交换机上的老化时间是180秒。

命令格式

ndp timer aging aging-time

undo ndp timer aging

参数说明

参数 参数说明 取值
aging-time 指定NDP报文在接收交换机上的老化时间。 整数形式,取值范围是6~255,单位是秒。

视图

系统视图

缺省级别

2:配置级

使用指南

应用场景

当NDP报文在接收交换机上的老化时间超时后,接收交换机仍未收到本交换机发送的NDP报文,接收交换机将自动删除本交换机所对应的邻居表项。

前置条件

该命令只有在使能了设备的NDP功能的情况下才能配置。

注意事项

NDP报文在接收交换机上的老化时间必须大于NDP报文发送的时间间隔。

使用实例

# 设置NDP表项的老化时间为175秒。

<HUAWEI> system-view
[HUAWEI] ndp timer aging 175

ndp timer hello

命令功能

ndp timer hello命令用来配置NDP报文发送的时间间隔。

undo ndp timer hello命令用来恢复NDP报文发送的时间间隔的缺省值。

缺省情况下,NDP报文发送的时间间隔是60秒。

命令格式

ndp timer hello interval

undo ndp timer hello

参数说明

参数 参数说明 取值
interval 指定NDP报文发送的时间间隔。 整数形式,取值范围是5~254,单位是秒。

视图

系统视图

缺省级别

2:配置级

使用指南

应用场景

当配置了NDP报文发送的时间间隔时,使能了NDP功能的端口会周期性地向外发送NDP报文。

前置条件

该命令只有在使能了设备的NDP功能的情况下才能配置。

注意事项

NDP报文发送的时间间隔必须小于NDP报文在接收交换机上的老化时间

使用实例

# 设置设备NDP报文发送的时间间隔为55秒。

<HUAWEI> system-view
[HUAWEI] ndp timer hello 55

ndp trunk-member enable

命令功能

ndp trunk-member enable命令用来使能基于Trunk成员口的NDP功能。

undo ndp trunk-member enable命令用来去使能基于Trunk成员口的NDP功能。

缺省情况下,基于Trunk成员口的NDP功能处于去使能状态。

命令格式

ndp trunk-member enable

undo ndp trunk-member enable

参数说明

视图

系统视图

缺省级别

2:配置级

使用指南

应用场景

进行NTDP拓扑收集时,如果设备间的链路使用Trunk口连接,缺省情况下系统将基于Trunk逻辑口进行邻居发现及拓扑呈现。如果用户希望呈现Trunk成员口的连接信息,可以执行本命令,使能基于Trunk成员口的NDP功能进行邻居发现,并通过网管得到实际的物理口拓扑信息。

前置条件

在系统视图下,执行命令ndp enable全局使能NDP功能。

使用实例

# 使能基于Trunk成员口的NDP功能。

<HUAWEI> system-view
[HUAWEI] ndp enable
[HUAWEI] ndp trunk-member enable
相关主题

ntdp enable(接口视图)

命令功能

ntdp enable命令用来使能接口NTDP功能。

undo ntdp enable命令用来去使能接口NTDP功能。

ntdp disable命令用来去使能接口NTDP功能。

缺省情况下,接口NTDP功能处于使能状态。

命令格式

ntdp enable

undo ntdp enable

ntdp disable

参数说明

视图

Ethernet接口视图、GE接口视图、XGE接口视图、Eth-Trunk接口视图、40GE接口视图、端口组视图、MultiGE接口视图

缺省级别

2:配置级

使用指南

网络拓扑收集功能是基于NDP和NTDP的,在使能网络拓扑收集功能之前,必须保证NDP和NTDP功能已使能。

使用实例

# 在GE0/0/1接口视图下去使能接口NTDP功能。

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] undo ntdp enable

ntdp enable(系统视图)

命令功能

ntdp enable命令用来使能全局NTDP功能。

undo ntdp enable命令用来去使能全局NTDP功能。

ntdp disable命令用来去使能全局NTDP功能。

缺省情况下,全局NTDP功能处于使能状态。

命令格式

ntdp enable

undo ntdp enable

ntdp disable

参数说明

视图

系统视图

缺省级别

2:配置级

使用指南

网络拓扑收集功能是基于NDP和NTDP的,在使能网络拓扑收集功能之前,必须保证NDP和NTDP功能已使能。

使用实例

# 使能系统NTDP功能。

<HUAWEI> system-view
[HUAWEI] ntdp enable

ntdp explore

命令功能

ntdp explore命令用来手动收集拓扑信息。

命令格式

ntdp explore

参数说明

视图

用户视图

缺省级别

2:配置级

使用指南

应用场景

在使能NTDP功能的设备上手动发起拓扑信息的收集过程,从而更有效地对设备进行实时管理与监控,使NTDP能够及时反映网络拓扑的变化。

通常情况下,也可以执行ntdp timer命令来定时自动收集拓扑信息。

使用实例

# 手动启动拓扑信息的收集过程。

<HUAWEI> ntdp explore

ntdp hop

命令功能

ntdp hop命令用来配置NTDP拓扑收集的最大跳数。

undo ntdp hop命令用来恢复NTDP拓扑收集的最大跳数的缺省值。

缺省情况下,NTDP拓扑收集的最大跳数为8。

命令格式

ntdp hop max-hop-value

undo ntdp hop

参数说明

参数 参数说明 取值
max-hop-value 指定NTDP拓扑收集的最大跳数。 整数形式,取值范围是1~8。

视图

系统视图

缺省级别

2:配置级

使用指南

应用场景

通过配置NTDP拓扑收集的最大跳数可以收集确定范围内设备的拓扑信息,从而避免无限的扩展收集过程。同时,拓扑收集的最大跳数越大,占用拓扑收集交换机的内存越多。

前置条件

该命令只有在使能了设备的NTDP功能的情况下才能配置。

使用实例

# 设置拓扑收集范围是5跳。

<HUAWEI> system-view
[HUAWEI] ntdp hop 5

ntdp timer

命令功能

ntdp timer命令用来配置NTDP定时拓扑收集的时间间隔。

undo ntdp timer命令用来恢复NTDP定时拓扑收集的时间间隔的缺省值。

缺省情况下,NTDP定时拓扑收集的时间间隔是0,即不进行定时拓扑收集。

命令格式

ntdp timer interval

undo ntdp timer

参数说明

参数 参数说明 取值
interval 指定NTDP定时拓扑收集的时间间隔。 整数形式,取值范围是0~65535,单位是分钟。
说明:

由于Commander的网络拓扑收集周期为5分钟,建议将NTDP拓扑收集时间间隔设置小于5分钟。

视图

系统视图

缺省级别

2:配置级

使用指南

应用场景

在配置NTDP拓扑收集的时间间隔后,交换机将以此间隔为周期进行拓扑信息的收集。

前置条件

该命令只有在使能了设备的NTDP功能的情况下才能配置。

使用实例

# 设置定时拓扑收集的时间间隔为2分钟。

<HUAWEI> system-view
[HUAWEI] ntdp timer 2

ntdp timer hop-delay

命令功能

ntdp timer hop-delay命令用来配置第一个接口转发NTDP请求报文的延迟时间。

undo ntdp timer hop-delay命令用来恢复第一个接口转发NTDP请求报文的延迟时间的缺省值。

缺省情况下,第一个接口转发NTDP请求报文的延迟时间是200毫秒。

命令格式

ntdp timer hop-delay hop-delay-time

undo ntdp timer hop-delay

参数说明

参数 参数说明 取值
hop-delay-time 指定第一个接口转发NTDP请求报文的延迟时间。 整数形式,取值范围是1~1000,单位是毫秒。

视图

系统视图

缺省级别

2:配置级

使用指南

该命令只有在使能了设备的NTDP功能的情况下才能配置。

使用实例

# 设置设备在转发NTDP拓扑请求报文时的跳数延迟时间为300毫秒。

<HUAWEI> system-view
[HUAWEI] ntdp timer hop-delay 300

ntdp timer port-delay

命令功能

ntdp timer port-delay命令用来配置其它接口转发NTDP请求报文的延迟时间。

undo ntdp timer port-delay命令用来恢复配置其它接口转发NTDP请求报文的延迟时间的缺省值。

缺省情况下,其它接口转发NTDP请求报文的延迟时间是20毫秒。

命令格式

ntdp timer port-delay port-delay-time

undo ntdp timer port-delay

参数说明

参数 参数说明 取值
port-delay-time 指定其它接口转发NTDP请求报文的延迟时间。 整数形式,取值范围是1~1000,单位是毫秒。

视图

系统视图

缺省级别

2:配置级

使用指南

该命令只有在使能了设备的NTDP功能的情况下才能配置。

使用实例

# 设置设备在转发NTDP拓扑请求报文时的接口延迟时间为40毫秒。

<HUAWEI> system-view
[HUAWEI] ntdp timer port-delay 40

patch

命令功能

patch命令用来配置用户指定的需要下载的补丁文件信息。

undo patch命令用来删除需要下载的补丁文件信息。

命令格式

patch file-name

undo patch [ file-name ]

参数说明

参数 参数说明 取值
file-name 指定Client需要加载的补丁文件名称(*.pat),可指定文件路径。 字符串格式,不区分大小写,不支持空格,长度范围是5~48。

视图

Easy-Operation视图、Easy-Operation group视图

缺省级别

3:管理级

使用指南

应用场景

当Client需要加载补丁文件的时候,必须配置补丁文件信息。

注意事项

配置下载文件信息,可以在Easy-Operation全局视图下配置,也可以在Easy-Operation group视图下配置:
  • 如果在Easy-Operation全局视图下,配置的是默认的下载文件信息。当Group信息库和Client信息库中没有指定需要下载的文件信息时,则下载默认的文件信息。
  • 如果在Easy-Operation group视图下,配置的是能匹配上Group规则的Client的下载文件信息。

配置下载文件名不能与系统补丁文件名相同,否则会导致升级失败。

使用实例

# 配置默认的补丁文件信息。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] patch easy/test.pat

# 为匹配规则为MAC地址的Group,配置需要下载的补丁文件信息。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] group custom mac-address test
[HUAWEI-easyoperation-group-custom-test] patch patch.pat

reset easy-operation client-database

命令功能

reset easy-operation client-database命令用来清除Commander上的Client信息库信息。

命令格式

reset easy-operation client-database

参数说明

视图

用户视图

缺省级别

3:管理级

使用指南

应用场景

Client信息库的信息来源不仅有手动配置的,还有来自Commander自动学习的。Client信息库的大小受规格限制,当Client的数量超过上限时,就无法再增加新的Client,在确保手动配置的Client信息可以删除的前提下,可以执行此命令清除Client信息库信息。

注意事项

执行此命令将同时删除手动配置的Client信息和自动学习获取的Client信息。所以在操作前必须确认手动配置的Client是否可以清除。如果此时Commander自动学习功能是使能的,Commander仍会自动学习到Client信息保存至Client信息库。

使用实例

# 将Commander上的Client数据库信息清空。

<HUAWEI> reset easy-operation client-database
Warning: All of the database information of client and relative replace in this 
device will be cleared. Continue?[Y/N]:y
<HUAWEI>

reset easy-operation client-offline

命令功能

reset easy-operation client-offline命令用来清除丢失状态Client。

命令格式

reset easy-operation client-offline

参数说明

视图

用户视图

缺省级别

3:管理级

使用指南

使用场景

Commander支持管理的Client数量受规格限制,当Client的数量超过Commander的上限时,无法再增加新的Client信息。如果已经出现长时间处于丢失状态Client占用信息库资源的情况,可以清除丢失状态Client。

注意事项
  • 自动加入的Client,删除丢失状态Client。
  • 手动配置的Client,Client不会被删除,状态变为未知。
  • 如果使用命令client replace配置了Client的替换信息,则不会清除Client信息库中的Client ID。

使用实例

# 清除Client信息库中丢失状态Client。

<HUAWEI> reset easy-operation client-offline
Warning: All of clients which are in the lost status will be deleted. Continue?[Y/N]:y
相关主题

reset ndp statistics

命令功能

reset ndp statistics命令用来清除全局或者接口的NDP报文统计信息。

命令格式

reset ndp statistics [ interface { interface-type interface-number1 [ to interface-type interface-number2 ] } &<1-10> ]

参数说明

参数 参数说明 取值
interface interface-type interface-number1 [ to interface-type interface-number2 ]
清除指定接口的NDP报文统计信息。
  • interface-type interface-number1表示第一个接口类型和编号。
  • interface-type interface-number2表示最后一个接口类型和编号。

当不指定参数时,清除所有全局的NDP报文统计信息

-

视图

用户视图

缺省级别

3:管理级

使用指南

不指定可选参数时,本命令将清除设备所有接口的NDP报文统计信息。

使用实例

# 清除设备所有接口的NDP报文统计信息。

<HUAWEI> reset ndp statistics
相关主题

snmp-agent trap enable feature-name easyoperatrap

命令功能

snmp-agent trap enable feature-name easyoperatrap命令用来打开EASYOPERATRAP模块的告警开关。

undo snmp-agent trap enable feature-name easyoperatrap命令用来关闭EASYOPERATRAP模块的告警开关。

缺省情况下,EASYOPERATRAP模块的告警开关处于打开状态。

命令格式

snmp-agent trap enable feature-name easyoperatrap [ trap-name { hweasyoperationclientadded | hweasyoperationclientjoinnotpermit | hweasyoperationclientlost } ]

undo snmp-agent trap enable feature-name easyoperatrap [ trap-name { hweasyoperationclientadded | hweasyoperationclientjoinnotpermit | hweasyoperationclientlost } ]

参数说明

参数

参数说明

取值

trap-name

EASYOPERATRAP模块的指定类型事件的告警开关。

-

hweasyoperationclientadded

打开Client加入告警开关。

-

hweasyoperationclientjoinnotpermit

打开非法设备请求告警开关。

-

hweasyoperationclientlost

打开Client丢失告警开关。

-

视图

系统视图

缺省级别

2:配置级

使用指南

打开告警开关之后,设备在运行过程中方可产生告警,并通过SNMP将生成的告警就会上送给网管;否则设备不会产生告警,SNMP模块也不会将告警上送给网管。

可以根据需要选择trap-name,只打开某个或几个事件的告警开关。

使用实例

# 打开EASYOPERATRAP模块的hweasyoperationclientadded告警。

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable feature-name easyoperatrap trap-name hweasyoperationclientadded

snmp-agent trap enable feature-name hgmp

命令功能

snmp-agent trap enable feature-name hgmp命令用来打开HGMP模块的告警开关。

undo snmp-agent trap enable feature-name hgmp命令用来关闭HGMP模块的告警开关。

缺省情况下,HGMP模块的告警开关处于开启状态。

命令格式

snmp-agent trap enable feature-name hgmp trap-name hgmpntdptopochange

undo snmp-agent trap enable feature-name hgmp trap-name hgmpntdptopochange

参数说明

参数 参数说明 取值
trap-name HGMP模块的指定类型事件的告警开关。 -
hgmpntdptopochange NTDP拓扑变化通知时,发送告警信息。 -

视图

系统视图

缺省级别

2:配置级

使用指南

如果只打开某个或几个事件的告警开关时,请选择trap-name

使用实例

# 打开HGMP的hgmpntdptopochange告警。

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable feature-name hgmp trap-name hgmpntdptopochange

system-software

命令功能

system-software命令用来配置用户指定的需要下载的系统软件名和版本号。

undo system-software命令用来删除需要下载的系统软件名和版本号。

命令格式

system-software file-name [ version ]

undo system-software [ file-name [ version ] ]

参数说明

参数 参数说明 取值
file-name 指定Client需要加载的系统软件名称(*.cc),可指定文件路径。 字符串格式,不区分大小写,不支持空格,不支持特殊字符~、*、:、'、"、?、<、>、|、[、]、%、\和/,长度范围是4~48。
version

指定系统软件的版本号,例如:V200R011C10。如果此版本号与Client当前运行的系统软件版本号一致时,则不会进行系统软件的升级。

字符串格式,不区分大小写,不支持空格,长度范围是11~32。

视图

Easy-Operation视图、Easy-Operation group视图

缺省级别

3:管理级

使用指南

应用场景

当Client需要进行系统软件升级的时候,必须配置系统软件信息。

注意事项

配置下载文件信息,可以在Easy-Operation全局视图下配置,也可以在Easy-Operation group视图下配置:
  • 如果在Easy-Operation全局视图下,配置的是默认的下载文件信息。当Group信息库和Client信息库中没有指定需要下载的文件信息时,则下载默认的文件信息。
  • 如果在Easy-Operation group视图下,配置的是能匹配上Group规则的Client的下载文件信息。

配置下载文件名不能与系统软件名相同,否则会导致升级失败。

使用实例

# 配置默认的系统软件的信息。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] system-software easy/sV200R011C10.cc

# 为匹配规则为MAC地址的Group,配置需要下载的系统软件的信息。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] group custom mac-address test
[HUAWEI-easyoperation-group-custom-test] system-software V200R011C10.cc V200R011C10

tftp-server/sftp-server/ftp-server

命令功能

tftp-server命令用来在Commander上配置TFTP服务器的IP地址。

sftp-server命令用来在Commander上配置SFTP服务器的IP地址,用户名及密码。

ftp-server命令用来在Commander上配置FTP服务器的IP地址,用户名及密码。

undo tftp-server命令用来删除Commander上配置的TFTP服务器的IP地址。

undo sftp-server命令用来删除Commander上配置的SFTP服务器的IP地址,用户名及密码。

undo ftp-server命令用来删除Commander上配置的FTP服务器的IP地址,用户名及密码。

缺省情况下,没有配置文件服务器的IP地址、用户名及密码。

命令格式

tftp-server ip-address

{ sftp-server | ftp-server } ip-address [ username username [ password password ] ]

undo tftp-server [ ip-address ]

undo { sftp-server | ftp-server } [ ip-address ] [ username username ] [ password password ]

参数说明

参数 参数说明 取值
ip-address 指定文件服务器(TFTP、SFTP或FTP)的地址。 点分十进制格式。
username username 指定访问SFTP或FTP服务器的用户名。 字符串形式,区分大小写,长度范围是1~64。
password password 指定访问SFTP或FTP服务器的密码。 字符串形式,区分大小写,明文输入时长度范围是1~16,输入密文密码时长度为48。

无论是明文输入还是密文输入,配置文件中都以密文形式体现。

视图

Easy-Operation视图

缺省级别

3:管理级

使用指南

应用场景

Client需要下载的文件都保存在文件服务器中,当Client从Commander获取下载文件信息后,就会根据这些下载信息从Commander上配置的文件服务器中下载指定文件,所以需要执行此命令来配置文件服务器的信息。

注意事项

  • 如果使用的是SFTP或FTP服务器,用户名及密码是否需要指定取决于服务器端是否设置了用户名及密码。
  • 使用FTP、TFTP协议存在安全风险,推荐使用SFTP服务器。
  • 只可在Commander上配置一种文件服务器信息,以最后一次的配置为准。
  • 请确保Client需要下载的文件都已上传至指定的文件服务器。

使用实例

# 在Commander上配置SFTP服务器的IP地址、用户名和密码。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] sftp-server 10.10.10.5 username easyoperation password 123456

# 在Commander上配置TFTP服务器的IP地址。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] tftp-server 10.10.10.5

topology enable

命令功能

topology enable命令用来使能Commander的网络拓扑收集功能。

undo topology enable命令用来去使能Commander的网络拓扑收集功能。

缺省情况下,未使能Commander的网络拓扑收集功能。

命令格式

topology enable

undo topology enable

参数说明

视图

Easy-Operation视图

缺省级别

3:管理级

使用指南

使用场景

Commander每五分钟收集一次拓扑,可以根据收集到的拓扑信息,实现空配置设备部署和故障设备自动替换。

前提条件

已使能NDP和NTDP功能。

已配置了NTDP定时拓扑收集的时间间隔。

使用实例

# 使能Commander的网络拓扑收集功能。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] topology enable

topology save

命令功能

topology save命令用来保存当前Commander收集到的网络拓扑信息。

命令格式

topology save

参数说明

视图

Easy-Operation视图

缺省级别

3:管理级

使用指南

使用场景

Commander收集到的网络拓扑信息是保存在设备内存中的,如果设备重启会导致内存中的信息丢失,可以使用此命令将网络拓扑信息保存在Flash中,文件名为ezop-topo.xml。

前提条件

已配置网络拓扑收集功能。

注意事项

该命令为覆盖式命令,如果保存时网络拓扑信息文件已经存在,原文件的内容将被替换。

使用实例

# 保存当前Commander收集到的网络拓扑信息。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] topology save
Warning: This command will record the information of topology. Continue? [Y/N]:y

undo group

命令功能

undo group命令用来批量删除所有Group。

命令格式

undo group

参数说明

视图

Easy-Operation视图

缺省级别

3:管理级

使用指南

执行此命令将删除所有Group,包括内置Group和自定义Group。

使用实例

# 删除所有Group。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] undo group
Warning: All of the group configuration will be cleared. Continue?[Y/N]:y

upgrade group

命令功能

upgrade group命令用来在Commander上启动批量升级功能。

命令格式

upgrade group [ group-name ] &<1-15>

参数说明

参数 参数说明 取值
group-name

指定Group名称,对所有匹配上Group的Client进行批量升级。

支持最多指定15个Group进行批量升级,Group名称以空格隔开。

字符串格式,区分大小写,不支持空格。长度范围1~31,必须以字母开头。

视图

Easy-Operation视图

缺省级别

3:管理级

使用指南

应用场景

当Commander上已经配置好需要升级的Group,需要加载的文件以及升级后文件生效的策略,可以执行此命令启动批量升级过程。

注意事项

  • 如果此命令不指定group-name参数,则表示对匹配上所有Group的Client进行批量升级。

  • 执行此命令前,需要确保Client上的配置已经保存。

  • 如果升级的设备是堆叠系统,则在升级成功后,主交换机的变化会导致系统MAC地址变更,此时在Commander上查看堆叠系统对应原Client ID的这条表项的状态会变为LOST。为避免此种情况,可以配置堆叠系统MAC地址为不切换方式。

使用实例

# 对匹配所有Group的Client进行批量升级。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] upgrade group
Warning: This command will start the upgrade process of all groups and clients i
n these groups may reboot. Ensure that configurations of the clients have been s
aved. Continue?[Y/N]:y

# 对匹配指定Group的Client进行批量升级。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] upgrade group test1 test2 test3
Warning: This command will start the upgrade process of the group and clients in
 this group may reboot. Ensure that configurations of the clients have been save
d. Continue?[Y/N]:y

web-file

命令功能

web-file命令用来配置用户指定的需要下载的Web网页文件信息。

undo web-file命令用来删除需要下载的Web网页文件信息。

命令格式

web-file file-name

undo web-file [ file-name ]

参数说明

参数 参数说明 取值
file-name 指定Client需要加载的Web网页文件名称(*.web.7z或*.web.zip),可指定文件路径。 字符串格式,不区分大小写,不支持空格,长度范围是8~64。

视图

Easy-Operation视图、Easy-Operation group视图

缺省级别

3:管理级

使用指南

应用场景

当Client需要加载Web网页文件的时候,必须配置Web网页文件信息。

注意事项

配置下载文件信息,可以在Easy-Operation全局视图下配置,也可以在Easy-Operation group视图下配置:
  • 如果在Easy-Operation全局视图下,配置的是默认的下载文件信息。当Group信息库和Client信息库中没有指定需要下载的文件信息时,则下载默认的文件信息。
  • 如果在Easy-Operation group视图下,配置的是能匹配上Group规则的Client的下载文件信息。

使用实例

# 配置默认的Web网页文件信息。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] web-file easy/test.web.7z

# 为匹配规则为MAC地址的Group,配置需要下载的Web网页文件信息。

<HUAWEI> system-view
[HUAWEI] easy-operation
[HUAWEI-easyoperation] group custom mac-address test
[HUAWEI-easyoperation-group-custom-test] web-file test.web.7z
翻译
收藏
下载文档
更新时间:2021-10-30
文档编号:EDOC1000178145
浏览量:333577
下载量:4998
平均得分:5.0