ADC CLI Commands

policy-dataset

The following operations can be performed on “policy-dataset”:

add show bind rm unbind

add policy dataset

Adds a policy dataset to the appliance. The patset file option can be used to bind the patterns contained in a file, which is imported from Citrix ADC or from an external location (please check import/add/update patsetfile). A dataset can be configured with at most one patsetfile!

Synopsis

add policy dataset [-comment ] [-patsetFile ]

Arguments

name Name of the dataset. Must not exceed 127 characters.

type Type of value to bind to the dataset.

Possible values: ipv4, number, ipv6, ulong, double, mac

comment Any comments to preserve information about this dataset or a data bound to this dataset.

patsetFile File which contains list of patterns that needs to be bound to the dataset. A patsetfile cannot be associated with multiple datasets.

Example

add policy dataset ts1 -type IPV4

show policy dataset

Display the configured dataset(s).

Synopsis

show policy dataset []

Arguments

name Name of the dataset. Must not exceed 127 characters.

Output

stateflag value Value of the specified type that is associated with the dataset.

endRange The dataset entry is a range from through , inclusive

index The index of the value (ipv4, ipv6, number) associated with the set.

description Description of the set

type Type of value to bind to the dataset.

indexType Index type.

MaxIndex Maximum number of values bounded to dataset. The maxindex value will not be decreased when we unbind a value from the dataset. This field is used in auto-generated indexing type.

comment Any comments to preserve information about this dataset or a data bound to this dataset.

patsetFile File which contains list of patterns that needs to be bound to the dataset. A patsetfile cannot be associated with multiple datasets.

devno count

Example

show policy dataset set1

bind policy dataset

Binds a value of the specified type to the dataset. If the first value is bound by using an index label, the other bind statements to that set should also provide an index.

Synopsis

bind policy dataset [-index ] [-endRange ] [-comment ]

Arguments

name Name of the dataset to which to bind the value.

value Value of the specified type that is associated with the dataset.

index The Index of the value associated with set. Minimum value: 1 Maximum value: 4294967290

endRange The dataset entry is a range from through , inclusive

comment Any comments to preserve information about this dataset or a data bound to this dataset.

Example

bind policy dataset ts1 192.168.20.1 -index 2

rm policy dataset

Removes a dataset from the appliance.

Synopsis

rm policy dataset

Arguments

name Name of the dataset to remove.

Example

rm policy dataset pat1

unbind policy dataset

Unbind string(s) from a dataset.

Synopsis

unbind policy dataset [-endRange ]

Arguments

name Name of the dataset from which to unbind the value.

value Value to unbind from the dataset.

endRange The dataset entry is a range from through , inclusive

Example

unbind policy dataset pat1 bar xyz

policy-dataset