Brocade Virtual ADX Server Load Balancing Guide (Supporting ADX v03.1.00) User Manual
Page 228
![background image](/manuals/361724/228/background.png)
212
Brocade Virtual ADX Server Load Balancing Guide
53-1003247-01
Health check with content match
4
The following commands configure a port profile for port 12345 and specify that the port is a TCP
port. The no-fast-bringup command is necessary because it prevents the Brocade Virtual ADX from
marking a port ACTIVE until it passes both Layer 4 and Layer 7 health checks.
Virtual ADX(config)#server port 12345
Virtual ADX(config-port-12345)#tcp
Virtual ADX(config-port-12345)#no-fast-bringup
Syntax: server port TCP/UDP-portnum
Syntax: tcp | udp [keepalive interval retries]
Syntax: no-fast-bringup
Configuring a matching list
The selection criteria used in a content verification health check is specified in a matching list that
is bound to one or more real servers. The syntax used for creating a matching list for scripted
health checks is the same as that used for creating a matching list for HTTP content verification
health checks.
The following is an example of a matching list that will mark a port ACTIVE if the string “FTP service”
is found in the response from the real server. If this text is not found, the port on the real server is
marked FAILED.
Virtual ADX(config)#http match-list m1
Virtual ADX(config-http-m1-m1)#up simple "FTP service"
Virtual ADX(config-http-m1-m1)#default down
Virtual ADX(config-http-ml-m1)#exit
In this example, the default down command causes the port on the real server to be marked
FAILED if the selection criteria is not found in the response from the server.
For information on the command syntax, refer to
“Configuring HTTP content matching lists”
Binding the matching list to the real server
To enable the scripted health check on the Brocade Virtual ADX, you bind the matching list to one
or more real servers. For example, to bind matching list m1 to real server R, enter commands such
as the following.
Virtual ADX(config)#server real R 10.10.10.50
Virtual ADX(config-rs-R)#port 12345 content-check m1
Syntax: port portnum content-check matching-list-name
The portnum variable specifies a non-well-known port. You cannot specify a well-known port for a
scripted health check.
The matching-list-name variable specifies a previously configured matching list. If the
matching-list-name does not refer to an existing matching list, the port on the real server is marked
FAILED when the health check is performed.