9-4 Px Series Application Switch Installation and Configuration Guid e
Configuring Health Checks
Before health checks can be configured, make sure that the server group that they w ill
apply to has been created. See Chapter5 for information on configuring server groups.

Types of Health Checks

Only the highest protocol health check is done for a server group. For example, if TCP
open is configured, the ping health check is not done. Similarly, if an HTTP check is
being done, no TCP open or ping check is done.
To configure ping checks, use the following command:
config server-group name s g1 health-che ck ping
For TCP open checks, use the following command:
config server-group name s g1 health-che ck tcp-open
To check for a return code, add the following command:
config server-group name s g1 health-che ck tcp-open ret urn “HELLO”
HTTP health checks are configured in a similar manner. To do a “head /” on the server,
simply configure the following:
configure server-group na me extr health -check http
To request a certain object, use the following command:
config server-group name s g1 health-che ck http object i ndex.html
To ensure that object contains the specified string, use the following command:
config server-group name s g1 health-che ck object index .html retur n
“Welcome”

Timers and Counters

To configure the global timers for health check, use the following commands:
config health-check inter val <number of seconds>
config health-check retry -interval <num ber of seconds >