30

Citrix NetScaler Policy Configuration and Reference Guide

Configuring a Policy Label

A policy label consists of a set of policies and invocations of other policy labels and virtual server-specific policy banks. An Invoke parameter enables you to invoke a policy label or a virtual server-specific policy bank from any other policy bank. A special-purpose NoPolicy entry enables you to invoke an external bank without processing an expression (a rule). The NoPolicy entry is a “dummy” policy that does not contain a rule.

For configuring policy labels from the NetScaler command line, note the following elaborations of the command syntax:

gotoPriorityExpression is configured as described in “Entries in a Policy Bank,” on page 29.

The type argument is required. This is unlike binding a conventional policy, where this argument is optional.

You can invoke the bank of policies that are bound to a virtual server by using the same method as you use for invoking a policy label.

To configure a policy label by using the NetScaler command line

At the NetScaler command prompt, type:

bind cacherewriteresponder policylabel <policylabelName> -policyName<policyName> -priority<priority> -gotoPriorityExpression<gotopriorityExpression> -invoke reqvserverresvserverpolicylabel <policyLabelName><vserverName>

To invoke a policy label from a Rewrite policy bank with a NOPOLICY entry by using the NetScaler command line

At the NetScaler command prompt, type:

bind rewrite global NOPOLICY <priority>

-gotoPriorityExpression <gotopriorityExpression>

-type REQ_OVERRIDEREQ_DEFAULTRES_OVERRIDERES_DEFAULT -invoke reqvserverresvserverpolicylabel <policyLabelName><vserverName>

To invoke a policy label from an Integrated Caching policy bank by using the NetScaler command line

At the NetScaler command prompt, type:

bind cache global NOPOLICY -priority <priority> -gotoPriorityExpression <gotopriorityExpression> -type REQ_OVERRIDEREQ_DEFAULTRES_OVERRIDERES_DEFAULT -invoke reqvserverresvserverpolicylabel <policyLabelName><vserverName>

Example

Page 44
Image 44
Citrix Systems 9.2 manual Configuring a Policy Label, Example