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 cache|rewrite global <policy_Name> -priority
<positive_integer> [-gotoPriorityExpression <expression>] -type
REQ_OVERRIDE|REQ_DEFAULT|RES_OVERRIDE|RES_DEFAULT] -invoke
reqvserver|resvserver|policylabel <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_OVERRIDE|REQ_DEFAULT|OVERRIDE|DEFAULT -invoke
vserver|policylabel <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
REQUEST|RESPONSE -invoke reqvserver|resvserver|policylabel
<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 rewrite|cache global NOPOLICY -priority <positiveInteger>
-type REQ_OVERRIDE|REQ_DEFAULT|RES_OVERRIDE|RES_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
OVERRIDE|DEFAULT
Example
unbind responder global NOPOLICY -priority 200 -type OVERRIDE
At the NetScaler command prompt, for a virtual server, type: