tm sessionPolicy¶
The following operations can be performed on "tm sessionPolicy":
add tm sessionPolicy¶
Creates a traffic management (TM) session policy, which is applied after the user logs on to the AAA virtual server, to customize user sessions.
Synopsys¶
add tm sessionPolicy <name> <rule> <action>
Arguments¶
name
Name for the session policy. 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. Cannot be changed after a session policy 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 policy" or 'my policy').
rule
Expression, against which traffic is evaluated. Written in the classic syntax.
Maximum length of a string literal in the expression is 255 characters. A longer string can be split into smaller strings of up to 255 characters each, and the smaller strings concatenated with the + operator. For example, you can create a 500-character string as follows: '"<string of 255 characters>" + "<string of 245 characters>"'
The following requirements apply only to the NetScaler CLI:
-
If the expression includes one or more spaces, enclose the entire expression in double quotation marks.
-
If the expression itself includes double quotation marks, escape the quotations by using the \ character.
-
Alternatively, you can use single quotation marks to enclose the rule, in which case you do not have to escape the double quotation marks.
action
Action to be applied to connections that match this policy.
rm tm sessionPolicy¶
Removes an existing traffic management (TM) session policy.
Synopsys¶
rm tm sessionPolicy <name>
Arguments¶
name
Name of the session policy to remove.
set tm sessionPolicy¶
Modifies the rule or action of an existing traffic management (TM) session policy.
Synopsys¶
set tm sessionPolicy <name> [-rule <expression>] [-action <string>]
Arguments¶
name
Name of the session policy to modify.
rule
Expression, against which traffic is evaluated. Written in the classic syntax.
Maximum length of a string literal in the expression is 255 characters. A longer string can be split into smaller strings of up to 255 characters each, and the smaller strings concatenated with the + operator. For example, you can create a 500-character string as follows: '"<string of 255 characters>" + "<string of 245 characters>"'
The following requirements apply only to the NetScaler CLI:
-
If the expression includes one or more spaces, enclose the entire expression in double quotation marks.
-
If the expression itself includes double quotation marks, escape the quotations by using the \ character.
-
Alternatively, you can use single quotation marks to enclose the rule, in which case you do not have to escape the double quotation marks.
action
Action to be applied to connections that match this policy.
unset tm sessionPolicy¶
Use this command to remove tm sessionPolicy settings.Refer to the set tm sessionPolicy command for meanings of the arguments.
Synopsys¶
unset tm sessionPolicy <name> [-rule] [-action]
show tm sessionPolicy¶
Displays information about all the configured traffic management (TM) session policies, or displays detailed information about the specified TM session policy.
Synopsys¶
show tm sessionPolicy [<name>]
Arguments¶
name
Name of the session policy for which to display detailed information.
Outputs¶
rule
Expression, against which traffic is evaluated. Written in the classic syntax.
Maximum length of a string literal in the expression is 255 characters. A longer string can be split into smaller strings of up to 255 characters each, and the smaller strings concatenated with the + operator. For example, you can create a 500-character string as follows: '"<string of 255 characters>" + "<string of 245 characters>"'
The following requirements apply only to the NetScaler CLI:
-
If the expression includes one or more spaces, enclose the entire expression in double quotation marks.
-
If the expression itself includes double quotation marks, escape the quotations by using the \ character.
-
Alternatively, you can use single quotation marks to enclose the rule, in which case you do not have to escape the double quotation marks.
action
Action to be applied to connections that match this policy.
boundTo
The entity name to which policy is bound
activePolicy
priority
bindPolicyType
policyType
builtin
Indicates that a variable is a built-in (SYSTEM INTERNAL) type.
devno
count
stateflag