ONTAP 9.14.1 commands

vserver vscan on-access-policy enable

Enable an On-Access policy

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

Description

The vserver vscan on-access-policy enable command enables an On-Access policy for the specified Vserver. Only one On-Access policy of a specific protocol can be enabled at one time.

Parameters

-vserver <vserver name> - Vserver

This parameter specifies the name of the Vserver on which you want to enable an On-Access policy. The Vserver administrator can enable On-Access policy created within the scope of the Vserver or the cluster. The cluster administrator can enable On-Access policy 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 On-Access policy you want to enable.

Examples

The following command enables an On-Access policy on specified Vserver.

cluster1::> vserver vscan on-access-policy enable -vserver vs1 -policy-name new

cluster1::> vserver vscan on-access-policy show -instance -vserver vs1 -policy-name new
Vserver: vs1
                            Policy: new
                     Policy Status: on
               Policy Config Owner: vserver
              File-Access Protocol: CIFS
                           Filters: scan-ro-volume
                    Mandatory Scan: on
Max File Size Allowed for Scanning: 4GB
            File-Paths Not to Scan: \vol\temp
       File-Extensions Not to Scan: txt
Top of Page