Scripting Guidelines; Script Configuration Examples - Nortel Web OS Switch Software Application Manual

Switch software
Table of Contents

Advertisement

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
indicate the beginning and end of each command string.
/cfg/slb/group x/health script1/content none
/cfg/slb/adv/script1
open
send
expect
close
open
send
expect
close
open
...
close
N
OTE
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."
212777-A, February 2002
If you are using the CLI to create a health check script, you must use quotes (") to
80
"GET /index.html HTTP/1.1\\r\\nHOST:www.hostname.com\\r\\n\\r\\n"
"HTTP/1.1 200"
80
"GET /script.cgi HTTP/1.1\\r\\nHOST:www.hostname.com\\r\\n\\r\\n"
"HTTP/1.1 200"
443
When you are using the command line interface to enter the send string as an argu-
Web OS 10.0 Application Guide
Chapter 10: Health Checking
n
227

Advertisement

Table of Contents
loading

This manual is also suitable for:

Web os 10.0

Table of Contents