Skip to content

cs action

The following operations can be performed on "cs action":

add | rm | set | unset | show | rename

add cs action

Creates an action that indicates the target load balancing virtual server. This action is used to specify the target load balancing virtual server while defining a policy to support multiple policy bind support.

Synopsys

add cs action <name> (-targetLBVserver <string> | -targetVserverExpr <expression>) [-comment <string>]

Arguments

name

Name for the content switching action. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the content switching action is created.

The following requirement applies only to the NetScaler CLI:

If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, ?my action? or ?my action?).

targetLBVserver

Name of the load balancing virtual server to which the content is switched.

targetVserverExpr

Information about this content switching action.

comment

Comments associated with this cs action.

Example

add cs action -targetLBVserver act1 lb1

rm cs action

Removes a content switching action.

Synopsys

rm cs action <name>

Arguments

name

Name of the cs action.

Example

rm cs action act_before

set cs action

Modifies the configuration settings of a content switching action.

Synopsys

set cs action <name> (-targetLBVserver <string> | -targetVserverExpr <expression>) [-comment <string>]

Arguments

name

Name for the content switching action. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the content switching action is created.

The following requirement applies only to the NetScaler CLI:

If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, ?my action? or ?my action?).

targetLBVserver

Name of the load balancing virtual server to which the content is switched.

targetVserverExpr

Information about this content switching action.

comment

Comments associated with this cs action.

Example

set cs action act1 -targetLBVserver lb2 -comment 'for url'

unset cs action

Use this command to remove cs action settings.Refer to the set cs action command for meanings of the arguments.

Synopsys

unset cs action <name> -comment

show cs action

Displays the configuration settings of the specified content switching action or lists all the content switching actions configured on the appliance.

Synopsys

show cs action [<name>]

Arguments

name

Name of the content switching action.

summary

fullValues

format

level

Outputs

stateflag

targetLBVserver

Target LB vserver name.

targetVserverExpr

Target LB vserver expression.

hits

The number of times the action has been taken.

referenceCount

The number of references to the action.

undefHits

The number of times the action resulted in UNDEF.

builtin

comment

Comments associated with this cs action.

devno

count

Example

show cs action

rename cs action

Renames a content switching action.

Synopsys

rename cs action <name>@ <newName>@

Arguments

name

Existing name of the content switching action.

newName

New name for the content switching action. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters.

The following requirement applies only to the NetScaler CLI:

If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, ?my name? or ?my name?).

Example

rename cs action oldname newname

Was this article helpful?