38-HWPing命令
本章节下载 (120.25 KB)
目 录
【命令】
count times
undo count
【视图】
HWPing测试组视图
【参数】
times:发送测试报文的个数。取值范围为1~15。缺省值为1。
【描述】
count命令用来配置发送测试报文的个数。undo count命令用来将测试报文个数恢复到缺省值。
如果设置该参数大于1,那么系统收到第一个测试报文的响应报文之后,就发送第二个测试报文。如果一直没有收到响应报文,则等到测试定时器超时,发送第二个测试报文。如此直到发送完最后一个测试报文。
相关配置可参考命令frequency。
【举例】
# 设置“administrator-icmp”测试组发送测试报文的个数为10。
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] hwping administrator icmp
[H3C-hwping-administrator-icmp] count 10
【命令】
destination-ip ip-address
undo destination-ip
【视图】
HWPing测试组视图
【参数】
ip-address:测试操作的目的IP地址。
【描述】
destination-ip命令用来配置测试操作的目的IP地址。undo destination-ip命令用来删除配置的目的IP地址。
缺省情况下,系统没有配置测试操作的目的IP地址。
& 说明:
H3C S7500系列以太网交换机在进行HWPing测试时,最多支持5个测试组同时进行测试,后续测试组将等待执行。
【举例】
# 设置“administrator-icmp”测试组测试的目的IP地址为1.1.1.99。
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] hwping administrator icmp
[H3C-hwping-administrator-icmp] destination-ip 1.1.1.99
【命令】
display hwping { results | history } [ administrator-name operation-tag ]
【视图】
任意视图
【参数】
results:显示测试结果。
history:显示历史表信息。
administrator-name:指定创建操作的管理员名字。
operation-tag:指定测试操作的标签。
【描述】
display hwping命令用来显示测试操作的结果。
如果不指定测试组参数(administrator-name和operation-tag),系统将显示所有测试组的结果,否则只显示指定测试组操作的结果。
相关配置可参考命令test-enable。
【举例】
# 使用display hwping results命令查看测试结果。
<H3C> display hwping results administrator icmp
HWPing entry(admin administrator, tag icmp) test result:
Destination ip address:1.1.1.99
Send operation times: 10 Receive response times: 10
Min/Max/Average Round Trip Time: 2/5/2
Square-Sum of Round Trip Time: 66
Last complete test time: 2000-4-2 7:59:54.7
Extend result:
SD Maximal delay: 0 DS Maximal delay: 0
Packet lost in test: 0%
Disconnect operation number: 0 Operation timeout number: 0
System busy operation number: 0 Connection fail number: 0
Operation sequence errors: 0 Drop operation number: 0
Other operation errors: 0
表1-1 display hwping results命令显示信息描述表
字段 |
描述 |
Destination ip address |
目的IP地址 |
Send operation times |
发送测试次数 |
Receive response times |
成功测试次数 |
Min/Max/Average Round Trip Time |
最小/最大/平均往返时间 |
Square-Sum of Round Trip Time |
往返时间平方和 |
Last complete test time |
最后成功测试时间 |
SD Maximal delay |
源到目的的最大时延 |
DS Maximal delay |
目的到源的最大时延 |
Packet lost in test |
测试的报文丢失率 |
Disconnect operation number |
对方强制断开连接的次数 |
Operation timeout number |
测试过程中超时的次数 |
System busy operation number |
因系统忙测试失败的次数 |
Connection fail number |
和对方建立连接失败的次数 |
Operation sequence errors |
收到的失序包数 |
Drop operation number |
分配系统资源失败的次数 |
Other operation errors |
其它错误数 |
# 使用display hwping history命令查看测试结果。
<H3C> display hwping history administrator icmp
HWPing entry(admin administrator, tag icmp) history record:
Index Response Status LastRC Time
1 1 1 0 2004-11-25 16:28:55.0
2 1 1 0 2004-11-25 16:28:55.0
3 1 1 0 2004-11-25 16:28:55.0
4 1 1 0 2004-11-25 16:28:55.0
5 1 1 0 2004-11-25 16:28:55.0
6 2 1 0 2004-11-25 16:28:55.0
7 1 1 0 2004-11-25 16:28:55.0
8 1 1 0 2004-11-25 16:28:55.0
9 1 1 0 2004-11-25 16:28:55.9
10 1 1 0 2004-11-25 16:28:55.9
表1-2 display hwping history命令显示信息描述表
字段 |
描述 |
Index |
显示信息的编号 |
Response |
往返测试毫秒级时间,或超时时间,当不能完成测试时为0 |
Status |
测试结果值,具体含义如下: 1:responseReceived,接收到响应报文 2:unknown,未知错误 3:internalError,内部错误 4:requestTimedOut,响应超时 5:unknownDestinationAddress,目的地址未知 6:noRouteToTarget,没有去往目的地址的路由 7:interfaceInactiveToTarget,去往目的地址的接口没有激活 8:arpFailure,ARP运行失败 9:maxConcurrentLimitReached,达到最大并发接入限制 10:unableToResolveDnsName,不能解析DNS字段 11:invalidHostAddress,无效的主机地址 |
LastRC |
接收到最后一个基于实现方法的应答编码。在启用ICMP Echo功能的情况下,如果收到包含ICMP_ECHOREPLY(0)的ICMP应答就说明探测成功。ICMP应答通常在包含ip_icmp的文件中定义 |
Time |
测试时间 |
【命令】
frequency interval
undo frequency
【视图】
HWPing测试组视图
【参数】
interval:自动测试的时间间隔,单位为秒,取值范围为0~65535,缺省值为0,即不进行自动测试。
【描述】
frequency命令用来配置自动测试的时间间隔。undo frequency命令用来取消自动测试。
配置自动测试的间隔时间大于0时,系统会自动的每隔这个时间就进行一次测试。
相关配置可参考命令count。
【举例】
# 设置“administrator-icmp”测试组的自动测试时间间隔为10秒。
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] hwping administrator icmp
[H3C-hwping-administrator-icmp] frequency 10
【命令】
hwping administrator-name operation-tag
undo hwping administrator-name operation-tag
【视图】
系统视图
【参数】
administrator-name:指定创建操作的管理员名字,是一个长度为1~32个字符的字符串。
operation-tag:指定测试操作的标签,是一个长度为1~32个字符的字符串。
【描述】
hwping命令用来创建一个HWPing测试组,并进入HWPing测试组视图。undo hwping命令用来删除该测试组。
【举例】
# 创建一个管理员名为administrator,测试操作标签为icmp的HWPing测试组。
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] hwping administrator icmp
[H3C-hwping-adminstrator-icmp]
【命令】
hwping-agent enable
undo hwping-agent enable
【视图】
系统视图
【参数】
无
【描述】
hwping-agent enable命令用来使能HWPing客户端功能。undo hwping-agent enable命令用来取消HWPing客户端功能。
只有使能了HWPing客户端功能,才能进行各类测试操作。缺省情况下,HWPing客户端功能处于使能状态。
【举例】
# 使能HWPing客户端。
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] hwping-agent enable
【命令】
test-type type
【视图】
HWPing测试组视图
【参数】
type:测试的类型。
【描述】
test-type命令用来配置HWPing测试的类型。目前只支持ICMP。
【举例】
# 设置“administrator-icmp”测试组的测试类型为ICMP。
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] hwping administrator icmp
[H3C-hwping-administrator-icmp] test-type icmp
【命令】
test-enable
undo test-enable
【视图】
HWPing测试组视图
【参数】
无
【描述】
test-enable命令用来执行HWPing测试。undo test-enable命令用来关闭HWPing测试。
& 说明:
执行HWPing测试后系统不会自动显示测试结果,需要使用display hwping命令来显示测试信息。
相关配置可参考命令display hwping。
【举例】
# 在“administrator-icmp”测试组中执行HWPing测试。
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] hwping administrator icmp
[H3C-hwping-administrator-icmp] test-enable
【命令】
timeout time
undo timeout
【视图】
HWPing测试组视图
【参数】
time:超时时间,单位为秒,取值范围为1~60。缺省值为3秒。
【描述】
timeout命令用来配置测试操作的超时时间。undo timeout命令用来将超时时间恢复到缺省值。
【举例】
# 设置“administrator-icmp”测试组的超时时间为10秒。
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] hwping administrator icmp
[H3C-hwping-administrator-icmp] timeout 10
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!