ADC CLI Commands

vpn-urlPolicy

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

unset rm rename show set stat add

unset vpn urlPolicy

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

Synopsis

unset vpn urlPolicy [-comment] [-logAction]

rm vpn urlPolicy

Removes the urlPolicy that is applied.

Synopsis

rm vpn urlPolicy

Arguments

name Name for the new urlPolicy.

rename vpn urlPolicy

Renames the specified vpn urlPolicy.

Synopsis

rename vpn urlPolicy @ @

Arguments

name Existing name of the vpn urlPolicy.

newName New name for the vpn urlPolicy. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), colon (:), and underscore characters.

The following requirement applies only to the NetScaler CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, “my vpnurl policy” or ‘my vpnurl policy’).

Example

rename vpn urlPolicy oldname newname

show vpn urlPolicy

Displays a urlPolicy.

Synopsis

show vpn urlPolicy []

Arguments

name Name for the new urlPolicy.

Output

stateflag rule Expression, or name of a named expression, specifying the traffic that matches the policy.

The following requirements apply only to the NetScaler 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 be applied by the new urlPolicy if the rule criteria are met.

comment Any comments to preserve information about this policy.

logAction Name of messagelog action to use when a request matches this policy.

boundTo The entity name to which policy is bound

activePolicy priority builtin Indicates that a variable is a built-in (SYSTEM INTERNAL) type.

piHits Number of hits.

undefHits The number of times the policy evaluation resulted in undefined processing.

type Bindpoint to which the policy is bound

type Bindpoint to which the policy is bound

devno count

set vpn urlPolicy

Modifies the rule, action, comment and logAction of a urlPolicy.

Synopsis

set vpn urlPolicy [-rule ] [-action ] [-comment ] [-logAction ]

Arguments

name Name for the new urlPolicy.

rule Expression, or name of a named expression, specifying the traffic that matches the policy.

The following requirements apply only to the NetScaler 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 be applied by the new urlPolicy if the rule criteria are met.

comment Any comments to preserve information about this policy.

logAction Name of messagelog action to use when a request matches this policy.

stat vpn urlPolicy

Display vpn urlPolicy statistics.

Synopsis

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

Arguments

name The name of the vpn urlPolicy for which statistics will be displayed. If not given statistics are shown for all policies.

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 hits (Hits) Number of hits on the policy

Example

stat vpn urlPolicy

add vpn urlPolicy

Creates a new urlPolicy that, if bound, determines whether the URL is accessible or not.

Synopsis

add vpn urlPolicy -rule -action [-comment ] [-logAction ]

Arguments

name Name for the new urlPolicy.

rule Expression, or name of a named expression, specifying the traffic that matches the policy.

The following requirements apply only to the NetScaler 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 be applied by the new urlPolicy if the rule criteria are met.

comment Any comments to preserve information about this policy.

logAction Name of messagelog action to use when a request matches this policy.

vpn-urlPolicy