beautypg.com

Http operation configuration example, Network requirements, Configuration procedure – H3C Technologies H3C SecBlade LB Cards User Manual

Page 142

background image

134

HTTP operation configuration example

Network requirements

As shown in

Figure 52

, configure an HTTP operation on the NQA client to test the time required to obtain

data from the HTTP server.

Figure 52 Network diagram

Configuration procedure

# Assign each interface an IP address. (Details not shown.)
# Configure static routes or a routing protocol to make sure the devices can reach each other. (Details not

shown.)
# Create an HTTP operation.

system-view

[LB] nqa entry admin test1

[LB-nqa-admin-test1] type http

# Specify the IP address of the HTTP server 10.2.2.2 as the destination IP address.

[LB-nqa-admin-test1-http] destination ip 10.2.2.2

# Configure the HTTP operation to get data from the HTTP server. (The default HTTP operation type is get,
and this step can be omitted.)

[LB-nqa-admin-test1-http] operation get

# Configure the HTTP operation to visit the website /index.htm.

[LB-nqa-admin-test1-http] url /index.htm

# Configure the operation to use HTTP version 1.0. (Version 1.0 is the default version, and this step can
be omitted.)

[LB-nqa-admin-test1-http] http-version v1.0

# Enable the saving of history records.

[LB-nqa-admin-test1-http] history-record enable

[LB-nqa-admin-test1-http] quit

# Start the HTTP operation.

[LB] nqa schedule admin test1 start-time now lifetime forever

# Stop the HTTP operation after a period of time.

[LB] undo nqa schedule admin test1

# Display the results of the HTTP operation.

[LB] display nqa result admin test1

NQA entry (admin admin, tag test1) test results:

Destination IP address: 10.2.2.2

Send operation times: 1 Receive response times: 1

Min/Max/Average round trip time: 64/64/64

Square-Sum of round trip time: 4096

This manual is related to the following products: