6-9
Catalyst 6500 Series Content Switching Module Configuration Note
OL-4612-01
Chapter 6 Configuring Virtual Servers, Maps, and Policies
Configuring Maps
To add a cookie map, perform this task:
This example shows how to configure maps and associate them with a policy:
Router(config-module-csm)# serverfarm
pl_url_url_1
Router(config-slb-sfarm)# real 10.8.0.26
Router(config-slb-real)# inservice
Router(config-slb-real)# exit
Router(config-slb-sfarm)# exit
Router(config-slb-policy)# serverfarm
pl_url_url_1
Router(config-slb-policy)# url-map
url_1
Router(config-slb-policy)# exit
Router(config-module-csm)# serverfarm
pl_url_url_2
Router(config-slb-sfarm)# real 10.8.0.27
Router(config-slb-real)# inservice
Router(config-slb-real)# exit
Table 6-1 Special Characters for Matching String Expressions
Convention Description
* Zero or more characters.
? Exactly one character.
Note You must precede the question mark with a Ctrl-V
command to prevent the CLI Parser from
interpretingit as a help request
\ Escaped character.
Bracketed range [0-9] Matching any single character from the range.
A leading ^ in a range Do not match any in the range. All other characters
represent themselves.
.\a Alert (ASCII 7).
.\b Backspace (ASCII 8).
.\f Form-feed (ASCII 12).
.\n New line (ascii 10).
.\r Carriage return (ASCII 13).
.\t Tab (ASCII 9).
.\v Vertical tab (ASCII 11).
.\0 Null (ASCII 0).
.\\ Backslash.
.\x## Any ASCII character as specified in two-digit hex notation.
Command Purpose
Step 1
Router(config)# map
cookie-map-name
cookie
Configures multiple cookies into a cookie map
1
.
1. The no form of this command restores the defaults.
Step 2
Router(config-slb-map-cookie)# match
protocol http cookie
cookie-name
cookie-value
cookie-value-expression
Configures multiple cookies
1
.