ONTAP 9.12.1 commands

50←PDF
  • ONTAP 9.12.1 commands(CA08871-263en.pdf)
  • 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.

    Description

    The 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.

    Parameters

    -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.

    Examples

    The following example removes match strings "2.2.2.2" and "3.3.3.3" 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 "2.2.2.2,3.3.3.3"
    Top of Page