- Table of Contents
-
- H3C WX3000 Series Unified Switches Switching Engine Configuration Guide-6W103
- 00-Preface
- 01-CLI Configuration
- 02-Login Configuration
- 03-Configuration File Management Configuration
- 04-VLAN Configuration
- 05-Auto Detect Configuration
- 06-Voice VLAN Configuration
- 07-GVRP Configuration
- 08-Basic Port Configuration
- 09-Link Aggregation Configuration
- 10-Port Isolation Configuration
- 11-Port Security-Port Binding Configuration
- 12-DLDP Configuration
- 13-MAC Address Table Management Configuration
- 14-MSTP Configuration
- 15-802.1x and System Guard Configuration
- 16-AAA Configuration
- 17-MAC Address Authentication Configuration
- 18-IP Address and Performance Configuration
- 19-DHCP Configuration
- 20-ACL Configuration
- 21-QoS-QoS Profile Configuration
- 22-Mirroring Configuration
- 23-ARP Configuration
- 24-SNMP-RMON Configuration
- 25-Multicast Configuration
- 26-NTP Configuration
- 27-SSH Configuration
- 28-File System Management Configuration
- 29-FTP-SFTP-TFTP Configuration
- 30-Information Center Configuration
- 31-System Maintenance and Debugging Configuration
- 32-VLAN-VPN Configuration
- 33-HWPing Configuration
- 34-DNS Configuration
- 35-Smart Link-Monitor Link Configuration
- 36-PoE-PoE Profile Configuration
- 37-Routing Protocol Configuration
- 38-UDP Helper Configuration
- 39-Acronyms
- 40-Index
- Related Documents
-
Title | Size | Download |
---|---|---|
33-HWPing Configuration | 166.7 KB |
Table of Contents
Test Types Supported by HWPing
Configuration on a HWPing Server
Displaying and Maintaining HWPing
TCP Test (Tcpprivate Test) on the Specified Ports
UDP Test (Udpprivate Test) on the Specified Ports
1 HWPing Configuration
l The term switch used throughout this chapter refers to a switching device in a generic sense or the switching engine of a WX3000.
l The sample output information in this manual was created on the WX3024. The output information on your device may vary.
HWPing Overview
Introduction to HWPing
HWPing (pronounced Hua’Wei Ping) is a network diagnostic tool. It is used to test the performance of various protocols running in networks. HWPing provides more functions than the ping command.
l The ping command can only use the ICMP protocol to test the round trip time (RTT) between this end and a specified destination end for the user to judge whether the destination end is reachable.
l Besides the above function of the ping command, HWPing can also provide other functions, such as testing the status (open/close) of a DHCP/FTP/HTTP/SNMP server and the response time of various services.
You need to configure HWPing client and sometimes the corresponding HWPing servers as well to perform various HWPing tests.
All HWPing tests are initiated by HWPing client and you can view the test results on HWPing client only.
When performing a HWPing test, you need to configure a HWPing test group on the HWPing client. A HWPing test group is a set of HWPing test parameters. A test group contains several test parameters and is uniquely identified by an administrator name and a test tag.
After creating a HWPing test group and configuring the test parameters, you can then perform a HWPing test by the test-enable command.
l Being different from the ping command, HWPing does not display the RTT or timeout status of each packet on the Console terminal in real time. To view the statistic results of your HWPing test operation, you need to execute the display hwping command.
l HWPing also allows you to set parameters for HWPing test groups, start HWPing tests and view statistical test results through a network management device.
Figure 1-1 HWPing illustration
Test Types Supported by HWPing
Table 1-1 Test types supported by HWPing
Supported test types |
Description |
|
ICMP test |
For these types of tests, you need to configure HWPing client and corresponding servers. |
|
DHCP test |
||
FTP test |
||
HTTP test |
||
DNS test |
||
SNMP test |
||
Jitter test |
l These types of tests need the cooperation of HWPing client and HWPing Server. l Do not perform TCP or UDP test on port 1 to 1023 (well-known ports). Otherwise your HWPing test may fail or cause the service corresponding to the well-known port (1 to 1023) being unavailable. |
|
TCP test |
Tcppublic test |
|
Tcpprivate test |
||
UDP test |
Udppublic test |
|
Udpprivate test |
HWPing Test Parameters
You need to configure corresponding test parameters for each type of HWPing test. HWPing test parameters can be configured on HWPing client only. For the configurations on HWPing client, refer to section.
Table 1-2 HWPing test parameters
Test parameter |
Description |
Destination address (destination-ip) |
For TCP/UDP/jitter test, you must specify a destination IP address, and the destination address must be the IP address of a TCP/UDP/UDP listening service configured on the HWPing server. |
Destination port (destination-port) |
For tcpprivate/udpprivate/jitter test, you must specify a destination port number, and the destination port number must be the port number of a TCP or UDP listening service configured on the HWPing server. |
Source interface (source-interface) |
l For DHCP test, you must specify a source interface, which will be used by HWPing client to send DHCP requests. If no source interface is specified for a DHCP test, the test will not succeed. l After a source interface is specified, HWPing client uses this source interface to send DHCP requests during a DHCP test. l The IP address of the specified source interface will be used as the source IP address of DHCP requests. |
Source address (source-ip) |
For HWPing tests other than DHCP test, you can specify a source IP address for test packets, which will be used by the server as the destination address of response packets. |
Source port (source-port) |
For HWPing tests other than ICMP, DHCP and DNS, you can specify a source port number for test packets, which will be used by the server as the destination port number of response packets. |
Test type (test-type) |
l You can use HWPing to test a variety of protocols, see Table 1-1 for details. l To perform a type of test, you must first create a test group of this type. One test group can be of only one HWPing test type. |
Number of probes per test (count) |
l For tests except jitter test, only one test packet is sent in a probe. In a jitter test, you can use the jitter-packetnum command to set the number of packets to be sent in a probe. |
Packet size (datasize) |
l For ICMP/UDP/jitter test, you can configure the size of test packets. l For ICMP test, the ICMP packet size refers to the length of ECHO-REQUEST packets (excluding IP and ICMP headers) |
Maximum number of history records that can be saved (history-records) |
This parameter is used to specify the maximum number of history records that can be saved in a test group. When the number of saved history records exceeds the maximum number, HWPing discards some earliest records. |
Automatic test interval (frequency) |
This parameter is used to set the interval at which the HWPing client periodically performs the same test automatically. |
Probe timeout time (timeout) |
l The probe timeout timer is started after the HWPing client sends out a test packet. l This parameter is in seconds. |
Type of service (tos) |
Type of service is the value of the ToS field in IP header in the test packets. |
dns |
This parameter is used to specify a DNS domain name in a HWPing DNS test group. |
dns-server |
This parameter is used to set the DNS server IP address in a HWPing DNS test group. |
HTTP operation type (http-operation) |
This parameter is used to set the type of HTTP interaction operation between HWPing client and HTTP server. |
FTP operation type (ftp-operation) |
This parameter is used to set the type of FTP interaction operation between HWPing client and FTP server. |
FTP login username and password (username and password) |
The two parameters are used to set the username and password to be used for FTP operation. |
File name for FTP operation (filename) |
Name of a file to be transferred between HWPing client and FTP server |
Number of jitter test packets to be sent per probe (jitter-packetnum) |
l Jitter test is used to collect statistics about delay jitter in UDP packet transmission l In a jitter probe, the HWPing client sends a series of packets to the HWPing server at regular intervals (you can set the interval). Once receiving such a packet, the HWPing server marks it with a timestamp, and then sends it back to the HWPing client. Upon receiving a packet returned, the HWPing client computes the delay jitter time. The HWPing client collects delay jitter statistics on all the packets returned in the test. So, the more packets a jitter probe sends, the more accurate the jitter statistics is, but the longer time the jitter test costs. |
Interval to send jitter test packets (jitter-interval) |
Each jitter probe will send multiple UDP test packets at regular intervals (you can set the interval). The smaller the interval is, the faster the test is. But a too small interval may somewhat impact your network. |
Trap |
l A HWPing test will generate a Trap message no matter whether the test successes or not. You can use the Trap device to enable or disable the output of trap messages. l You can set the number of consecutive failed HWPing tests before Trap output. You can also set the number of consecutive failed HWPing probes before Trap output. |
HWPing Configuration
The TCP/UDP/jitter tests need the cooperation of HWPing client and HWPing Server, Other types of tests need to configure HWPing client and corresponding different servers.
Configuration on a HWPing Server
You can enable both the HWPing client and HWPing server functions on a device, that is, the device can serve as a HWPing client and server simultaneously.
HWPing server configuration tasks
Complete the following tasks to configure the HWPing server:
Task |
Remarks |
|
Enable the HWPing server function |
The HWPing server function is needed only for jitter, TCP, and UDP tests. |
|
Configure a listening service on the HWPing server |
You can configure multiple TCP/UDP listening services on one HWPing server, with each listening service corresponding to a specific destination IP address and port number. |
HWPing server configuration
The following table describes the configuration on HWPing server, which is the same for HWPing test types that need to configure HWPing server.
Follow these steps to configure the HWPing server:
To do… |
Use the command… |
Remarks |
Enter system view |
system-view |
— |
Enable the HWPing server function |
hwping-server enable |
Required Disabled by default. |
Configure a UDP listening service |
hwping-server udpecho ip-address port-num |
Required for UDP and jitter tests By default, no UDP listening service is configured. |
Configure a TCP listening service |
hwping-server tcpconnect ip-address port-num |
Required for TCP tests By default, no TCP listening service is configured. |
HWPing Client Configuration
HWPing client configuration
After HWPing client is enabled, you can create multiple test groups for different tests, without the need to enable HWPing client repeatedly for each test group.
Different types of HWPing tests are somewhat different in parameters and parameter ranges. The following text describes the configuration on HWPing client for different test types.
1) Configuring ICMP test on HWPing client
Follow these steps to configure ICMP test on HWPing client:
To do… |
Use the command… |
Remarks |
Enter system view |
system-view |
— |
Enable the HWPing client function |
hwping-agent enable |
Required By default, the HWPing client function is disabled. |
Create a HWPing test group and enter its view |
hwping administrator-name operation-tag |
Required By default, no test group is configured. |
Configure the destination IP address |
destination-ip ip-address |
Required By default, no destination address is configured. |
Configure the source IP address |
source-ip ip-address |
Optional By default, no source IP address is configured. |
Configure the test type |
test-type icmp |
Optional By default, the test type is ICMP. |
Configure the number of probes per test |
count times |
Optional By default, each test makes one probe. |
Configure the packet size |
datasize size |
Optional By default, the packet size is 56 bytes. |
Configure the maximum number of history records that can be saved |
history-records number |
Optional By default, the maximum number is 50. |
Configure the automatic test interval |
frequency interval |
Optional By default, the automatic test interval is zero seconds, indicating no automatic test will be made. |
Configure the probe timeout time |
timeout time |
Optional By default, a probe times out in three seconds. |
Configure the type of service (ToS) |
tos value |
Optional By default, the service type is zero. |
Start the test |
test-enable |
Required |
Display test results |
display hwping results [ admin-name operation-tag ] |
Required Available in any view. |
For ICMP tests, if no IP address is configured for the specified source interface, the ICMP test will fail; if a source IP address has been configured with the source-ip command, the source-interface command cannot change the configured IP address.
2) Configuring DHCP test on HWPing client
Follow these steps to configure DHCP test on HWPing client:
To do… |
Use the command… |
Remarks |
Enter system view |
system-view |
— |
Enable the HWPing client function |
hwping-agent enable |
Required By default, the HWPing client function is disabled. |
Create a HWPing test group and enter its view |
hwping administrator-name operation-tag |
Required By default, no test group is configured. |
Configure the source interface |
source-interface interface-type interface-number |
Required You can only configure a VLAN interface as the source interface. By default, no source interface is configured. |
Configure the test type |
test-type dhcp |
Required By default, the test type is ICMP. |
Configure the number of probes per test |
count times |
Optional By default, each test makes one probe. |
Configure the maximum number of history records that can be saved |
history-records number |
Optional By default, the maximum number is 50. |
Configure the probe timeout time |
timeout time |
Optional By default, a probe times out in three seconds. |
Start the test |
test-enable |
Required |
Display test results |
display hwping results [ admin-name operation-tag ] |
Required You can execute the command in any view. |
3) Configuring FTP test on HWPing client
Follow these steps to configure FTP test on HWPing client:
To do… |
Use the command… |
Remarks |
Enter system view |
system-view |
— |
Enable the HWPing client function |
hwping-agent enable |
Required By default, the HWPing client function is disabled. |
Create a HWPing test group and enter its view |
hwping administrator-name operation-tag |
Required By default, no test group is configured. |
Configure the destination IP address |
destination-ip ip-address |
Required By default, no destination address is configured. |
Configure the source IP address |
source-ip ip-address |
Required By default, no source IP address is configured. |
Configure the source port |
source-port port-number |
Optional By default, no source port is configured. |
Configure the test type |
test-type ftp |
Required By default, the test type is ICMP. |
Configure the number of probes per test |
count times |
Optional By default, each test makes one probe. |
Configure the maximum number of history records that can be saved |
history-records number |
Optional By default, the maximum number is 50. |
Configure the automatic test interval |
frequency interval |
Optional By default, the automatic test interval is zero seconds, indicating no automatic test will be made. |
Configure the probe timeout time |
timeout time |
Optional By default, a probe times out in three seconds. |
Configure the type of service |
tos value |
Optional By default, the service type is zero. |
Configure the type of FTP operation |
ftp-operation { get | put } |
Optional By default, the type of FTP operation is get, that is, the FTP operation will get a file from the FTP server. |
Configure an FTP login username |
username name |
Required By default, neither username nor password is configured. |
Configure an FTP login password |
password password |
|
Configure a file name for the FTP operation |
filename file-name |
Required By default, no file name is configured for the FTP operation |
Start the test |
test-enable |
Required |
Display test results |
display hwping results [ admin-name operation-tag ] |
Required You can execute the command in any view. |
4) Configuring HTTP test on HWPing client
Follow these steps to configure HTTP test on HWPing client:
To do… |
Use the command… |
Remarks |
Enter system view |
system-view |
— |
Enable the HWPing client function |
hwping-agent enable |
Required By default, the HWPing client function is disabled. |
Create a HWPing test group and enter its view |
hwping administrator-name operation-tag |
Required By default, no test group is configured. |
Configure the destination IP address |
destination-ip ip-address |
Required You can configure an IP address or a host name. By default, no destination address is configured. |
Configure dns-server |
dns-server ip-address |
Required when you use the destination-ip command to configure the destination address as the host name. By default, no IP address of the DNS server is configured. |
Configure the source IP address |
source-ip ip-address |
Optional By default, no source IP address is configured. |
Configure the source port |
source-port port-number |
Optional By default, no source port is configured. |
Configure the test type |
test-type http |
Required By default, the test type is ICMP. |
Configure the number of probes per test |
count times |
Optional By default, each test makes one probe. |
Configure the maximum number of history records that can be saved |
history-records number |
Optional By default, the maximum number is 50. |
Configure the automatic test interval |
frequency interval |
Optional By default, the automatic test interval is zero seconds, indicating no automatic test will be made. |
Configure the probe timeout time |
timeout time |
Optional By default, a probe times out in three seconds. |
Configure the type of service |
tos value |
Optional By default, the service type is zero. |
Configure the type of HTTP operation |
http-operation { get | post } |
Optional By default, the type of HTTP operation is get, that is, the HTTP operation will get data from the HTTP server. |
Start the test |
test-enable |
Required |
Display test results |
display hwping results [ admin-name operation-tag ] |
Required You can execute the command in any view. |
5) Configuring jitter test on HWPing client
Follow these steps to configure jitter test on HWPing client:
To do… |
Use the command… |
Remarks |
Enter system view |
system-view |
— |
Enable the HWPing client function |
hwping-agent enable |
Required By default, the HWPing client function is disabled. |
Create a HWPing test group and enter its view |
hwping administrator-name operation-tag |
Required By default, no test group is configured. |
Configure the destination IP address |
destination-ip ip-address |
Required The destination address must be the IP address of a UDP listening service on the HWPing server. By default, no destination address is configured. |
Configure the destination port |
destination-port Port-number |
Required The destination port must be the port of a UDP listening service on the HWPing server. By default, no destination port is configured. |
Configure the source IP address |
source-ip ip-address |
Optional By default, no source IP address is configured. |
Configure the source port |
source-port port-number |
Optional By default, no source port is configured. |
Configure the test type |
test-type jitter |
Required By default, the test type is ICMP. |
Configure the number of probes per test |
count times |
Optional By default, each test makes one probe. |
Configure the maximum number of history records that can be saved |
history-records number |
Optional By default, the maximum number is 50. |
Configure the packet size |
datasize size |
Optional By default, the packet size is 68 bytes. |
Configure the automatic test interval |
frequency interval |
Optional By default, the automatic test interval is zero seconds, indicating no automatic test will be made. |
Configure the probe timeout time |
timeout time |
Optional By default, a probe times out in three seconds. |
Configure the type of service |
tos value |
Optional By default, the service type is zero. |
Configure the number of test packets that will be sent in each jitter probe |
jitter-packetnum number |
Optional By default, each jitter probe will send 10 packets. |
Configure the interval to send test packets in the jitter test |
jitter-interval interval |
Optional By default, the interval is 20 milliseconds. |
Start the test |
test-enable |
Required |
Display test results |
display hwping results [ admin-name operation-tag ] |
Required You can execute the command in any view. |
6) Configuring SNMP test on HWPing client
Follow these steps to configure SNMP test on HWPing client:
To do… |
Use the command… |
Remarks |
Enter system view |
system-view |
— |
Enable the HWPing client function |
hwping-agent enable |
Required By default, the HWPing client function is disabled. |
Create a HWPing test group and enter its view |
hwping administrator-name operation-tag |
Required By default, no test group is configured. |
Configure the destination IP address |
destination-ip ip-address |
Required By default, no destination address is configured. |
Configure the source IP address |
source-ip ip-address |
Optional By default, no source IP address is configured. |
Configure the source port |
source-port port-number |
Optional By default, no source port is configured. |
Configure the test type |
test-type snmpquery |
Required By default, the test type is ICMP. |
Configure the number of probes per test |
count times |
Optional By default, each test makes one probe. |
Configure the maximum number of history records that can be saved |
history-records number |
Optional By default, the maximum number is 50. |
Configure the automatic test interval |
frequency interval |
Optional By default, the automatic test interval is zero seconds, indicating no automatic test will be made. |
Configure the probe timeout time |
timeout time |
Optional By default, a probe times out in three seconds. |
Configure the type of service |
tos value |
Optional By default, the service type is zero. |
Start the test |
test-enable |
Required |
Display test results |
display hwping results [ admin-name operation-tag ] |
Required You can execute the command in any view. |
7) Configuring TCP test on HWPing client
Follow these steps to configure TCP test on HWPing client:
To do… |
Use the command… |
Remarks |
Enter system view |
system-view |
— |
Enable the HWPing client function |
hwping-agent enable |
Required By default, the HWPing client function is disabled. |
Create a HWPing test group and enter its view |
hwping administrator-name operation- tag |
Required By default, no test group is configured. |
Configure the destination address |
destination-ip ip-address |
Required This IP address and the one configured on the HWPing server for listening services must be the same. By default, no destination address is configured. |
Configure the destination port |
destination-port port-number |
Required in a Tcpprivate test A Tcppublic test is a TCP connection test on port 7. Use the hwping-server tcpconnect ip-address 7 command on the server to configure the listening service port; otherwise the test will fail. No port number needs to be configured on the client; any destination port number configured on the client will not take effect. By default, no destination port number is configured. |
Configure the source IP address |
source-ip ip-address |
Optional By default, the source IP address is not specified. |
Configure the source port |
source-port port-number |
Optional By default, no source port is specified. |
Configure the test type |
test-type { tcpprivate | tcppublic } |
Required By default, the test type is ICMP. |
Configure the number of probes per test |
count times |
Optional By default, one probe is made per time. |
Configure the automatic test interval |
frequency interval |
Optional By default, the automatic test interval is zero seconds, indicating no automatic test will be made. |
Configure the probe timeout time |
timeout time |
Optional By default, a probe times out in three seconds. |
Configure the maximum number of history records that can be saved |
history-records number |
Optional By default, the maximum number is 50. |
Configure the type of service |
tos value |
Optional By default, the service type is zero. |
Start the test |
test-enable |
Required |
Display test results |
display hwping results [ admin-name operation-tag ] |
Required The display command can be executed in any view. |
8) Configuring UDP test on HWPing client
Follow these steps to configure UDP test on HWPing client:
To do… |
Use the command… |
Remarks |
Enter system view |
system-view |
— |
Enable the HWPing client function |
hwping-agent enable |
Required By default, the HWPing client function is disabled. |
Create a HWPing test group and enter its view |
hwping administrator-name operation- tag |
Required By default, no test group is configured. |
Configure the destination address |
destination-ip ip-address |
Required This IP address and the one configured on the HWPing server for listening service must be the same. By default, no destination address is configured. |
Configure the destination port |
destination-port port-number |
l Required in a Udpprivate test l A Udppublic test is a UDP connection test on port 7. Use the hwping-server udpecho ip-address 7 command on the server to configure the listening service port; otherwise the test will fail. No port number needs to be configured on the client; any destination port number configured on the client will not take effect. l By default, no destination port number is configured. |
Configure the source IP address |
source-ip ip-address |
Optional By default, no source IP address is configured. |
Configure the source port |
source-port port-number |
Optional By default, no source port is specified. |
Configure the test type |
test-type { udpprivate | udppublic } |
Required By default, the test type is ICMP. |
Configure the number of probes per test |
count times |
Optional By default, one probe is made per test. |
Configure the maximum number of history records that can be saved |
history-records number |
Optional By default, the maximum number is 50. |
Configure the data packet size |
datasize size |
Optional By default, the data packet size is 100 bytes. |
Configure the automatic test interval |
frequency interval |
Optional By default, the automatic test interval is zero seconds, indicating no automatic test will be made. |
Configure the probe timeout time |
timeout time |
Optional By default, a probe times out in three seconds. |
Configure the service type |
tos value |
Optional By default, the service type is zero. |
Start the test |
test-enable |
Required |
Display test results |
display hwping results [ admin-name operation-tag ] |
Required The display command can be executed in any view. |
9) Configuring DNS test on HWPing client
Follow these steps to configure DNS test on HWPing client:
To do… |
Use the command… |
Remarks |
Enter system view |
system-view |
— |
Enable the HWPing client function |
hwping-agent enable |
Required By default, the HWPing client function is disabled. |
Create a HWPing test group and enter its view |
hwping administrator-name operation- tag |
Required By default, no test group is configured. |
Configure the source IP address |
source-ip ip-address |
Optional By default, no source IP address is specified. |
Configure the test type |
test-type dns |
Required By default, the test type is ICMP. |
Configure the number of probes per test |
count times |
Optional By default, one probe is made per test. |
Configure the maximum number of history records that can be saved |
history-records number |
Optional By default, the maximum number is 50. |
Configure the automatic test interval |
frequency interval |
Optional By default, the automatic test interval is zero seconds, indicating no automatic test will be made. |
Configure the probe timeout time |
timeout time |
Optional By default, a probe times out in three seconds. |
Configure the type of service |
tos value |
Optional By default, the service type is zero. |
Configure the domain name to be resolved |
dns resolve-targetdomai domainname |
Required By default, the domain name to be resolved by DNS is not specified. |
Configure the IP address of the DNS server |
dns-server ip-address |
Required By default, no DNS server address is configured. |
Start the test |
test-enable |
Required |
Display test results |
display hwping results [ admin-name operation-tag ] |
Required The display command can be executed in any view. |
Configuring HWPing client to send Trap messages
Trap messages are generated regardless of whether the HWPing test succeeds or fails. You can specify whether to output Trap messages by enabling/disabling Trap sending.
Follow these steps to configure the HWPing client to send Trap messages:
To do… |
Use the command… |
Remarks |
Enter system view |
system-view |
— |
Enable the HWPing client function |
hwping-agent enable |
Required By default, the HWPing client function is disabled. |
Create a HWPing test group and enter its view |
hwping administrator-name operation- tag |
Required By default, no test group is configured. |
Enable the HWPing client to send Trap messages |
send-trap { all | { probefailure | testcomplete | testfailure }* } |
Required By default, Trap sending is disabled. |
Configure the number of consecutive unsuccessful HWPing tests before Trap output |
test-failtimes times |
Optional By default, Trap messages are sent each time a test fails. |
Configure the number of consecutive unsuccessful HWPing probes before Trap output |
probe-failtimes times |
Optional By default, Trap messages are sent each time a probe fails. |
Displaying and Maintaining HWPing
To do… |
Use the command… |
Remarks |
Display test history |
display hwping history [ administrator-name operation-tag ] |
Available in any view |
Display the results of the latest test |
display hwping results [ administrator-name operation-tag ] |
HWPing Configuration Example
ICMP Test
Network requirements
As shown in Figure 1-2, Switch A serves as the HWPing client. A HWPing ICMP test between Switch A and Switch B uses ICMP to test the round trip time (RTT) for packets generated by the HWPing client to travel to and back from the destination.
Figure 1-2 Network diagram for the ICMP test
Configuration procedure
l Configure HWPing Client (Switch A):
# Enable HWPing client.
<device> system-view
[device] hwping-agent enable
# Create a HWPing test group, setting the administrator name to "administrator" and test tag to "ICMP".
[device] hwping administrator icmp
# Configure the test type as icmp.
[device-hwping-administrator-icmp] test-type icmp
# Configure the destination IP address as 10.2.2.2.
[device-hwping-administrator-icmp] destination-ip 10.2.2.2
# Configure to make 10 probes per test.
[device-hwping-administrator-icmp] count 10
# Set the probe timeout time to 5 seconds.
[device-hwping-administrator-icmp] timeout 5
# Start the test.
[device-hwping-administrator-icmp] test-enable
# Set the maximum number of history records that can be saved to 5.
[device-hwping-administrator-icmp] history-records 5
# Display test results.
[device-hwping-administrator-icmp] display hwping results administrator icmp
HWPing entry(admin administrator, tag icmp) test result:
Destination ip address:10.2.2.2
Send operation times: 10 Receive response times: 10
Min/Max/Average Round Trip Time: 3/6/3
Square-Sum of Round Trip Time: 145
Last succeeded test time: 2000-4-2 20:55:12.3
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
[device-hwping-administrator-icmp] display hwping history administrator icmp
HWPing entry(admin administrator, tag icmp) history record:
Index Response Status LastRC Time
1 3 1 0 2000-04-02 20:55:12.3
2 4 1 0 2000-04-02 20:55:12.3
3 4 1 0 2000-04-02 20:55:12.2
4 3 1 0 2000-04-02 20:55:12.2
5 3 1 0 2000-04-02 20:55:12.2
For detailed output description, see the corresponding command reference.
DHCP Test
Network requirements
As shown in Figure 1-3, Switch A serves as a HWPing client and the DHCP server (Switch B) is an H3C S5600 series Ethernet switch. Perform a HWPing DHCP test between the two devices to test the time required for the HWPing client to obtain an IP address from the DHCP server.
Figure 1-3 Network diagram for the DHCP test
Configuration procedure
l Configure DHCP Server(Switch B):
Configure DHCP server on Switch B. For specific configuration of DHCP server, refer to the DHCP module in H3C S5600 Series Ethernet Switches Configuration Guide.
l Configure HWPing Client (Switch A):
# Enable the HWPing client.
<device> system-view
[device] hwping-agent enable
# Create a HWPing test group, setting the administrator name to "administrator" and test tag to "DHCP".
[device] Hwping administrator dhcp
# Configure the test type as dhcp.
[device-hwping-administrator-dhcp] test-type dhcp
# Configure the source interface, which must be a VLAN interface. Make sure the DHCP server resides on the network connected to this interface.
[device-hwping-administrator-dhcp] source-interface Vlan-interface 1
# Configure to make 10 probes per test.
[device-hwping-administrator-dhcp] count 10
# Set the probe timeout time to 5 seconds.
[device-hwping-administrator-dhcp] timeout 5
# Start the test.
[device-hwping-administrator-dhcp] test-enable
# Display test results
[device-hwping-administrator-dhcp] display hwping results administrator dhcp
HWPing entry(admin administrator, tag dhcp) test result:
Send operation times: 10 Receive response times: 10
Min/Max/Average Round Trip Time: 1018/1037/1023
Square-Sum of Round Trip Time: 10465630
Last complete test time: 2000-4-3 9:51:30.9
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
[device-hwping-administrator-dhcp] display hwping history administrator dhcp
HWPing entry(admin administrator, tag dhcp) history record:
Index Response Status LastRC Time
1 1018 1 0 2000-04-03 09:51:30.9
2 1037 1 0 2000-04-03 09:51:22.9
3 1024 1 0 2000-04-03 09:51:18.9
4 1027 1 0 2000-04-03 09:51:06.8
5 1018 1 0 2000-04-03 09:51:00.8
6 1020 1 0 2000-04-03 09:50:52.8
7 1018 1 0 2000-04-03 09:50:48.8
8 1020 1 0 2000-04-03 09:50:36.8
9 1020 1 0 2000-04-03 09:50:30.8
10 1028 1 0 2000-04-03 09:50:22.8
For detailed output description, see the corresponding command reference.
FTP Test
Network requirements
As shown in Figure 1-4, both the HWPing client and the FTP server are WX3000 series devices. Perform a HWPing FTP test between the two devices to test the connectivity to the specified FTP server and the time required to upload a file to the server after the connection is established. Both the username and password used to log in to the FTP server are “admin”. The file to be uploaded to the server is cmdtree.txt.
Figure 1-4 Network diagram for the FTP test
Configuration procedure
l Configure FTP Server (Switch B):
Configure FTP server on Switch B. For specific configuration of FTP server, refer to FTP-SFTP-TFTP in H3C WX3000 Series Unified Switches Switching Engine Configuration Guide.
l Configure HWPing Client (Switch A):
# Configure the IP address for the Ethernet interface.
<device> system-view
[device] interface Vlan-interface 1
[device-Vlan-interface1] ip address 10.1.1.1 8
# Enable the HWPing client.
[device] hwping-agent enable
# Create a HWPing test group, setting the administrator name to "administrator" and test tag to "FTP".
[device] hwping administrator ftp
# Configure the test type as ftp.
[device-hwping-administrator-ftp] test-type ftp
# Configure the IP address of the FTP server as 10.2.2.2.
[device-hwping-administrator-ftp] destination-ip 10.2.2.2
# Configure the FTP login username.
[device-hwping-administrator-ftp] username admin
# Configure the FTP login password.
[device-hwping-administrator-ftp] password admin
# Configure the type of FTP operation.
[device-hwping-administrator-ftp] ftp-operation put
# Configure a file name for the FTP operation.
[device-hwping-administrator-ftp] filename cmdtree.txt
# Configure to make 10 probes per test.
[device-hwping-administrator-ftp] count 10
# Set the probe timeout time to 30 seconds.
[device-hwping-administrator-ftp] timeout 30
# Configure the source IP address
[device-hwping-administrator-ftp] source-ip 10.1.1.1
# Start the test.
[device-hwping-administrator-ftp] test-enable
# Display test results
[device-hwping-administrator-ftp] display hwping results administrator ftp
HWPing entry(admin administrator, tag ftp) test result:
Destination ip address:10.2.2.2
Send operation times: 10 Receive response times: 10
Min/Max/Average Round Trip Time: 3245/15891/12157
Square-Sum of Round Trip Time: 1644458573
Last complete test time: 2000-4-3 4:0:34.6
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
[device-hwping-administrator-ftp] display hwping history administrator ftp
HWPing entry(admin administrator, tag ftp) history record:
Index Response Status LastRC Time
1 15822 1 0 2000-04-03 04:00:34.6
2 15772 1 0 2000-04-03 04:00:18.8
3 9945 1 0 2000-04-03 04:00:02.9
4 15891 1 0 2000-04-03 03:59:52.9
5 15772 1 0 2000-04-03 03:59:37.0
6 15653 1 0 2000-04-03 03:59:21.2
7 9792 1 0 2000-04-03 03:59:05.5
8 9794 1 0 2000-04-03 03:58:55.6
9 9891 1 0 2000-04-03 03:58:45.8
10 3245 1 0 2000-04-03 03:58:35.9
For detailed output description, see the corresponding command reference.
If you are downloading a file from the server, you do not need to specify an FTP operation type. For details, see Configuring FTP test on HWPing client.
HTTP Test
Network requirements
As shown in Figure 1-5, Switch serves as the HWPing client, and a PC serves as the HTTP server. Perform a HWPing HTTP test between Switch and the HTTP server to test the connectivity and the time required to download a file from the HTTP server after the connection to the server is established.
Figure 1-5 Network diagram for the HTTP test
Configuration procedure
l Configure HTTP Server:
Use Windows 2003 Server as the HTTP server. For HTTP server configuration, refer to the related instruction on Windows 2003 Server configuration.
l Configure HWPing Client (Switch):
# Enable the HWPing client.
<device> system-view
[device] hwping-agent enable
# Create a HWPing test group, setting the administrator name to "administrator" and test tag to "HTTP".
[device] Hwping administrator http
# Configure the test type as http.
[device-hwping-administrator-http] test-type http
# Configure the IP address of the HTTP server as 10.2.2.2.
[device-hwping-administrator-http] destination-ip 10.2.2.2
# Configure to make 10 probes per test.
[device-hwping-administrator-http] count 10
# Set the probe timeout time to 30 seconds.
[device-hwping-administrator-http] timeout 30
# Start the test.
[device-hwping-administrator-http] test-enable
# Display test results
[device-hwping-administrator-http] display hwping results administrator http
HWPing entry(admin administrator, tag http) test result:
Destination ip address:10.2.2.2
Send operation times: 10 Receive response times: 10
Min/Max/Average Round Trip Time: 47/87/74
Square-Sum of Round Trip Time: 57044
Last succeeded test time: 2000-4-2 20:41:50.4
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
Http result:
DNS Resolve Time: 0 HTTP Operation Time: 675
DNS Resolve Min Time: 0 HTTP Test Total Time: 748
DNS Resolve Max Time: 0 HTTP Transmission Successful Times: 10
DNS Resolve Failed Times: 0 HTTP Transmission Failed Times: 0
DNS Resolve Timeout Times: 0 HTTP Transmission Timeout Times: 0
TCP Connect Time: 73 HTTP Operation Min Time: 27
TCP Connect Min Time: 5 HTTP Operation Max Time: 80
TCP Connect Max Time: 20
TCP Connect Timeout Times: 0
[device-hwping-administrator-http] display hwping history administrator http
HWPing entry(admin administrator, tag http) history record:
Index Response Status LastRC Time
1 13 1 0 2000-04-02 15:15:52.5
2 9 1 0 2000-04-02 15:15:52.5
3 3 1 0 2000-04-02 15:15:52.5
4 3 1 0 2000-04-02 15:15:52.5
5 3 1 0 2000-04-02 15:15:52.5
6 2 1 0 2000-04-02 15:15:52.4
7 3 1 0 2000-04-02 15:15:52.4
8 3 1 0 2000-04-02 15:15:52.4
9 2 1 0 2000-04-02 15:15:52.4
10 2 1 0 2000-04-02 15:15:52.4
For detailed output description, see the corresponding command reference.
For an HTTP test, if configuring the destination address as the host name, you must configure the IP address of the DNS server to resolve the host name into an IP address, which is the destination IP address of this HTTP test.
Jitter Test
Network requirements
Both the HWPing client and the HWPing server are WX3000 series devices. Perform a HWPing jitter test between the two devices to test the delay jitter of the UDP packets exchanged between this end (HWPing client) and the specified destination end (HWPing server), with the port number set to 9000.
Network diagram
Figure 1-6 Network diagram for the Jitter test
Configuration procedure
l Configure HWPing Server (Switch B):
# Enable the HWPing server and configure the IP address and port to listen on.
<device> system-view
[device] hwping-server enable
[device] hwping-server udpecho 10.2.2.2 9000
l Configure HWPing Client (Switch A):
# Enable the HWPing client.
<device> system-view
[device] hwping-agent enable
# Create a HWPing test group, setting the administrator name to "administrator" and test tag to "Jitter".
[device] hwping administrator Jitter
# Configure the test type as jitter
[device-hwping-administrator-Jitter] test-type Jitter
# Configure the IP address of the HWPing server as 10.2.2.2.
[device-hwping-administrator-Jitter] destination-ip 10.2.2.2
# Configure the destination port on the HWPing server.
[device-hwping-administrator-Jitter] destination-port 9000
# Configure to make 10 probes per test.
[device-hwping-administrator-http] count 10
# Set the probe timeout time to 30 seconds.
[device-hwping-administrator-Jitter] timeout 30
# Start the test.
[device-hwping-administrator-Jitter] test-enable
# Display test results
[device-hwping-administrator-Jitter] display hwping results administrator Jitter
HWPing entry(admin administrator, tag Jitter) test result:
Destination ip address:10.2.2.2
Send operation times: 100 Receive response times: 100
Min/Max/Average Round Trip Time: 9/21/13
Square-Sum of Round Trip Time: 18623
Last complete test time: 2000-4-2 8:14:58.2
Extend result:
SD Maximal delay: 10 DS Maximal delay: 10
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
Jitter result:
RTT Number:100
Min Positive SD:1 Min Positive DS:1
Max Positive SD:6 Max Positive DS:8
Positive SD Number:38 Positive DS Number:25
Positive SD Sum:85 Positive DS Sum:42
Positive SD average:2 Positive DS average:1
Positive SD Square Sum:267 Positive DS Square Sum:162
Min Negative SD:1 Min Negative DS:1
Max Negative SD:6 Max Negative DS:8
Negative SD Number:30 Negative DS Number:24
Negative SD Sum:64 Negative DS Sum: 41
Negative SD average:2 Negative DS average:1
Negative SD Square Sum:200 Negative DS Square Sum:161
SD lost packets number:0 DS lost packet number:0
Unknown result lost packet number:0
[device-hwping-administrator-Jitter] display hwping history administrator Jitter
HWPing entry(admin administrator, tag Jitter) history record:
Index Response Status LastRC Time
1 274 1 0 2000-04-02 08:14:58.2
2 278 1 0 2000-04-02 08:14:57.9
3 280 1 0 2000-04-02 08:14:57.6
4 279 1 0 2000-04-02 08:14:57.3
5 280 1 0 2000-04-02 08:14:57.1
6 270 1 0 2000-04-02 08:14:56.8
7 275 1 0 2000-04-02 08:14:56.5
8 263 1 0 2000-04-02 08:14:56.2
9 270 1 0 2000-04-02 08:14:56.0
10 275 1 0 2000-04-02 08:14:55.7
For detailed output description, see the corresponding command reference.
SNMP Test
Network requirements
Both the HWPing client and the SNMP Agent are WX3000 series devices. Perform HWPing SNMP tests between the two devices to test the time required from Switch A sends an SNMP query message to Switch B (SNMP Agent) to it receives a response from Switch B.
Network diagram
Figure 1-7 Network diagram for the SNMP test
Configuration procedure
l Configure SNMP Agent (Switch B):
# Start SNMP agent and set SNMP version to V2C, read-only community name to "public", and read-write community name to "private".
<Sysname> system-view
[Sysname] snmp-agent
[Sysname] snmp-agent sys-info version v2c
[Sysname] snmp-agent community read public
[Sysname] snmp-agent community write private
l The SNMP network management function must be enabled on SNMP agent before it can receive response packets.
l The SNMPv2c version is used as reference in this example. This configuration may differ if the system uses any other version of SNMP. For details, see SNMP – RMON in H3C WX3000 Series Unified Switches Switching Engine Configuration Guide.
l Configure HWPing Client (Switch A):
# Enable the HWPing client.
<device> system-view
[device] hwping-agent enable
# Create a HWPing test group, setting the administrator name to "administrator" and test tag to "snmp".
[device] Hwping administrator snmp
# Configure the test type as snmp.
[device-hwping-administrator-snmp] test-type snmpquery
# Configure the destination IP address as 10.2.2.2.
[device-hwping-administrator-snmp] destination-ip 10.2.2.2
# Configure to make 10 probes per test.
[device-hwping-administrator-snmp] count 10
# Set the probe timeout time to 30 seconds.
[device-hwping-administrator-snmp] timeout 30
# Start the test.
[device-hwping-administrator-snmp] test-enable
# Display test results
[device-hwping-administrator-snmp] display hwping results administrator snmp
HWPing entry(admin administrator, tag snmp) test result:
Destination ip address:10.2.2.2
Send operation times: 10 Receive response times: 10
Min/Max/Average Round Trip Time: 9/11/10
Square-Sum of Round Trip Time: 983
Last complete test time: 2000-4-3 8:57:20.0
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
[device-hwping-administrator-snmp] display hwping history administrator snmp
HWPing entry(admin administrator, tag snmp) history record:
Index Response Status LastRC Time
1 10 1 0 2000-04-03 08:57:20.0
2 10 1 0 2000-04-03 08:57:20.0
3 10 1 0 2000-04-03 08:57:20.0
4 10 1 0 2000-04-03 08:57:19.9
5 9 1 0 2000-04-03 08:57:19.9
6 11 1 0 2000-04-03 08:57:19.9
7 10 1 0 2000-04-03 08:57:19.9
8 10 1 0 2000-04-03 08:57:19.9
9 10 1 0 2000-04-03 08:57:19.8
10 10 1 0 2000-04-03 08:57:19.8
For detailed output description, see the corresponding command reference.
TCP Test (Tcpprivate Test) on the Specified Ports
Network requirements
Both the HWPing client and the HWPing server are WX3000 series devices. Perform a HWPing Tcpprivate test to test time required to establish a TCP connection between this end (Switch A) and the specified destination end (Switch B), with the port number set to 8000.
Network diagram
Figure 1-8 Network diagram for the Tcpprivate test
Configuration procedure
l Configure HWPing Server (Switch B):
# Enable the HWPing server and configure the IP address and port to listen on.
<device> system-view
[device] hwping-server enable
[device] hwping-server tcpconnect 10.2.2.2 8000
l Configure HWPing Client (Switch A):
# Enable the HWPing client.
<device> system-view
[device] hwping-agent enable
# Create a HWPing test group, setting the administrator name to "administrator" and test tag to "tcpprivate".
[device] Hwping administrator tcpprivate
# Configure the test type as tcpprivate.
[device-hwping-administrator-tcpprivate] test-type tcpprivate
# Configure the IP address of the HWPing server as 10.2.2.2.
[device-hwping-administrator-tcpprivate] destination-ip 10.2.2.2
# Configure the destination port on the HWPing server.
[device-hwping-administrator-tcpprivate] destination-port 8000
# Configure to make 10 probes per test.
[device-hwping-administrator-tcpprivate] count 10
# Set the probe timeout time to 5 seconds.
[device-hwping-administrator-tcpprivate] timeout 5
# Start the test.
[device-hwping-administrator-tcpprivate] test-enable
# Display test results.
[device-hwping-administrator-tcpprivate] display hwping results administrator tcpprivate
HWPing entry(admin administrator, tag tcpprivate) test result:
Destination ip address:10.2.2.2
Send operation times: 10 Receive response times: 10
Min/Max/Average Round Trip Time: 4/7/5
Square-Sum of Round Trip Time: 282
Last complete test time: 2000-4-2 8:26:2.9
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
[device-hwping-administrator-tcpprivate] display hwping history administrator tcpprivate
HWPing entry(admin administrator, tag tcpprivate) history record:
Index Response Status LastRC Time
1 4 1 0 2000-04-02 08:26:02.9
2 5 1 0 2000-04-02 08:26:02.8
3 4 1 0 2000-04-02 08:26:02.8
4 5 1 0 2000-04-02 08:26:02.7
5 4 1 0 2000-04-02 08:26:02.7
6 5 1 0 2000-04-02 08:26:02.6
7 6 1 0 2000-04-02 08:26:02.6
8 7 1 0 2000-04-02 08:26:02.5
9 5 1 0 2000-04-02 08:26:02.5
10 7 1 0 2000-04-02 08:26:02.4
For detailed output description, see the corresponding command reference.
UDP Test (Udpprivate Test) on the Specified Ports
Network requirements
Both the HWPing client and the HWPing server are WX3000 series devices. Perform a HWPing Udpprivate test on the specified ports between the two devices to test the RTT of UDP packets between this end (HWPing client) and the specified destination end (HWPing server), with the port number set to 8000.
Network diagram
Figure 1-9 Network diagram for the Udpprivate test
Configuration procedure
l Configure HWPing Server (Switch B):
# Enable the HWPing server and configure the IP address and port to listen on.
<device> system-view
[device] hwping-server enable
[device] hwping-server udpecho 10.2.2.2 8000
l Configure HWPing Client (Switch A):
# Enable the HWPing client.
<device> system-view
[device] hwping-agent enable
# Create a HWPing test group, setting the administrator name to "administrator" and test tag to "udpprivate".
[device] Hwping administrator udpprivate
# Configure the test type as udpprivate.
[device-hwping-administrator-udpprivate] test-type udpprivate
# Configure the IP address of the HWPing server as 10.2.2.2.
[device-hwping-administrator-udpprivate] destination-ip 10.2.2.2
# Configure the destination port on the HWPing server.
[device-hwping-administrator-udpprivate] destination-port 8000
# Configure to make 10 probes per test.
[device-hwping-administrator-udpprivate] count 10
# Set the probe timeout time to 5 seconds.
[device-hwping-administrator-udpprivate] timeout 5
# Start the test.
[device-hwping-administrator-udpprivate] test-enable
# Display test results.
[device-hwping-administrator-udpprivate] display hwping results administrator udpprivate
HWPing entry(admin administrator, tag udpprivate) test result:
Destination ip address:10.2.2.2
Send operation times: 10 Receive response times: 10
Min/Max/Average Round Trip Time: 10/12/10
Square-Sum of Round Trip Time: 1170
Last complete test time: 2000-4-2 8:29:45.5
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
[device-hwping-administrator-udpprivate] display hwping history administrator udpprivate
HWPing entry(admin administrator, tag udpprivate) history record:
Index Response Status LastRC Time
1 11 1 0 2000-04-02 08:29:45.5
2 12 1 0 2000-04-02 08:29:45.4
3 11 1 0 2000-04-02 08:29:45.4
4 11 1 0 2000-04-02 08:29:45.4
5 11 1 0 2000-04-02 08:29:45.4
6 11 1 0 2000-04-02 08:29:45.4
7 10 1 0 2000-04-02 08:29:45.3
8 10 1 0 2000-04-02 08:29:45.3
9 10 1 0 2000-04-02 08:29:45.3
10 11 1 0 2000-04-02 08:29:45.3
For detailed output description, see the corresponding command reference.
DNS Test
Network requirements
Switch serves as the HWPing client, and a PC serves as the DNS server. Perform a HWPing DNS test between Switch and the DNS server to test the time required from the client sends a DNS request to it receives a resolution result from the DNS server.
Network diagram
Figure 1-10 Network diagram for the DNS test
Configuration procedure
l Configure DNS Server:
Use Windows 2003 Server as the DNS server. For DNS server configuration, refer to the related instruction on Windows 2003 Server configuration.
l Configure HWPing Client (Switch)
# Enable the HWPing client.
<device> system-view
[device] hwping-agent enable
# Create a HWPing test group, setting the administrator name to "administrator" and test tag to "dns".
[device] hwping administrator dns
# Configure the test type as dns.
[device-hwping-administrator-dns] test-type dns
# Configure the IP address of the DNS server as 10.2.2.2.
[device-hwping-administrator-dns] dns-server 10.2.2.2
# Configure to resolve the domain name www.test.com.
[device-hwping-administrator-dns] dns resolve-target www.test.com
# Configure to make 10 probes per test.
[device-hwping-administrator-dns] count 10
# Set the probe timeout time to 5 seconds.
[device-hwping-administrator-dns] timeout 5
# Start the test.
[device-hwping-administrator-dns] test-enable
# Display test results.
[device-hwping-administrator-dns] display hwping results administrator dns
HWPing entry(admin administrator, tag dns) test result:
Destination ip address:10.2.2.2
Send operation times: 10 Receive response times: 10
Min/Max/Average Round Trip Time: 6/10/8
Square-Sum of Round Trip Time: 756
Last complete test time: 2006-11-28 11:50:40.9
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
Dns result:
DNS Resolve Current Time: 10 DNS Resolve Min Time: 6
DNS Resolve Times: 10 DNS Resolve Max Time: 10
DNS Resolve Timeout Times: 0 DNS Resolve Failed Times: 0
[device-hwping-administrator-dns] display hwping history administrator dns
HWPing entry(admin administrator, tag dns) history record:
Index Response Status LastRC Time
1 10 1 0 2006-11-28 11:50:40.9
2 10 1 0 2006-11-28 11:50:40.9
3 10 1 0 2006-11-28 11:50:40.9
4 7 1 0 2006-11-28 11:50:40.9
5 8 1 0 2006-11-28 11:50:40.9
6 6 1 0 2006-11-28 11:50:40.9
7 8 1 0 2006-11-28 11:50:40.9
8 9 1 0 2006-11-28 11:50:40.9
9 9 1 0 2006-11-28 11:50:40.9
10 9 1 0 2006-11-28 11:50:40.9
For detailed output description, see the corresponding command reference.