Skip to main content

vserver fpolicy enable

Contributors
Suggest changes

Enable a policy

Availability: This command is available to cluster and Vserver administrators at the admin privilege level.

Description

The vserver fpolicy enable command enables FPolicy policies for the specified Vserver and sets their sequence (priority). The sequence is used when multiple policies have subscribed to the same file access event. To modify the sequence number of a policy, the administrator must disable the policy (if it is enabled) and then use this command to enable it with the new sequence number. Policies that use the native engine configuration have a higher priority than policies for any other engine, regardless of the sequence number assigned to them.

Note Events on FlexGroup volumes do not notify the FPolicy server.

Parameters

-vserver <Vserver Name> - Vserver

This parameter specifies the name of the Vserver on which you want to enable an FPolicy policy. The Vserver administrator can enable FPolicy policies created within the scope of the Vserver and can also enable an FPolicy policy created by the cluster administrator. The cluster administrator can enable FPolicy policies for any Vserver but cannot enable them with a scope of cluster. The scope is determined at a Vserver level.

-policy-name <Policy name> - Policy

This parameter specifies the name of the FPolicy policy you want to enable.

-sequence-number <integer> - Policy Sequence Number

This parameter specifies the sequence number that is assigned to the policy.

Examples

The following command enables an FPolicy policy:

cluster1::> vserver fpolicy show
Vserver                 Policy Name                    Sequence  Status Engine
----------------------- ------------------------------ --------  ------ --------
vs1.example.com         vs1_pol                               -  off    native
vs2.example.com         vs2_pol                               -  off    external
2 entries were displayed.
cluster1::> vserver fpolicy enable -vserver vs2.example.com -policy-name vs2_pol -sequence-number 5

cluster1::> vserver fpolicy show
Vserver                 Policy Name                    Sequence  Status   Engine
----------------------- ------------------------------ --------  -------  -------
vs1.example.com         vs1_pol                               -  off      native
vs2.example.com         vs2_pol                               5  on       external
2 entries were displayed.