How to set up FPolicy
FPolicy can be set up using simple CLI commands.
- Enabling the FPolicy feature
FPolicy is enabled, by default, when the CIFS protocol is licensed and configured.
- Disabling the FPolicy feature
Disabling the FPolicy feature overrides the enable or disable settings for individual policies and will disable all policies.
- Creating a file policy
To set up a file policy, you first need to create it. To create a file policy, you use the create command.
- Enabling the file policy
Once created, a file policy needs to be enabled before notification policies can be configured. To enable a file policy, you use the enable command.
- Specifying mandatory file screening
The required option determines if file screening should be mandatory.
- Displaying information for a file policy
Important information on a particular file policy can be displayed using the fpolicy show command.
- Displaying information for all file policies
Important information on all the file policies can be displayed using the fpolicy command.
- Disabling a file policy
When a file policy is disabled, the operations that are specified for that particular file policy will not be monitored. When a particular file policy is disabled, no file request notification is sent to the FPolicy server even if the FPolicy server is registered with the storage system.
- Destroying a file policy
Destroying a file policy immediately removes an existing file policy from the connected storage system.
- Stopping server screening for disconnected CIFS requests
You can choose to stop the server from screening CIFS requests whose session is disconnected by enabling the cifs_disconnect_check option.
- Setting a limit on simultaneous screening of CIFS requests
You can limit the number of CIFS requests that can be simultaneously screened by the FPolicy server. This option ensures that CIFS requests do not run out of pBlks.
- Setting server timeout
You can set the limit on how long the system waits for the FPolicy server to respond to a request. You can set this limit individually for each file policy. This option ensures that the FPolicy server is making progress.
- Setting request screening timeout
You can set a limit on how long the system waits for the FPolicy server to screen a request. You can set this limit individually on each policy. This option improves the performance of the FPolicy server.