34

Citrix NetScaler Policy Configuration and Reference Guide

To invoke a policy label or virtual server policy bank by using the NetScaler command line

At the NetScaler command prompt, for Rewrite or Integrated Caching, type:

bind cacherewrite global <policy_Name> -priority

<positive_integer> [-gotoPriorityExpression<expression>] -type REQ_OVERRIDEREQ_DEFAULTRES_OVERRIDERES_DEFAULT] -invoke reqvserverresvserverpolicylabel <label_name>

Example

bind cache global myCachePolicy -priority 100 -type req_override -invoke policylabel myCachePolicyLabel

At the NetScaler command prompt, for the Responder, type:

bind responder global <policy_Name> <priority_as_positive_integer> [<gotoPriorityExpression>] -type

REQ_OVERRIDEREQ_DEFAULTOVERRIDEDEFAULT -invoke vserverpolicylabel <label_name>

Example

bind responder global testpolicy3 300 -invoke policylabel myResponderLabel

At the NetScaler command prompt, for a virtual server, type:

bind lb vserver <vserver_name> -policyName <policy_Name> -priority <positive_integer> [-gotoPriorityExpression <expression>] -type

REQUESTRESPONSE -invoke reqvserverresvserverpolicylabel <policy_Label_Name>

Example

bind lb vserver myLBVserver -policyname testCachePolicy -priority 5555 -type request -invoke policylabel cachePolicyLabel

To remove a policy label invocation from a NOPOLICY entry by using the NetScaler command line

At the NetScaler command prompt, for Rewrite or Integrated Caching, type:

unbind rewritecache global NOPOLICY -priority <positiveInteger> -type REQ_OVERRIDEREQ_DEFAULTRES_OVERRIDERES_DEFAULT

Example

unbind rewrite global NOPOLICY -priority 100 -type REQ_OVERRIDE 200

At the NetScaler command prompt, for the Responder, type:

unbind responder global NOPOLICY -priority <positiveInteger> -type

OVERRIDEDEFAULT

Example

unbind responder global NOPOLICY -priority 200 -type OVERRIDE

At the NetScaler command prompt, for a virtual server, type:

Page 48
Image 48
Citrix Systems 9.2 manual At the NetScaler command prompt, for the Responder, type