ADC CLI Commands

vpn-trafficPolicy

The following operations can be performed on “vpn-trafficPolicy”:

unset rm show set add

unset vpn trafficPolicy

Use this command to remove vpn trafficPolicy settings.Refer to the set vpn trafficPolicy command for meanings of the arguments.

Synopsis

unset vpn trafficPolicy [-rule] [-action]

rm vpn trafficPolicy

Removes an existing traffic policy from Citrix Gateway.

Synopsis

rm vpn trafficPolicy

Arguments

name Name of the traffic policy to remove.

show vpn trafficPolicy

Displays information about all Citrix Gateway traffic policies, or detailed information about the specified policy.

Synopsis

show vpn trafficPolicy []

Arguments

name Name of the traffic policy for which to display detailed information.

Output

rule The rule used by the vpn traffic policy. Rules are combinations of expressions. Expressions are simple conditions, such as a test for equality, applied to operands, such as a URL string or an IP address. Expression syntax is described in the Installation and Configuration Guide

action The action to be performed when the rule is matched.

boundTo The entity name to which policy is bound

activePolicy priority bindPolicyType policyType expressionType Type of policy (Classic/Advanced)

hits Number of hits.

piHits Number of hits.

devno count stateflag

set vpn trafficPolicy

Modifies the specified parameters of an existing traffic policy.

Synopsis

set vpn trafficPolicy [-rule ] [-action ]

Arguments

name Name of the traffic policy to modify.

rule Expression, or name of a named expression, against which traffic is evaluated. The following requirements apply only to the Citrix ADC 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 apply to traffic that matches the policy.

add vpn trafficPolicy

Creates a traffic policy. A traffic policy conditionally sets Citrix Gateway traffic characteristics at run time. For an intranet resource, for example, the traffic policy parameters define the destination IP address, destination port, amount of time a user can stay logged on to the application, and HTTP compression.

Synopsis

add vpn trafficPolicy

Arguments

name Name for the traffic policy. 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. Cannot be changed after the policy is created.

The following requirement applies only to the Citrix ADC 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, or name of a named expression, against which traffic is evaluated. The following requirements apply only to the Citrix ADC 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 apply to traffic that matches the policy.

vpn-trafficPolicy