9-9
Catalyst 6500 Series Content Switching Module Configuration Note
OL-4612-01
Chapter 9 Configuring Health Monitoring
Configuring HTTP Return Code Checking
Configuring HTTP Return Code Checking
When you configure return error code checking, you configure the attributes of a server farm and
associate it with a return code map.
To configure the return code checking, follow these steps:
Step 1 Verify that you have configured HTTP virtual servers. (See the “Configuring Redirect Virtual Servers”
section on page 6-5.)
Step 2 Enter the map return code command to enable return code mapping and enter the return code map
submode:
Router(config-module-csm)# map
name
retcode
Step 3 Configure the return code parsing:
Router(config-slb-map-retcode)# match protocol http retcode
min max
action [count | log |
remove]
threshold
[reset
seconds
]
You can set up as many matches as you want in the map.
Step 4 Assign a return code map to a server farm:
Router(config-slb-sfarm)# retcode-map
name
This example shows how to enable return error code checking:
Router(config-module-csm)# map httpcodes retcode
Route(config-slb-map-retcode)# match protocol http retcode 401 401 action log 5 reset 120
Route(config-slb-map-retcode)# match protocol http retcode 402 415 action count
Route(config-slb-map-retcode)# match protocol http retcode 500 500 action remove 3 reset 0
Route(config-slb-map-retcode)# match protocol http retcode 503 503 action remove 3 reset 0
Route(config-slb-map-retcode)# exit
Router(config-module-csm)# serverfarm farm1
Router(config-slb-sfarm)# retcode-map httpcodes
Router(config-slb-sfarm)# exit
Router(config-module-csm)# end