![Nortel Web OS 10.0 Application Manual Download Page 227](http://html1.mh-extra.com/html/nortel/web-os-10-0/web-os-10-0_application-manual_1707274227.webp)
Web OS 10.0 Application Guide
Chapter 10: Health Checking
n
227
212777-A, February 2002
Scripting Guidelines
n
Use generic result codes that are standard and defined by the RFC, as applicable. This
helps ensure that if the customer changes server software, the servers won’t start failing
unexpectedly.
n
Search only for the smallest and most concise piece of information possible. Each script
cannot exceed 1K in size, so use the space wisely.
n
Avoid tasks that may take a long time to perform or the health check will fail. For exam-
ple, avoid tasks that exceed the interval for load balancing.
Script Configuration Examples
Script Example 1: A Basic Health Check
Configure the switch to check a series of Web pages (HTML or dynamic CGI scripts) before it
declares a real server is available to receive requests.
N
OTE
–
If you are using the CLI to create a health check script, you must use quotes (“) to
indicate the beginning and end of each command string.
N
OTE
–
When you are using the command line interface to enter the
send
string as an argu-
ment to the
send
command, you must type two “\”s before an “n” or “r.” If you are instead
prompted for the line, that is, the text string is entered after hitting <return>, then only one “\”
is needed before the “n” or “r.”
/cfg/slb/group x/health script1/content none
/cfg/slb/adv/script1
open
80
send
"GET /index.html HTTP/1.1\\r\\nHOST:www.hostname.com\\r\\n\\r\\n"
expect
"HTTP/1.1 200"
close
open
80
send
"GET /script.cgi HTTP/1.1\\r\\nHOST:www.hostname.com\\r\\n\\r\\n"
expect
"HTTP/1.1 200"
close
open
443
…
close
Summary of Contents for Web OS 10.0
Page 26: ...Web OS 10 0 Application Guide 26 n Basic Switching Routing 212777 A February 2002...
Page 116: ...Web OS 10 0 Application Guide 116 n Web Switching Fundamentals 212777 A February 2002...
Page 168: ...Web OS 10 0 Application Guide 168 n Chapter 6 Server Load Balancing 212777 A February 2002...
Page 216: ...Web OS 10 0 Application Guide 216 n Chapter 8 Application Redirection 212777 A February 2002...
Page 288: ...Web OS 10 0 Application Guide 288 n Advanced Web Switching 212777 A February 2002...
Page 440: ...Web OS 10 0 Application Guide 440 n Chapter 16 Persistence 212777 A February 2002...
Page 470: ...Web OS 10 0 Application Guide 470 n Chapter 17 Bandwidth Management 212777 A February 2002...
Page 474: ...Web OS 10 0 Application Guide 474 n Glossary 212777 A February 2002...