Catalyst 6500 Series Switch Content Switching Module Command Reference Software Release 4.1(1)
Chapter 1 Using Content Switching Module Commands
Downloads: This chapterpdf (PDF - 181.0 KB) The complete bookPDF (PDF - 4.6 MB) | Feedback

Using Content Switching Module Commands

Table Of Contents

Using Content Switching Module Commands

Using the CSM Commands

Command Modes

Regular Expressions

Using Content Switching Module Commands

This chapter describes how to use the CSM commands and contains the following sections:

Using the CSM Commands

Command Modes

Using the CSM Commands

This section provides a brief introduction to using CSM commands and where to go for more information on configuring and using your CSM.

You will use these CSM commands for basic tasks:


write memory

Saving the configuration

write terminal

Viewing the configuration

logging buffered debugging

Accumulating system log (syslog) messages

show logging

Viewing system log (syslog) messages

clear logging

Clearing the message buffer

With the CSM command-line interface (CLI), you can do the following tasks:

Check the syntax before entering a command.

Enter a command and press the ? key to view a quick summary, or precede a command with the help command,(help aaa, for example).

Abbreviate commands.

You can use the config t command to start configuration mode, the write t command statement to list the configuration, and the write m commmand to write to Flash memory. In most commands, the show command can be abbreviated as sh. This feature is called command completion.

Review possible port and protocol numbers at the following Internet Assigned Numbers Authority (IANA) websites:

Create your configuration in a text editor, and then cut and paste it into the configuration.

You can paste in a line at a time or the whole configuration. Always check your configuration after pasting large blocks of text to be sure that all of the text was copied.

For information about how to build your CSM configuration, refer to the Catalyst 6500 Series Content Switching Module Installation and Configuration Note at the following URL:

Command Modes

The CSM contains a command set based on Cisco IOS technologies and provides configurable command privilege modes based on the following command modes:

Note When using the CSM on a switch running the Catalyst operating system and Cisco IOS, you must session to the Mutilayer Switch Feature Card (MSFC) for the router prompt.

Unprivileged mode

The unprivileged mode allows you to view CSM settings. The unprivileged mode prompt appears as follows when you first access the CSM:


Privileged mode

Any unprivileged mode command will work in privileged mode. Use the enable command to start the privileged mode from the unprivileged mode as follows:

Router> enable

The # prompt is displayed.

Use the exit or end commands to exit privileged mode and return to unprivileged mode as follows:

Router# exit


Type help or '?' for a list of available commands.

Use the disable command to exit privileged mode and return to unprivileged mode as follows:

Router# disable

Configuration mode

The configuration mode allows you to change the CSM configuration. All privileged, unprivileged, and configuration commands are available in this mode. Use the configure terminal command to start the configuration mode as follows:

Router# configure terminal

Use the exit or end commands to exit configuration mode and return to privileged mode as follows:

Router(config)# end

Use the disable command to exit configuration mode and return to unprivileged mode as follows:

Router(config)# disable


When you are in a submode, the prompt changes to:


Regular Expressions

Regular expressions used in CSM commands are based on the UNIX filename specification. You will use regular expressions in these commands:

match protocol http cookie (cookie map submode), page 2-21

match protocol http header (header map submode), page 2-26

match protocol http url (URL map submode), page 2-30


Zero or more characters


Exactly one character—the [Ctrl + V] key combination must be entered


Escaped character



Bracketed range (for example, [0-9])

Matching any single character from the range

Leading ^ in a range

Do not match any in the range


Alert (ASCII 7)


Backspace (ASCII 80


Form-feed (ASCII 12)


Newline (ASCII 10)


Carriage return (ASCII 13)


Tab (ASCII 9)


Vertical tab (ASCII 11)


Null (ASCII 0)




Any ASCII character as specified in two-digit hexadecimal notation