Chapter 2 Content Switching Module with SSL Commands

match protocol http retcode (return code map submode)

match protocol http retcode (return code map submode)

To specify return code thresholds, count and log return codes, and send syslog messages for return code events received from the servers, use the match protocol http retcode command in SLB return code map configuration submode. To remove the return code thresholds, use the no form of this command.

match protocol http retcode min max action {count log remove} threshold [reset seconds]

no match protocol http retcode min max

Syntax Description

 

min max

Minimum and maximum range of return codes used to perform a

 

 

 

count, log, or remove action.

 

 

 

 

 

 

 

action count

Increments the statistics of the number of occurrences of return codes

 

 

 

received.

 

 

 

 

 

 

 

action log

Specifies where syslog messages are sent when a threshold is

 

 

 

reached.

 

 

 

 

 

 

 

action remove

Specifies where the syslog messages are sent when a threshold is

 

 

 

reached and the server is removed from service.

 

 

 

 

 

 

 

threshold

The number of return occurrences before the log or remove action is

 

 

 

taken.

 

 

 

 

 

 

 

reset seconds

(Optional) Number of seconds to wait before the processing can

 

 

 

resume.

 

 

 

 

 

 

 

 

 

Defaults

 

This command has no default settings.

 

 

 

 

Command Modes

 

SLB return code map configuration submode

 

 

 

 

 

Command History

 

Release

Modification

 

 

 

 

 

 

 

 

CSM release 2.2(1)

This command was introduced.

 

 

 

 

 

 

 

CSM-S release 1.1(1)

This command was introduced.

 

 

 

 

 

 

The threshold and reset values are not configurable for the count action. These commands only are

Usage Guidelines

 

 

 

available for the log and remove actions.

 

 

 

 

Examples

 

This example shows how to specify return codes values to search for in an HTTP request:

 

 

Cat6k-2(config-slb-map-retcode)#match protocol http retcode 30 50 action log 400 reset 30

 

 

map retcode (SLB policy configuration submode)

Related Commands

 

Catalyst 6500 Series Switch Content Switching Module with SSL Command Reference

2-32

OL-7029-01

 

 

Page 54
Image 54
Cisco Systems OL-7029-01 Match protocol http retcode return code map submode, Action count, Action log, Action remove