vserver export-policy rule remove-clientmatches
Remove list of clientmatch strings from an existing rule
Availability: This command is available to cluster and Vserver administrators at the admin privilege level.
vserver export-policy rule remove-clientmatches command removes a list of strings from the clientmatch field of a specified export rule in a policy. This command only operates on the clientmatch field; to modify other fields in a rule use the
vserver export-policy modify command.
-vserver <vserver name>- Vserver
This parameter specifies the Vserver on which the export policy is located.
-policyname <export policy name>- Policy Name
This parameter specifies the name of the export policy containing the export rule from which you want to remove clientmatch strings.
-ruleindex <integer>- Rule Index
This parameter specifies the index number of the export rule from which you want to remove clientmatch strings. To view a list of rules with their index numbers, use the vserver export-policy rule show command.
-clientmatches <text>- List of Clientmatch Strings to Remove
This parameter specifies list of the match strings specifying the client or clients to remove from the export rule. Match strings are removed from the clientmatch field if the match string is identical to one of the elements in the clientmatches list. If all match strings are removed from the clientmatch field the entire export rule is deleted. You can specify the match string in any of the following formats:
As a hostname; for instance, host1
As an IPv4 address; for instance, 10.1.12.24
As an IPv6 address; for instance, fd20:8b1e:b255:4071::100:1
As an IPv4 address with a subnet mask expressed as a number of bits; for instance, 10.1.12.0/24
As an IPv6 address with a subnet mask expressed as a number of bits; for instance, fd20:8b1e:b255:4071::/64
As an IPv4 address with a network mask; for instance, 10.1.16.0/255.255.255.0
As a netgroup, with the netgroup name preceded by the @ character; for instance, @eng
As a domain name preceded by the . character; for instance, .example.com
Note: Entering an IP address range, such as 10.1.12.10-10.1.12.70, is not allowed. Entries in this format are interpreted as a text string and treated as a hostname.
The following example removes match strings "126.96.36.199" and "188.8.131.52" from the clientmatch field of the export rule with index number 3 in an export policy named default_expolicy on a Vserver named vs0.
cluster1::> vserver export-policy rule remove-clientmatches -vserver vs0 -policyname default_expolicy -ruleindex 3 -clientmatches "184.108.40.206,220.127.116.11"