ADC CLI Commands

cache-policylabel

The following operations can be performed on “cache-policylabel”:

add unbind rename show stat rm bind

add cache policylabel

Creates a user-defined cache policy label. A policy label is a bind point of a group of policies.

Synopsis

add cache policylabel -evaluates

Arguments

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

evaluates When to evaluate policies bound to this label: request-time or response-time.

Possible values: REQ, RES, MSSQL_REQ, MSSQL_RES, MYSQL_REQ, MYSQL_RES, HTTPQUIC_REQ, HTTPQUIC_RES

Example

add cache policylabel cache_http_url -evaluates REQ

unbind cache policylabel

Unbinds a policy from a cache-policy label.

Synopsis

unbind cache policylabel -policyName [-priority ]

Arguments

labelName Name of the cache policy label from which to unbind the policy.

policyName Name of the policy to unbind from the label.

priority Required only if you want to unbind a NOPOLICY that might have been bound to this policy label. Minimum value: 1 Maximum value: 2147483647

Example

unbind cache policylabel cache_http_url pol_1

rename cache policylabel

Renames a cache-policy label.

Synopsis

rename cache policylabel @ @

Arguments

labelName Existing name of the cache-policy label.

newName New name for the cache-policy label. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters.

Example

rename cache policylabel oldname newname

show cache policylabel

Displays information about all cache-policy labels or about the specified cache-policy label.

Synopsis

show cache policylabel []

Arguments

labelName Name of the cache-policy label about which to display information.

Output

stateflag flags evaluates When to evaluate policies bound to this label: request-time or response-time.

numpol Number of polices bound to label.

hits Number of times policy label was invoked.

policyName Name of the cache policy to bind to the policy label.

priority Specifies the priority of the policy.

gotoPriorityExpression Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE.

invoke Invoke policies bound to a virtual server or a user-defined policy label. After the invoked policies are evaluated, the flow returns to the policy with the next-lower priority.

labelType Type of policy label to invoke: an unnamed label associated with a virtual server, or user-defined policy label.

labelName Name of the policy label to invoke if the current policy rule evaluates to TRUE.

flowType Flowtype of the bound cache policy.

builtin feature The feature to be checked while applying this config

devno count

Example

i)show cache policylabel cache_http_url ii)show cache policylabel

stat cache policylabel

Displays statistics of cache policy label(s).

Synopsis

stat cache policylabel [] \[-detail] \[-fullValues] \[-ntimes <positive\_integer>] \[-logFile <input\_filename>] \[-clearstats \( basic | full )]

Arguments

labelName Name of the cache-policy label for which to display statistics. If you do not set this parameter statistics are shown for all cache-policy labels.

detail Specifies detailed output (including more statistics). The output can be quite voluminous. Without this argument, the output will show only a summary.

fullValues Specifies that numbers and strings should be displayed in their full form. Without this option, long strings are shortened and large numbers are abbreviated

ntimes The number of times, in intervals of seven seconds, the statistics should be displayed. Default value: 1 Minimum value: 0

logFile The name of the log file to be used as input.

clearstats Clear the statsistics / counters

Possible values: basic, full

Output

count devno stateflag

Counters

Policy Label Hits (Hits) Number of times policy label was invoked.

rm cache policylabel

Removes the specified integrated caching policy label.

Synopsis

rm cache policylabel

Arguments

labelName Name of the label to be removed.

Example

rm cache policylabel cache_http_url

bind cache policylabel

Binds a cache policy to a policy label.

Synopsis

bind cache policylabel -policyName -priority [-gotoPriorityExpression ] [-invoke ( ) ]

Arguments

labelName Name of the cache policy label to which to bind the policy.

policyName Name of the cache policy to bind to the policy label.

priority Integer specifying the priority of this policy within the policy label. A lower number specifies a higher priority. The policies bound to the label are evaluated in the order of their priorities. Minimum value: 1 Maximum value: 2147483647

gotoPriorityExpression Expression or other value specifying the priority of the next policy, within the policy label, to evaluate if the current policy evaluates to TRUE. Specify one of the following values:

  • NEXT - Evaluate the policy with the next higher numbered priority.
  • END - Stop evaluation.
  • USE_INVOCATION_RESULT - Applicable if this policy invokes another policy label. If the final goto in the invoked policy label has a value of END, the evaluation stops. If the final goto is anything other than END, the current policy label performs a NEXT.
  • An expression that evaluates to a number. If you specify an expression, it’s evaluation result determines the next policy to evaluate, as follows:
  • If the expression evaluates to a higher numbered priority, that policy is evaluated next.
  • If the expression evaluates to the priority of the current policy, the policy with the next higher priority number is evaluated next.
  • If the expression evaluates to a priority number that is numerically higher than the highest priority number, policy evaluation ends. An UNDEF event is triggered if:
  • The expression is invalid.
  • The expression evaluates to a priority number that is numerically lower than the current policy’s priority.
  • The expression evaluates to a priority number that is between the current policy’s priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label.

invoke Invoke policies bound to a virtual server or a user-defined policy label. After the invoked policies are evaluated, the flow returns to the policy with the next-lower priority.

labelType Type of policy label to invoke: an unnamed label associated with a virtual server, or user-defined policy label.

Possible values: reqvserver, resvserver, policylabel

labelName Name of the policy label to invoke if the current policy rule evaluates to TRUE.

Example

i)bind cache policylabel cache_http_url pol_1 1 2 -invoke reqvserver CURRENT ii)bind cache policylabel cache_http_url pol_2 2

cache-policylabel