Table of ContentsLibraryView in Frames

How to monitor operations using FPolicy

The fpolicy monitor CLI command enables you to add, remove, or set the list of operations to be monitored.

To monitor a specific operation, enter the following command: fpolicy monitor {add|remove|set} PolicyName [-p { cifs|nfs|cifs,nfs} ] [-f] op-spec

Use add to add operations to the list of operations monitored, remove to remove the operation from the list of operations monitored, and set to reset the entire list of operations in the list.

PolicyName is the name of the policy that you want to change.

The -p option indicates the protocols you want FPolicy to monitor.

Use cifs to monitor CIFS operations, use nfs to monitor NFS operations, or use cifs,nfs to monitor both CIFS and NFS operations. If the protocol information is not specified in the monitor command, the storage system sends notifications for both CIFS and NFS protocols.

The -f option forces the policy to be enabled even if there are no servers available to enforce the policy.

op-spec is the list of operations to be monitored.

You can also choose to set the monitoring options for all operations together, by replacing the list of operations with all option.

To monitor all operations use the following command syntax:fpolicy mon[itor] {add|remove|set } PolicyName [-p {cifs|nfs|cifs,nfs } ] [-f] all

When a particular operation is set for CIFS operations and then later set for NFS operations, the operations are monitored for requests from both the protocols. However, when the operation is removed from one of the protocols, monitoring for that operation stops for both the protocols.

When a particular operation is set only for CIFS and not on NFS, this operation is monitored for both the protocols. When this operation is removed from the list of monitored operations for NFS it also stops monitoring for CIFS.