AIX Backup Encryption Overview
AIX Backup Encryption Overview
ONTAP 9
NetApp
August 16, 2025
ARP creates locked snapshots at regular intervals alongside scheduled ones for added protection. It smartly
manages snapshot retention duration. If no unusual activity is detected, snapshots are quickly recycled.
However, if an attack is detected, a snapshot created before the start of an attack is kept for an extended
period.
ARP support is included with the ONTAP ONE license. If you do not have the ONTAP One license, other
licenses are available for ARP use that differ depending on your version of ONTAP.
• If you are upgrading from ONTAP 9.10.1 to ONTAP 9.11.1 or later and ARP is already configured on your
system, you do not need to install the new Anti-ransomware license. For new ARP configurations, the
new license is required.
• If you are reverting from ONTAP 9.11.1 or later to ONTAP 9.10.1, and you have enabled ARP with the
Anti_ransomware license, you will see a warning message and might need to reconfigure ARP. Learn
about reverting ARP.
You can enable Autonomous Ransomware Protection (ARP) on an existing volume or create a new volume
and enable ARP.
An effective ransomware detection strategy should include more than a single layer of protection.
An analogy would be the safety features of a vehicle. You don’t rely on a single feature, such as a seatbelt, to
completely protect you in an accident. Air bags, anti-lock brakes, and forward-collision warning are all
1
additional safety features that will lead to a much better outcome. Ransomware protection should be viewed in
the same way.
While ONTAP includes features like FPolicy, snapshots, SnapLock, and Active IQ Digital Advisor (also known
as Digital Advisor) to help protect from ransomware, the following information focuses on the ARP feature with
machine learning capabilities.
To learn more about other features in the NetApp portfolio that safeguard against ransomware, see
Ransomware and NetApp’s protection portfolio.
ONTAP ARP is designed to protect against denial-of-service attacks where the attacker withholds data until a
ransom is paid. ARP offers real-time ransomware detection based on the following:
ARP detects the spread of most ransomware attacks after only a small number of files are encrypted, responds
automatically to protect data, and alerts you that a suspected attack is happening.
After ARP is turned on for a volume, it progresses through two distinct modes. ARP uses a learning or
evaluation period to establish a baseline of normal workload behavior. During that period, ARP analyzes
system metrics to develop an alert profile before enabling active protection. After ARP transitions to an active
detection mode, it begins monitoring abnormal activity in real time, automatically taking protective actions and
generating alerts if abnormal behavior is detected.
For ARP, the learning mode and active mode behaviors differ by ONTAP version, volume type, and protocol
(NAS or SAN).
NAS environments use learning and active modes. For ARP/AI running in NAS environments beginning in
ONTAP 9.16.1, there is no learning period when ARP is used with FlexVol volumes.
The following table summarizes the differences between ONTAP 9.10.1 and later versions for NAS
environments.
2
Mode Description Volume types
and versions
Learning For ONTAP 9.10.1 to 9.15.1, ARP is automatically set to learning mode when • FlexVol
you enable ARP. In learning mode, the ONTAP system develops an alert volumes
profile based on the analytic areas: entropy, file extension types, and file with
IOPS. It’s recommended that you leave ARP in learning mode for 30 days. ONTAP
Beginning with ONTAP 9.13.1, ARP automatically determines the optimal 9.10.1 to
learning interval and automates the switch, which might occur before 30 days. 9.15.1
For versions earlier than ONTAP 9.13.1, you can make the switch manually.
• FlexGroup
volumes
Learn more about switching from learning to active mode.
with
ONTAP
The command security anti-ransomware volume 9.13.1 and
workload-behavior show shows file extensions that have later
been detected in the volume. If you run this command early in
learning mode and it shows an accurate representation of file
types, you should not use that data as a basis to move to
active mode, as ONTAP is still collecting other metrics. Learn
more about security anti-ransomware volume
workload-behavior show in the ONTAP command
reference.
Active After running ARP in learning mode for enough time to assess workload All supported
characteristics, you can switch to active mode and start protecting your data. ONTAP
Beginning with ONTAP 9.13.1, ARP automatically determines the optimal versions and
learning interval and automates the switch, which might occur before 30 days. FlexVol and
FlexGroup
With ONTAP 9.10.1 to 9.15.1, ARP switches to active mode after the optimal volumes
learning period is completed. After ARP has switched to active mode, ONTAP
creates ARP snapshots to protect the data if a threat is detected.
SAN environments use evaluation periods (similar to learning modes in NAS environments) before
transitioning to active detection automatically. The following table summarizes evaluation and active modes.
3
Mode Description Volume types
and versions
Evaluation A two- to four-week evaluation period is performed to determine baseline • FlexVol
encryption behavior. You can determine if the evaluation period is complete volumes
by running the security anti-ransomware volume show command with
and checking Block device detection status. ONTAP
9.17.1 and
Learn more about SAN volumes and the entropy evaluation period. later
Active After the evaluation period, you can determine if the ARP SAN protection is • FlexVol
active by running the security anti-ransomware volume show volumes
command and checking Block device detection status. A status of with
Active_suitable_workload indicates that the evaluated amount of ONTAP
entropy can be successfully monitored. ARP automatically adjusts the 9.17.1 and
adaptive threshold according to data reviewed during the evaluation. later
ARP assesses threat probability based on incoming data measured against learned analytics. When ARP
detects an abnormality, a measurement is assigned. A snapshot might be assigned at the time of detection or
at regular intervals.
ARP thresholds
• Low: The earliest detection of an abnormality in the volume (for example, a new file extension is observed
in the volume). This level of detection is only available in versions prior to ONTAP 9.16.1 that do not have
ARP/AI.
◦ In ONTAP 9.10.1, the threshold for escalation to moderate is 100 or more files.
◦ Beginning with ONTAP 9.11.1, you can customize the detection parameters for ARP.
• Moderate: High entropy is detected or multiple files with the same never-seen-before file extension are
observed. This is the baseline detection level in ONTAP 9.16.1 and later with ARP/AI.
The threat escalates to moderate after ONTAP runs an analytics report determining if the abnormality matches
a ransomware profile. When the attack probability is moderate, ONTAP generates an EMS notification
prompting you to assess the threat. ONTAP does not send alerts about low threats; however, beginning with
ONTAP 9.14.1, you can modify default alert settings. For more information, see Respond to abnormal activity.
You can view information about moderate threats in System Manager’s Events section or with the security
anti-ransomware volume show command. Low threat events can also be viewed using the security
anti-ransomware volume show command in versions prior to ONTAP 9.16.1 that do not have ARP/AI.
Learn more about security anti-ransomware volume show in the ONTAP command reference.
ARP snapshots
In ONTAP 9.16.1 and earlier, ARP creates a snapshot when early signs of an attack are detected. A detailed
analysis is then conducted to confirm or dismiss the potential attack. Because ARP snapshots are created
proactively, even before an attack is fully confirmed, they might also be generated at regular intervals for
certain legitimate applications. The presence of these snapshots should not be regarded as an anomaly. If an
attack is confirmed, the attack probability is escalated to Moderate, and an attack notification is generated.
4
Beginning with ONTAP 9.17.1, ARP snapshots are generated at regular intervals for both NAS and SAN
volumes. ONTAP prepends a name to the ARP snapshot to make it easily identifiable.
Beginning with ONTAP 9.11.1, you can modify the retention settings. For more information, see Modify options
for snapshots.
The following table summarizes ARP snapshot differences between ONTAP 9.16.1 and earlier and ONTAP
9.17.1.
5
Feature ONTAP 9.16.1 and earlier ONTAP 9.17.1 and later
Clear-suspect Administrators can perform a clear-suspect Administrators can perform a clear-suspect
action action which sets retention based on action which sets retention based on
confirmation: confirmation:
ARP builds on proven ONTAP data protection and disaster recovery technology to respond to ransomware
attacks. ARP creates locked snapshots when early signs of an attack are detected in ONTAP 9.16.1 and earlier
or at regular intervals in 9.17.1 and later. You’ll need to first confirm whether the attack is real or a false
positive. If you confirm the attack, the volume can be restored using the ARP snapshot.
Locked snapshots cannot be deleted by normal means. However, if you decide later to mark the attack as a
false positive, the locked copy will be deleted.
With the knowledge of the affected files and the time of attack, it is possible to selectively recover the affected
files from various snapshots rather than simply reverting the whole volume to one of the snapshots.
See the following topics for more information on responding to an attack and recovering data:
Beginning with ONTAP 9.13.1, it’s recommended that you enable multi-admin verification (MAV) so that two or
more authenticated user admins are required for Autonomous Ransomware Protection (ARP) configuration.
For more information, see Enable multi-admin verification.
Beginning with ONTAP 9.16.1, ARP improves cyber resiliency by adopting a machine-learning model for anti-
ransomware analytics that detects constantly evolving forms of ransomware with 99% accuracy in NAS
environments. ARP’s machine-learning model is pre-trained on a large dataset of files both before and after a
simulated ransomware attack. This resource-intensive training is done outside ONTAP using open-source
forensic research datasets to train the model. Customer data is not used throughout the entire modelling
pipeline and privacy issues do not exist. The pre-trained model that results from this training is included on-box
with ONTAP. This model is not accessible or modifiable through the ONTAP CLI or ONTAP API.
6
With ARP/AI and FlexVol volumes, there is no learning period. ARP/AI is enabled and active immediately after
installation or upgrade to 9.16. After upgrading your cluster to ONTAP 9.16.1, ARP/AI will be automatically
enabled for existing and new FlexVol volumes if ARP is already enabled for those volumes.
Beginning with ONTAP 9.16.1, security updates for ARP/AI are available using System Manager in addition to
system and firmware updates.
Related information
• ONTAP command reference
When deciding to use ARP, it’s important to ensure that your volume’s workload is suited to ARP and that it
meets required system configurations.
Suitable workloads
For environments without ARP/AI, users could create files with extensions that aren’t detected in the
learning period. Because of this, there is a greater possibility of false positives in this workload.
For example, health care records and Electronic Design Automation (EDA) data
Unsuitable workloads
• Workloads with a high frequency of file create or delete operations (hundreds of thousands of files in few
seconds; for example, test/development workloads).
7
• ARP’s threat detection depends on its ability to recognize an unusual surge in file create, rename, or delete
operations. If the application itself is the source of the file activity, it cannot be effectively distinguished from
ransomware activity.
• Workloads where the application or the host encrypts data.
ARP depends on distinguishing incoming data as encrypted or unencrypted. If the application itself is
encrypting the data, then the effectiveness of the feature is reduced. However, ARP can still work based on
file activity (delete, overwrite, or create, or a create or rename with a new file extension) and file type.
Supported configurations
ARP is available for NAS NFS and SMB FlexVol volumes beginning with ONTAP 9.10.1. Beginning in 9.17.1,
ARP is available for SAN FlexVol volumes for iSCSI, FC, and NVMe with SAN storage.
Support for other configurations and volume types is available in the following ONTAP versions:
1
ARP/AI does not support FlexGroup volumes. After an upgrade to ONTAP 9.16.1, FlexGroup volumes
enabled for ARP continue to operate with the same ARP model used prior to ARP/AI.
8
SnapMirror and ARP interoperability
Beginning with ONTAP 9.12.1, ARP is supported on SnapMirror asynchronous destination volumes. ARP is
not supported with SnapMirror synchronous or SnapMirror active sync.
If a SnapMirror source volume is ARP-enabled, the SnapMirror destination volume automatically acquires the
ARP configuration state (such as dry-run or enabled), ARP training data, and ARP-created snapshot of the
source volume. No explicit enablement is required.
Although the destination volume consists of read-only (RO) snapshots, no ARP processing is done on its data.
However, when the SnapMirror destination volume is converted to read-write (RW), ARP is automatically
enabled on the RW-converted destination volume. The destination volume does not require any additional
learning procedures besides what is already recorded on the source volume.
In ONTAP 9.10.1 and 9.11.1, SnapMirror does not transfer the ARP configuration state, training data, and
snapshots from source to destination volumes. Because of this, when the SnapMirror destination volume is
converted to RW, ARP on the destination volume must be explicitly enabled in learning mode after conversion.
ARP is supported with virtual machines (VMs). ARP detection behaves differently for changes inside and
outside the VM. ARP is not recommended for workloads that involve a large number of highly compressed files
(such as 7z and ZIP) or encrypted files (such as password-protected PDF, DOC, or ZIP) within the VM.
If, by default, the files are high entropy (for example, .gzip or password-protected files), ARP’s detection
capabilities are limited. ARP can still take proactive snapshots in this instance; however, no alerts will be
triggered if the file extensions have not been tampered with externally.
For SAN, ARP analyzes entropy statistics at the volume level and triggers detections when an entropy
anomaly is found.
Unsupported configurations
• FlexGroup volumes (in ONTAP 9.10.1 through 9.12.1). Beginning with ONTAP 9.13.1, FlexGroup volumes
are supported but are limited to the ARP model used prior to ARP/AI.
• FlexCache volumes (ARP is supported on origin FlexVol volumes but not on cache volumes)
• Offline volumes
• SnapLock volumes
9
• SnapMirror active sync
• SnapMirror synchronous
• SnapMirror asynchronous (in ONTAP 9.10.1 and 9.11.1). SnapMirror asynchronous is supported beginning
with ONTAP 9.12.1. For more information, see SnapMirror and ARP interoperability.
• Restricted volumes
• Root volumes of storage VMs
• Volumes of stopped storage VMs
ARP can have a minimal impact on system performance as measured in throughput and peak IOPS. The
impact of the ARP feature depends on the specific volume workload. For common workloads, the following
configuration limits are recommended:
1
System performance is not degraded beyond these percentages regardless of the number of volumes added
in excess of the recommended limits.
Because ARP analytics run in a prioritized sequence, analytics run on each volume less frequently as the
number of protected volumes increases.
Beginning with ONTAP 9.13.1, you can enable multi-admin verification (MAV) for additional security with ARP.
MAV ensures that at least two or more authenticated administrators are required to turn off ARP, pause ARP, or
mark a suspected attack as a false positive on a protected volume. Learn how to enable MAV for ARP-
protected volumes.
You need to define administrators for a MAV group and create MAV rules for the security anti-
ransomware volume disable, security anti-ransomware volume pause, and security anti-
ransomware volume attack clear-suspect ARP commands you want to protect. Each administrator in
the MAV group must approve each new rule request and add the MAV rule again within MAV settings.
Beginning with ONTAP 9.14.1, ARP offers alerts for the creation of an ARP snapshot and for the observation of
a new file extension. Alerts for these events are disabled by default. Alerts can be set at the volume or SVM
10
level. You can enable the alerts using security anti-ransomware vserver event-log modify or at
the volume level with security anti-ransomware volume event-log modify.
Learn more about security anti-ransomware vserver event-log modify and security anti-
ransomware volume event-log modify in the ONTAP command reference.
Next steps
• Enable Autonomous Ransomware Protection
• Enable MAV for ARP-protected volumes
It’s recommended that you let ARP run in learning mode for a minimum of 30 days. Beginning with ONTAP
9.13.1, ARP automatically determines the optimal learning period interval and automates the switch, which
might occur before 30 days.
• (NAS environments only) For ONTAP 9.16.1 and later with FlexVol volumes
When you enable ARP using System Manager or the CLI, ARP/AI protection is enabled and active
immediately. No learning period is required.
• (SAN environments only) For ONTAP 9.17.1 and later with FlexVol volumes
When you enable ARP using System Manager or the CLI, ARP/AI functionality is automatically enabled.
Once enabled on a SAN volume, ARP/AI monitors data continuously during an evaluation period to
determine if the workloads are suitable for ARP and sets an optimal encryption threshold for detection.
11
• Beginning with ONTAP 9.13.1, it’s recommended that you enable multi-admin verification (MAV) so that two
or more authenticated user admins are required for Autonomous Ransomware Protection (ARP)
configuration. For more information, see Enable multi-admin verification.
You can enable ARP using System Manager or the ONTAP CLI.
12
System Manager
Steps
1. Select Storage > Volumes, then select the volume you want to protect.
2. In the Security tab of the Volumes overview, select Status to switch from Disabled to Enabled.
◦ (NAS environments only) If you are using ARP with ONTAP 9.15.1 or earlier or ONTAP 9.16.1
with FlexGroup volumes, select Enabled in learning-mode in the Anti-ransomware box.
Beginning with ONTAP 9.13.1, ARP automatically determines the optimal learning
period interval and automates the switch. You can disable this setting on the
associated storage VM if you want to control the learning mode to active mode
transition manually.
In existing volumes, learning and active modes only apply to newly written data, not
to already existing data in the volume. The existing data is not scanned and
analyzed, because the characteristics of earlier normal data traffic are assumed
based on the new data after the volume is enabled for ARP.
3. You can verify the ARP state of the volume in the Anti-ransomware box.
To display ARP status for all volumes: In the Volumes pane, select Show/Hide then ensure that Anti-
ransomware status is checked.
CLI
The process to enable ARP with the CLI differs if you are enabling it on an existing volume or a new
volume.
Learn more about security anti-ransomware volume dry-run in the ONTAP command
reference.
2. If you upgraded a NAS environment to ONTAP 9.13.1 through ONTAP 9.15.1 and the default state is
dry-run (learning mode), adaptive learning is enabled so that the change to enabled state (active
mode) is done automatically. If you do not want this behavior to be automatically enabled, change the
setting at the SVM level on all associated volumes:
13
vserver modify <svm_name> -anti-ransomware-auto-switch-from-learning
-to-enabled false
2. If you upgraded a NAS environment to ONTAP 9.13.1 through ONTAP 9.15.1 and the default state is
dry-run (learning mode), adaptive learning is enabled so that the change to enabled state (active
mode) is done automatically. If you do not want this behavior to be automatically enabled, change the
setting at the SVM level on all associated volumes:
Learn more about security anti-ransomware volume show in the ONTAP command
reference.
Related information
• Switch to active mode after a learning period
14
can modify this setting using System Manager or with the CLI.
If you want to configure only individual new or existing volumes without making ARP the default, see this
related ARP procedure.
ARP will not be automatically enabled on existing volumes. The setting changes described in this procedure
only affect new volumes. Learn how to enable ARP for existing volumes.
• (NAS environments only) For ONTAP 9.10.1 to 9.15.1 or ARP with FlexGroup volumes
By default, new volumes with ARP enabled are set to learning mode (or "dry-run" state) in which the
system analyzes the workload to characterize normal behavior. Learning mode can be transitioned to
active mode manually (all ARP versions) or automatically (beginning in ARP 9.13.1). With ARP 9.13.1 and
later, adaptive learning has been added to ARP analytics so that the switch from learning mode to active
mode is done automatically.
• (NAS environments only) For ONTAP 9.16.1 and later with FlexVol volumes
When you enable ARP using System Manager or the CLI, ARP/AI protection is enabled and active
immediately. No learning period is required.
• (SAN environments only) For ONTAP 9.17.1 and later with FlexVol volumes
When you enable ARP using System Manager or the CLI, ARP/AI functionality is automatically enabled.
Once enabled on a SAN volume, ARP/AI monitors data continuously during an evaluation period to
determine if the workloads are suitable for ARP and sets an optimal encryption threshold for detection.
Steps
You can use System Manager or the ONTAP CLI to enable ARP by default on new volumes.
15
System Manager
1. Select Storage or Cluster (depending on your environment), select Storage VMs, and select the
storage VM that contains volumes you want to protect with ARP.
2. Navigate to the Settings tab. Under Security, locate the Anti-ransomware tile then select .
3. Check the box to enable anti-ransomware (ARP). Check the additional box to enable ARP on all
eligible volumes in the storage VM.
4. For ONTAP 9.13.1 or later, optionally select Switch automatically from learning to active mode
after sufficient learning. This allows ARP to determine the optimal learning period interval and
automate the switch to active mode.
CLI
• Modify an existing SVM to enable ARP by default in new volumes:
◦ For NAS environments without ARP/AI or for FlexGroup volumes, use dry-run state so that new
volumes start in learning mode.
◦ For NAS environments running ONTAP 9.16.1 or later or SAN environments with ONTAP 9.17.1,
use enabled state.
• Create a new SVM with ARP enabled by default for new volumes:
◦ For NAS environments without ARP/AI or for FlexGroup volumes, use dry-run state so that new
volumes start in learning mode.
◦ For NAS environments running ONTAP 9.16.1 or later or SAN environments with ONTAP 9.17.1,
use enabled state.
• If you upgraded to ONTAP 9.13.1 through ONTAP 9.15.1 and the default state is dry-run (learning
mode), adaptive learning is enabled so that the change to enabled state (active mode) is done
automatically. Modify the existing SVM if you do not want this behavior to be automatically enabled:
Learn more about security anti-ransomware volume show in the ONTAP command
16
reference.
Related information
• Switch to active mode after a learning period
Before upgrading to an ONTAP version with ARP/AI support, close out any existing ARP
detections.
(NAS environments only) When you upgrade to ONTAP 9.16.1 or later, ARP is enabled and
becomes active automatically for any existing ARP instances with FlexVol volumes. Because
ARP/AI is trained on an extensive machine learning model, a learning period is no longer
required. Any learning periods that have not been completed prior to upgrade will automatically
be ended, and the volumes transitioned to active ARP/AI.
Steps
1. Follow the scenario that is specific to your configuration:
◦ SAN environments only
▪ For new and existing clusters running ONTAP 9.17.1 or later with FlexVol volumes: When you
upgrade to or install ONTAP 9.17.1 or later, you should enable ARP on volumes you intend to
protect. When you enable ARP using System Manager or the CLI, ARP/AI functionality is
automatically enabled. Once enabled on a SAN volume, ARP/AI monitors data continuously during
an evaluation period to determine if the workloads are suitable for ARP and set an optimal
encryption threshold for detection.
◦ NAS environments only
▪ For new clusters running ONTAP 9.16.1 or later with FlexVol volumes: Enable ARP. ARP is
not enabled by default. After you enable ARP, ARP/AI functionality is automatically enabled on the
FlexVol volumes you choose to protect.
▪ For existing clusters recently upgraded to ONTAP 9.16.1 and later that have ARP enabled:
No action is needed. ARP/AI automatically becomes the new ARP method of threat protection on
the FlexVol volumes you’ve chosen to protect.
▪ For existing clusters recently upgraded to ONTAP 9.16.1 and later that do not have ARP
enabled: Enable ARP. ARP/AI automatically becomes the new ARP method of threat protection
after you enable ARP.
17
2. After ARP/AI is enabled, decide whether you want ARP/AI protection updates to be delivered and installed
automatically or manually.
Related information
• Update ARP/AI
If you want to manually update ARP/AI, you can download updates from the NetApp Support Site and install
them using System Manager.
In System Manager, the settings on the Enable automatic updates page for security files are set to Show
notifications if you are already enrolled in automatic firmware and system updates. You can change the
update settings to Automatically update if you’d prefer ONTAP to apply the latest updates automatically.
If you use a dark site or prefer to perform updates manually, you can choose to show notifications or
automatically dismiss security updates.
Steps
1. In System Manager, click Cluster > Settings > Software updates.
2. In the Software updates section, select .
3. From the Software updates page, select the All other updates tab.
4. Select the All other updates tab and click More.
5. Select Edit automatic update settings.
6. From the Automatic update settings page, select Security Files.
7. Specify the action to be taken for security files (ARP/AI updates).
You can choose to automatically update, show notifications, or automatically dismiss updates.
18
Manually update ARP/AI with the latest security package
Follow the appropriate procedure depending on whether you are registered with Active IQ Unified Manager.
Be sure to install only a more recent ARP update than your current version to avoid any
unintended ARP downgrades.
In the Health section, a message displays if there are any recommended security updates for the cluster.
Ensure that the file name begins with ontap_security_file_arpai_ and has .tgz
as a file extension.
To view a history of automatic updates that were dismissed or failed to install, do the following:
Related information
19
• Enable ARP/AI
• Email subscriptions for software updates
If you are using ARP on FlexVol volumes with ONTAP 9.16.1 or later, ARP/AI protection is enabled and
becomes active automatically. No learning period is required.
In existing volumes, learning and active modes only apply to newly written data, not to already
existing data in the volume. The existing data is not scanned and analyzed, because the
characteristics of earlier normal data traffic are assumed based on the new data after the
volume is enabled for ARP.
For ONTAP 9.10.1 to 9.15.1 and ARP with FlexGroup volumes, you can manually transition from ARP learning
mode to active mode using System Manager or the ONTAP CLI after the learning period is complete.
Steps
You can use System Manager or the ONTAP CLI to switch from learning mode to active mode.
20
System Manager
1. Select Storage > Volumes and then select the volume that is ready for active mode.
2. In the Security tab of the Volumes overview, select Switch to active mode in the Anti-ransomware
box.
3. You can verify the ARP state of the volume in the Anti-ransomware box.
CLI
1. Modify the protected volume to switch to active mode if not already done automatically:
You can also switch to active mode with the modify volume command:
Beginning with ONTAP 9.13.1, adaptive learning has been added to ARP analytics and the switch from
learning mode to active mode is done automatically. The autonomous decision by ARP to automatically switch
from learning mode to active mode is based on the configuration settings of the following options:
-anti-ransomware-auto-switch-minimum-incoming-data-percent
-anti-ransomware-auto-switch-duration-without-new-file-extension
-anti-ransomware-auto-switch-minimum-learning-period
-anti-ransomware-auto-switch-minimum-file-count
-anti-ransomware-auto-switch-minimum-file-extension
If auto-switch is enabled, the volume will switch to active mode automatically after a maximum of 30 days, even
if all conditions are not met. This 30-day limit is fixed and cannot be changed.
For more information on ARP configuration options, including default values, see the ONTAP command
reference.
Related information
• security anti-ransomware volume
21
Learn about the ONTAP ARP evaluation period for SAN volumes
Beginning with ONTAP 9.17.1, ARP requires an evaluation period to determine if entropy
levels for SAN volume workloads are suitable for ransomware protection. After ARP is
enabled on a SAN volume, it monitors data continuously during an evaluation period to
determine an optimal encryption threshold. ARP distinguishes between suitable and
unsuitable workloads in the evaluated SAN volume and, if the workloads are determined
to be suitable for protection, automatically sets an encryption threshold based on
evaluation period statistics.
The system collects continuous encryption statistics in 10-minute intervals. During the evaluation, ARP
snapshots are also continuously created every four hours. If the encryption percentage within an interval
exceeds the optimal encryption threshold identified for this volume, an alert is triggered and snapshot retention
time is increased.
Example response:
Example response:
22
Vserver Name Entropy Range Seen N Time Data Written
---------- ---------------- --------------- --------------
-------------
vs0 lun1 0-5% 4 100MB
vs0 lun1 6-10% 10 900MB
vs0 lun1 11-15% 20 40MB
vs0 lun1 16-20% 10 70MB
vs0 lun1 21-25% 60 450MB
vs0 lun1 26-30% 4 100MB
vs0 lun1 31-35% 10 900MB
vs0 lun1 36-40% 20 40MB
vs0 lun1 41-45% 0 0
vs0 lun1 46-50% 0 0
vs0 lun1 51-55% 0 0
vs0 lun1 56-60% 0 0
vs0 lun1 61-65% 0 0
vs0 lun1 66-70% 0 0
vs0 lun1 71-75% 0 0
vs0 lun1 76-80% 0 0
vs0 lun1 81-85% 0 0
vs0 lun1 86-90% 0 0
vs0 lun1 91-95% 0 0
vs0 lun1 96-100% 0 0
• The workload is suitable for ARP. ARP automatically sets the adaptive threshold to higher than 10% of
the maximum encryption percentage seen during the evaluation period. ARP also continues statistics
collection and creates periodic ARP snapshots.
• The workload is unsuitable for ARP. ARP automatically sets the adaptive threshold to the maximum
encryption percentage seen during the evaluation period. ARP also continues statistics collection and
creates periodic ARP snapshots, but the system ultimately recommends disabling ARP on the volume.
You can determine the evaluation results by running the following command. Volume suitability is indicated in
the Block device detection status field:
23
Example response:
You can also show the value threshold adopted as a result of the evaluation:
Example response:
Do not use the ARP disable function to pause analytics. Doing so disables ARP on the volume
and all the existing information around learned workload behavior is lost. This would require a
restart of the learning period.
24
Steps
You can use System Manager or the ONTAP CLI to pause ARP.
25
System Manager
1. Select Storage > Volumes and then select the volume where you want to pause ARP.
2. In the Security tab of the Volumes overview, select Pause anti-ransomware in the Anti-
ransomware box.
Beginning with ONTAP 9.13.1, if you are using MAV to protect your ARP settings, the
pause operation prompts you to obtain the approval of one or more additional
administrators. Approval must be received from all administrators associated with the
MAV approval group or the operation will fail.
CLI
1. Pause ARP on a volume:
Learn more about security anti-ransomware volume in the ONTAP command reference.
3. If you are using MAV (available with ARP beginning with ONTAP 9.13.1) to protect your ARP settings,
the pause operation prompts you to obtain the approval of one or more additional administrators.
Approval must be received from all administrators associated with the MAV approval group or the
operation will fail.
If you are using MAV and an expected pause operation needs additional approvals, each MAV group
approver does the following:
The response for the last group approver indicates that the volume has been modified and the
state of ARP is paused.
26
If you are using MAV and you are a MAV group approver, you can reject a pause operation
request:
When Autonomous Ransomware Protection (ARP) is in a learning or evaluation mode, it develops baseline
values for volume behaviors. These include entropy, file extensions, and, beginning with ONTAP 9.11.1, IOPS.
These baselines are used to evaluate ransomware threats. For more information about these criteria, see what
ARP detects.
Certain volumes and workloads require different detection parameters. For example, your ARP-enabled
volume may host numerous types of file extensions, in which case you may want to modify the threshold count
for never-before-seen file extensions to a number greater than the default of 20 or disable warnings based on
never-before-seen file extensions. Beginning with ONTAP 9.11.1, you can modify the attack detection
parameters so they better fit your specific workloads.
Beginning with ONTAP 9.14.1, you can configure alerts when ARP observes a new file extension and when
ARP creates a snapshot. For more information, see Configure ARP alerts.
• More than 20 files with file extensions not previously observed in the volume
• High entropy data
Beginning with ONTAP 9.11.1, ARP issues a threat warning if only one condition is met. For example, if more
than 20 files with file extensions that have not previously been observed in the volume are observed within a
24-hour period, ARP will categorize this as a threat regardless of observed entropy. The 24-hour and 20-file
values are defaults, which can be modified.
To reduce high numbers of false positive alerts, go to Storage > Volumes > Security >
Configure workload characteristics and disable Monitor new file types. This setting is
disabled by default in ONTAP 9.14.1 P7, 9.15.1 P1, 9.16.1, and later.
27
automatically learned threshold. This threshold is established after an evaluation period but can be modified.
Depending on the expected behaviors of your ARP-enabled volume, you might want to modify the attack
detection parameters.
Steps
1. View the existing attack detection parameters:
2. All the fields shown are modifiable with boolean or integer values. To modify a field, use the security
anti-ransomware volume attack-detection-parameters modify command.
ARP continues to modify baseline values for detection parameters even when active. If you know of surges in
your volume activity, either one-time surges or a surge that is characteristic of a new normal, you should report
them as safe. Manually reporting these surges as safe helps to improve the accuracy of ARP’s threat
assessments.
28
security anti-ransomware volume workload-behavior clear-surge -vserver
<svm_name> -volume <volume_name>
Beginning with ONTAP 9.14.1, ARP allows you to specify alerts for two ARP events:
Alerts for these two events can be set on individual volumes or for the entire SVM. If you enable alerts for the
SVM, the alert settings are inherited only by volumes created after you enable alert. By default, alerts are not
enabled on any volume.
Event alerts can be controlled with multi-admin verification. For more information, see Multi-admin verification
with volumes protected with ARP.
Steps
You can use System Manager or the ONTAP CLI to set alerts for ARP events.
29
System Manager
Set alerts for a volume
1. Navigate to Volumes. Select the individual volume for which you want to modify settings.
2. Select the Security tab then Event severity settings.
3. To receive alerts for New file extension detected and Ransomware snapshot created, select the
dropdown menu under the Severity heading. Modify the setting from Don’t generate event to
Notice.
4. Select Save.
CLI
Set alerts for a volume
• To set alerts for a new file-extension:
• Confirm your settings with the anti-ransomware volume event-log show command.
• Confirm your settings with the security anti-ransomware vserver event-log show
command.
Learn more about security anti-ransomware vserver event-log commands in the ONTAP
command reference.
30
Related information
• Understand Autonomous Ransomware Protection attacks and the Autonomous Ransomware Protection
snapshot.
• ONTAP command reference
Beginning with ONTAP 9.11.1, you can modify the retention settings for ARP snapshots.
When an ARP warning notification is issued, respond by designating the activity in one of two ways:
• False positive
The identified file type or entropy spike is expected in your workload and can be ignored.
The identified file type or entropy spike is unexpected in your workload and should be treated as a potential
attack.
Normal monitoring resumes after you update with your decision and clear the ARP notifications. ARP records
your evaluation to the threat assessment profile, using your choice to monitor subsequent file activities.
In the case of a suspected attack, you must determine whether it is an attack, respond to it if it is, and restore
protected data before clearing the notices. Learn more about how to recover from a ransomware attack.
Steps
You can use System Manager or the ONTAP CLI to respond to abnormal activity.
31
System Manager
1. When you receive an "abnormal activity" notification, follow the link. Alternatively, navigate to the
Security tab of the Volumes overview.
2. In the Security tab, review the suspected file types or entropy spikes report.
◦ For suspected files, examine each file type in the Suspected File Types dialog box and mark
each individually.
◦ For entropy spikes, examine the entropy report.
3. Record your response:
32
Potential Ransomware 1. Respond to the attack:
Attack
◦ For file type warnings, mark selected files as Potential
ransomware attack and restore protected data.
◦ For entropy spikes that indicate an attack, select Mark as potential
ransomware attack and restore protected data.
2. After data restoration is complete, record your decision and resume
normal ARP monitoring:
◦ For file type warnings, select Update and Clear Suspect File
Types.
◦ For entropy spikes, select Mark as potential ransomware attack
and select Save and dismiss.
Recording your decision clears the attack report. For ONTAP 9.15.1 and
earlier, after you restore a volume the ARP snapshots are automatically
deleted. For ARP/AI in ONTAP 9.16.1 and later, ARP snapshots are
automatically deleted after an abbreviated retention period triggered by the
categorization operation.
CLI
1. When you receive a notification of a suspected ransomware attack, verify the time and severity of the
attack:
Sample output:
33
security anti-ransomware volume attack generate-report -vserver
<svm_name> -volume <vol_name> -dest-path
<[svm_name]:[junction_path/sub_dir_name]>
Sample command:
Sample output:
cat report_file_vs0_vol1_14-09-2021_01-21-08
4. Take one of the following actions based on your evaluation of the file extensions or entropy spikes:
◦ False positive
Run one of the following commands to record your decision and resume normal Autonomous
Ransomware Protection monitoring:
Use the following optional parameter to identify only specific extensions as false positives:
34
Respond to the attack and recover data from the ARP-created backup snapshot. After the data is
recovered, run one of the following commands to record your decision and resume normal ARP
monitoring:
Use the following optional parameter to identify only specific extensions as potential
ransomware:
This clear-suspect operation clears the attack report. There are no suspected file type notices to
clear if you restored an entire volume. For ONTAP 9.15.1 and earlier, ARP snapshots are
automatically deleted after you restore a volume or clear a suspected event. For ARP/AI in ONTAP
9.16.1 and later, ARP snapshots are automatically deleted after an abbreviated retention period
triggered by the categorization operation.
5. If you are using MAV and an expected clear-suspect operation needs additional approvals, each
MAV group approver must:
a. Show the request:
The response for the last group approver indicates that the volume has been modified and a false
positive is recorded.
6. If you are using MAV and you are a MAV group approver, you can also reject a clear-suspect request:
35
security multi-admin-verify request veto -index[<number returned
from show request>]
Related information
• KB: Understanding Autonomous Ransomware Protection attacks and the Autonomous Ransomware
Protection snapshot
• Modify automatic snapshots options
• security anti-ransomware volume
• security multi-admin-verify request
• Anti_ransomware_backup: Used in ONTAP 9.16.1 and earlier with snapshots that are created in
response to abnormalities. For example, Anti_ransomware_backup.2022-12-20_1248.
• Anti_ransomware_periodic_backup: Used in ONTAP 9.17.1 and later for snapshots created at
regular intervals. For example, Anti_ransomware_periodic_backup.2025-06-01_1248.
To restore from a snapshot other than the Anti_ransomware snapshot after a system attack is identified, you
must first release the ARP snapshot.
If no system attack is reported, you must first restore from the Anti_ransomware snapshot then complete a
subsequent restoration of the volume from the snapshot you choose.
If the ARP-protected volume is part of a SnapMirror relationship, you’ll need to manually update
all mirror copies of the volume after restoring it from a snapshot. If you skip this step, the mirror
copies might become unusable and need to be deleted and recreated.
Steps
You can use System Manager or the ONTAP CLI to restore your data.
36
System Manager
Restore after a system attack
1. To restore from the ARP snapshot, skip to step two. To restore from an earlier snapshot, you must first
release the lock on the ARP snapshot.
a. Select Storage > Volumes.
b. Select Security then View Suspected File Types.
c. Mark the files as "Potential ransomware attack".
d. Select Update and Clear Suspect File Types.
2. Display the snapshots in volumes:
Select Storage > Volumes, then select the volume and Snapshot Copies.
Select Storage > Volumes, then select the volume and Snapshot Copies.
CLI
Restore after a system attack
To restore from the ARP snapshot, skip to step two. To restore data from earlier snapshots, you must
release the lock on the ARP snapshot.
It is only necessary to release the anti-ransomware Snaplock before restoring from earlier
snapshots if you are using the volume snapshot restore command as outlined below.
If you are restoring data using FlexClone, Single File Snap Restore, or other methods, this
is not necessary.
1. Mark the attack as a potential ransomware attack (-false-positive false) and clear suspect
files (clear-suspect):
37
2. List the snapshots in a volume:
38
clus1::> volume snapshot show -vserver vs1 -volume vol1
Related information
• KB: Ransomware prevention and recovery in ONTAP
• ONTAP command reference
Steps
1. Show all current ARP snapshot settings:
39
options -option-name arw*
[Link] Specifies the maximum number of ARP snapshots that can ONTAP 9.11.1 and
unt exist in a volume at any given time. Older copies are deleted to later
ensure that the total number of ARP snapshots is within this
specified limit.
[Link] Specifies the interval in hours between ARP snapshots. A new ONTAP 9.11.1 and
.[Link] ARP snapshot is created when a data entropy-based attack is later
suspected and the most recently created ARP snapshot is
older than the specified interval.
[Link] Specifies the duration in hours for which an ARP snapshot is • ONTAP 9.11.1
.[Link] retained. When an ARP snapshot reaches the retention to ONTAP
[Link] threshold, it is deleted. 9.16.1
• Deprecated in
ONTAP 9.17.1
and later
40
Setting Description Supported
versions
[Link] Specifies the maximum duration in days for which an ARP • ONTAP 9.11.1
[Link].d snapshot can be retained. Any ARP snapshot older than this to ONTAP
ays duration is deleted when there is no attack reported on the 9.16.1
volume.
• Deprecated in
ONTAP 9.17.1
The maximum retention interval for ARP and later
snapshots is ignored if a moderate threat is
detected. The ARP snapshot created in
response to the threat is retained until you have
responded to the threat. When you mark a
threat as a false positive, ONTAP will delete the
ARP snapshots for the volume.
[Link] Specifies the interval in hours between ARP snapshots when • ONTAP 9.11.1
.[Link] the volume already contains the maximum number of ARP to 9.16.1
.[Link] snapshots. When the maximum number is reached, an ARP • Deprecated in
snapshot is deleted to make room for a new copy. The new
ONTAP 9.17.1
ARP snapshot creation speed can be reduced to retain the
and later
older copy using this option. If the volume already contains the
maximum number of ARP snapshots, the interval specified in
this option is used for the next ARP snapshot creation, instead
of [Link].
[Link] Specifies the retention duration in hours for ARP snapshots • ONTAP 9.17.1
[Link] created during periods of low encryption activity. and later
.[Link]
[Link] Specifies the interval in hours between the ARP snapshots • ONTAP 9.11.1
[Link] created when a new file extension is detected. A new ARP to ONTAP
urs snapshot is created when a new file extension is observed; the 9.16.1
previous snapshot created upon observing a new file
• Deprecated in
extension is older than this specified interval. On a workload
ONTAP 9.17.1
that frequently creates new file extensions, this interval helps
and later
control the frequency of the ARP snapshots. This option exists
independent of [Link],
which specifies the interval for data entropy-based ARP
snapshots.
[Link] Specifies the interval in hours an ARP snapshot is retained as • ONTAP 9.16.1
.[Link] a precaution after an attack incident is marked as a false and later
[Link] positive by the administrator. After this precautionary retention
[Link] period expires, the snapshot may be deleted according to the
standard retention duration defined by the options
[Link] and
[Link].
41
Setting Description Supported
versions
[Link] Specifies the interval in hours an ARP snapshot is retained as • ONTAP 9.16.1
.[Link] a precaution after an attack incident is marked as a real attack and later
[Link] by the administrator. After this precautionary retention period
[Link] expires, the snapshot may be deleted according to the
standard retention duration defined by the options
[Link] and
[Link].
[Link]. Specifies the interval in days between ARP snapshots created ONTAP 9.11.1 and
[Link] in response to IO surges. ONTAP creates an ARP snapshot later
surge copy when there’s a surge in IO traffic and the last
created ARP snapshot is older than this specified interval. This
option also specifies retention period in day for an ARP surge
snapshot.
[Link] Enables alerts for high levels of encryption. When this option is ONTAP 9.17.1 and
[Link] set to on (default), ONTAP sends an alert when the later
led percentage of encryption exceeds the threshold specified in
[Link].
[Link] Specifies the maximum percentage of encryption for a volume. ONTAP 9.17.1 and
[Link] If the percentage of encryption is more than this threshold, later
.threshold ONTAP handles the increase as an attack and creates an ARP
snapshot. [Link] must
be set to on for this option to take effect.
[Link].e Specifies the retention duration interval in hours for snapshots ONTAP 9.17.1 and
[Link] created during a high encryption threshold event. later
[Link]
s
4. If you are using ARP with a SAN environment, you can also modify the following evaluation period settings:
arw.block_devic Specifies the minimum encryption threshold percentage value ONTAP 9.17.1 and
[Link] during the auto-learn phase of evaluation for block devices. later
reshold.min_val
ue
arw.block_devic Specifies the maximum encryption threshold percentage value ONTAP 9.17.1 and
[Link] during the auto-learn phase of evaluation for block devices. later
reshold.max_val
ue
arw.block_devic Specifies the minimum interval in hours the evaluation phase ONTAP 9.17.1 and
[Link] must run before the encryption threshold is set. later
ase.min_hours
42
Setting Description Supported
versions
arw.block_devic Specifies the maximum interval in hours the evaluation phase ONTAP 9.17.1 and
[Link] must run before the encryption threshold is set. later
ase.max_hours
arw.block_devic Specifies the minimum amount of data in GB that must be ONTAP 9.17.1 and
[Link] ingested during the evaluation phase before the encryption later
ase.min_data_in threshold is set.
gest_size_GB
arw.block_devic Specifies whether alerts are enabled for the evaluation phase ONTAP 9.17.1 and
[Link] of ARP on block devices. Default value is True. later
[Link]
ed
arw.block_devic Specifies the threshold percentage during the evaluation ONTAP 9.17.1 and
[Link] phase of ARP on block devices. If the percentage of later
[Link] encryption exceeds this threshold, an alert is triggered.
hold
Related information
• Threat assessment and ARP snapshots
• SAN entropy evaluation period
Related information
Vscan partner solutions
43
How virus scanning works
Storage systems offload scanning operations to external servers hosting antivirus software from third-party
vendors.
Based on the active scanning mode, ONTAP sends scan requests when clients access files over SMB (on-
access) or access files in specific locations, on a schedule or immediately (on-demand).
• You can use on-access scanning to check for viruses when clients open, read, rename, or close files over
SMB. File operations are suspended until the external server reports the scan status of the file. If the file
has already been scanned, ONTAP allows the file operation. Otherwise, it requests a scan from the server.
• You can use on-demand scanning to check files for viruses immediately or on a schedule. We recommend
that on-demand scans run only in off-peak hours to avoid overloading existing AV infrastructure, which is
normally sized for on-access scanning. The external server updates the scan status of checked files, so
that file-access latency is reduced over SMB. If there were file modifications or software version updates, it
requests a new file scan from the external server.
You can use on-demand scanning for any path in the SVM namespace, even for volumes that are exported
only through NFS.
You typically enable both on-access and on-demand scanning modes on an SVM. In either mode, the antivirus
software takes remedial action on infected files based on your software settings.
The ONTAP Antivirus Connector, provided by NetApp and installed on the external server, handles
communication between the storage system and the antivirus software.
44
Virus scanning workflow with ONTAP Vscan
You must create a scanner pool and apply a scanner policy before you can enable
scanning. You typically enable both on-access and on-demand scanning modes on an
SVM.
45
To create an on-demand task, there must be at least one on-access policy enabled. It can be the
default policy or a user created on-access policy.
Next steps
• Create a scanner pool on a single cluster
• Apply a scanner policy on a single cluster
• Create an on-access policy
The NetApp antivirus architecture consists of Vscan server software and associated
settings.
46
Vscan server software
This is NetApp-provided software that handles scan request and response communication between the
SVMs and antivirus software. It can run on a virtual machine, but for best performance use a physical
machine. You can download this software from the NetApp Support Site (requires login).
• Antivirus software
This is partner-provided software that scans files for viruses or other malicious code. You specify the
remedial actions to be taken on infected files when you configure the software.
• Scanner pool
This setting defines the Vscan servers and privileged users that can connect to SVMs. It also defines a
scan request timeout period, after which the scan request is sent to an alternative Vscan server if one is
available.
You should set the timeout period in the antivirus software on the Vscan server to five
seconds less than the scanner-pool scan-request timeout period. This will avoid situations in
which file access is delayed or denied altogether because the timeout period on the software
is greater than the timeout period for the scan request.
• Privileged user
This setting is a domain user account that a Vscan server uses to connect to the SVM. The account must
exist in the list of privileged users in the scanner pool.
• Scanner policy
This setting determines whether a scanner pool is active. Scanner policies are system-defined, so you
cannot create custom scanner policies. Only these three policies are available:
This setting defines the scope of an on-access scan. You can specify the maximum file size to scan, file
extensions and paths to include in the scan, and file extensions and paths to exclude from the scan.
By default, only read-write volumes are scanned. You can specify filters that enable scanning of read-only
volumes or that restrict scanning to files opened with execute access:
47
◦ scan-execute-access restricts scanning to files opened with execute access.
“Execute access” is different from “execute permission.” A given client will have “execute
access” on an executable file only if the file was opened with “execute intent.”
You can set the scan-mandatory option to off to specify that file access is allowed when no Vscan
servers are available for virus scanning. Within on-access mode you can choose from these two mutually-
exclusive options:
◦ Mandatory: With this option, Vscan tries to deliver the scan request to the server until the timeout
period expires. If the scan request is not accepted by the server, then the client access request is
denied.
◦ Non-Mandatory: With this option, Vscan always allows client access, whether or not a Vscan server
was available for virus scanning.
• On-demand task
This setting defines the scope of an on-demand scan. You can specify the maximum file size to scan, file
extensions and paths to include in the scan, and file extensions and paths to exclude from the scan. Files
in subdirectories are scanned by default.
You use a cron schedule to specify when the task runs. You can use the vserver vscan on-demand-
task run command to run the task immediately. Learn more about vserver vscan on-demand-task
run in the ONTAP command reference.
The vscan-fileop-profile parameter for the vserver cifs share create command defines
which SMB file operations trigger virus scanning. By default, the parameter is set to standard, which is
NetApp best practice. You can adjust this parameter as necessary when you create or modify an SMB
share:
◦ no-scan specifies that virus scans are never triggered for the share.
◦ standard specifies that virus scans are triggered by open, close, and rename operations.
◦ strict specifies that virus scans are triggered by open, read, close, and rename operations.
The strict profile provides enhanced security for situations in which multiple clients access a file
simultaneously. If one client closes a file after writing a virus to it, and the same file remains open on a
second client, strict ensures that a read operation on the second client triggers a scan before the file
is closed.
You should be careful to restrict the strict profile to shares containing files that you anticipate will be
accessed simultaneously. Since this profile generates more scan requests, it may impact performance.
◦ writes-only specifies that virus scans are triggered only when modified files are closed.
If you use this profile, the scanner must be configured to delete or quarantine unrepairable infected
files, so they cannot be accessed. If, for example, a client closes a file after writing a virus to it, and the
file is not repaired, deleted, or quarantined, any client that accesses the file without writing to it will
be infected.
48
If a client application performs a rename operation, the file is closed with the new name and is
not scanned. If such operations pose a security concern in your environment, you should use
the standard or strict profile.
Learn more about vserver cifs share create in the ONTAP command reference.
NetApp collaborates with Trellix, Symantec, Trend Micro, Sentinel One, Deep Instinct,
and OPSWAT to deliver industry-leading anti-malware and anti-virus solutions that build
upon ONTAP Vscan technology. These solutions help you scan files for malware and
remediate any affected files.
As shown in the table below, interoperability details for Trellix, Symantec, and Trend Micro are maintained on
the NetApp Interoperability Matrix. Interoperability details for Trellix, Symantec, Deep Instinct, and OPSWAT
can also be found on the partner websites. Interoperability details for Sentinel One, Deep Instinct, OPSWAT,
and other new partners will be maintained by the partner on their websites.
Trend Micro Trend Micro ServerProtect for NetApp Interoperability Matrix Tool
Storage 6.0 Getting Started Guide
49
Partner Solution documentation Interoperability details
Sentinel One • SentinelOne Singularity Cloud N/A
Data Security
• SentinelOne support
• Data Sheet
Set up one or more Vscan servers to ensure that files on your system are scanned for
viruses. Follow the instructions provided by your vendor to install and configure the
antivirus software on the server.
Follow the instructions in the README file provided by NetApp to install and configure the ONTAP Antivirus
Connector. Alternatively, follow the instructions on the Install ONTAP Antivirus Connector page.
For disaster recovery and MetroCluster configurations, you must set up and configure separate
Vscan servers for the primary/local and secondary/partner ONTAP clusters.
• For information about antivirus software requirements, see the vendor documentation.
• For information about the vendors, software, and versions supported by Vscan, see the Vscan partner
solutions page.
50
ONTAP Antivirus Connector requirements
• You can download the ONTAP Antivirus Connector from the Software Download page on the NetApp
Support Site. NetApp Downloads: Software
• For information about the Windows versions supported by the ONTAP Antivirus Connector and
interoperability requirements, see Vscan partner solutions.
You can install different versions of Windows servers for different Vscan servers in a cluster.
Install the ONTAP Antivirus Connector on the Vscan server to enable communication
between the system running ONTAP and the Vscan server. When the ONTAP Antivirus
Connector is installed, the antivirus software is able to communicate with one or more
storage virtual machines (SVMs).
About this task
• See the Vscan partner solutions page for information about the supported protocols, antivirus vendor
software versions, ONTAP versions, interoperability requirements and Windows servers.
• .NET 4.5.1 or later must be installed.
• The ONTAP Antivirus Connector can run on a virtual machine. However, for best performance, NetApp
recommends using a dedicated physical machine for antivirus scanning.
• SMB 2.0 must be enabled on the Windows server on which you are installing and running the ONTAP
Antivirus Connector.
Steps
1. Start the Antivirus Connector installation wizard by running the appropriate setup file.
2. Select Next. The Destination Folder dialog box opens.
3. Select Next to install the Antivirus Connector to the folder that is listed or select Change to install to a
different folder.
4. The ONTAP AV Connector Windows Service Credentials dialog box opens.
5. Enter your Windows service credentials or select Add to select a user. For an ONTAP system, this user
must be a valid domain user and must exist in the scanner pool configuration for the SVM.
6. Select Next. The Ready to Install the Program dialog box opens.
7. Select Install to begin the installation or select Back if you want to make any changes to the settings.
A status box opens and charts the progress of the installation, followed by the InstallShield Wizard
Completed dialog box.
51
8. Select the Configure ONTAP LIFs check box if you want to continue with the configuration of ONTAP
management or data LIFs.
You must configure at least one ONTAP management or data LIF before this Vscan server can be used.
9. Select the Show the Windows Installer log check box if you want to view the installation logs.
10. Select Finish to end the installation and to close the InstallShield wizard.
The Configure ONTAP LIFs icon is saved on the desktop to configure the ONTAP LIFs.
11. Add an SVM to the Antivirus Connector.
You can add an SVM to the Antivirus Connector by adding either an ONTAP management LIF, which is
polled to retrieve the list of data LIFs, or by directly configuring the data LIF or LIFs.
You must also provide the poll information and the ONTAP admin account credentials if the ONTAP
management LIF is configured.
◦ Verify that the management LIF or the IP address of the SVM is enabled for management-https. This
is not required when you are only configuring data LIFs.
◦ Verify that you have created a user account for the HTTP application and assigned a role which has (at
least read-only) access to the /api/network/ip/interfaces REST API.
◦ Learn more about security login role create and security login create in the ONTAP
command reference.
You can also use the domain user as an account by adding an authentication tunnel SVM for an
administrative SVM. Learn more about security login domain-tunnel create in the
ONTAP command reference.
Steps
a. Right-click on the Configure ONTAP LIFs icon, which was saved on your desktop when you completed
the Antivirus Connector installation, and then select Run as Administrator.
b. In the Configure ONTAP LIFs dialog box, select the preferred configuration type, then perform the following
actions:
After you create a LIF, enter the data or management LIF or IP address of the SVM that you want to add.
You can also enter the cluster management LIF. If you specify the cluster management LIF, all SVMs within
that cluster that are serving SMB can use the Vscan server.
52
When Kerberos authentication is required for Vscan servers, each SVM data LIF must have
a unique DNS name, and you must register that name as a server principal name (SPN)
with the Windows Active Directory. When a unique DNS name is not available for each data
LIF or registered as an SPN, the Vscan server uses the NT LAN Manager mechanism for
authentication. If you add or modify the DNS names and SPNs after the Vscan server is
connected, you must restart the Antivirus Connector service on the Vscan server to apply
the changes.
c. To configure a management LIF, enter the poll duration in seconds. The poll duration is the frequency at
which the Antivirus Connector checks for changes to the SVMs or the cluster’s LIF configuration. The
default poll interval is 60 seconds.
d. Enter the ONTAP admin account name and password to configure a management LIF.
e. Click Test to check the connectivity and verify the authentication. Authentication is verified only for a
management LIF configuration.
f. Click Update to add the LIF to the list of LIFs to poll or to connect to.
g. Click Save to save the connection to the registry.
h. Click Export if you want to export the list of connections to a registry import or registry export file. This is
useful if multiple Vscan servers use the same set of management or data LIFs.
See the Configure the ONTAP Antivirus Connector page for configuration options.
Configure the ONTAP Antivirus Connector to specify one or more storage virtual
machines (SVMs) that you want to connect to by either entering the ONTAP management
LIF, poll information, and the ONTAP admin account credentials, or just the data LIF. You
can also modify the details of an SVM connection or remove an SVM connection. By
default, the ONTAP Antivirus Connector uses REST APIs to retrieve the list of data LIFs if
the ONTAP management LIF is configured.
You can update the details of a storage virtual machine (SVM) connection, which has been added to the
Antivirus Connector, by modifying the ONTAP management LIF and the poll information. You cannot update
data LIFs after they have been added. To update data LIFs you must first remove them and then add them
again with the new LIF or IP address.
Learn more about security login role create and security login create in the ONTAP
command reference.
You can also use the domain user as an account by adding an authentication tunnel SVM for an administrative
SVM.
Learn more about security login domain-tunnel create in the ONTAP command reference.
Steps
53
1. Right-click the Configure ONTAP LIFs icon, which was saved on your desktop when you completed the
Antivirus Connector installation, and then select Run as Administrator. The Configure ONTAP LIFs dialog
box opens.
2. Select the SVM IP address, and then click Update.
3. Update the information, as required.
4. Click Save to update the connection details in the registry.
5. Click Export if you want to export the list of connections to a registry import or a registry export file.
This is useful if multiple Vscan servers use the same set of management or data LIFs.
Steps
1. Right-click the Configure ONTAP LIFs icon, which was saved on your desktop when you completed the
Antivirus Connector installation, and then select Run as Administrator. The Configure ONTAP LIFs dialog
box opens.
2. Select one or more SVM IP addresses, and then click Remove.
3. Click Save to update the connection details in the registry.
4. Click Export if you want to export the list of connections to a registry import or registry export file.
This is useful if multiple Vscan servers use the same set of management or data LIFs.
Troubleshoot
You can enable or disable Antivirus Connector logs for diagnostic purposes. By default, these logs are
disabled. For enhanced performance, you should keep the Antivirus Connector logs disabled and only enable
them for critical events.
Steps
1. Select Start, type "regedit" into the search box, and then select [Link] in the Programs list.
2. In Registry Editor, locate the following subkey for the ONTAP Antivirus Connector:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Data ONTAP\Clustered Data ONTAP
Antivirus Connector\v1.0
3. Create registry values by providing the type, name, and values shown in the following table:
4. Create another registry value by providing the type, name, values, and logging information shown in the
following table:
54
Type Name Critical logging Intermediate Verbose logging
logging
DWORD Tracelevel 1 2 or 3 4
This enables Antivirus Connector logs that are saved at the path value provided in the TracePath in Step 3.
5. Disable Antivirus Connector logs by deleting the registry values you created in Steps 3 and 4.
6. Create another registry value of type "MULTI_SZ" with the name "LogRotation" (without quotes). In
"LogRotation",
provide "logFileSize:1" as an entry for rotation size (where 1 represents 1MB) and in the next line, provide
"logFileCount:5" as an
entry for rotation limit (5 is the limit).
These values are optional. If they are not provided, default values of 20MB and 10 files are
used for the rotation size and rotation limit respectively. Provided integer values do not
provide decimal or fraction values. If you provide values higher than the default values, the
default values are used instead.
7. To disable the user-configured log rotation, delete the registry values you created in Step 6.
Customizable Banner
A custom banner allows you to place a legally binding statement and a system access disclaimer on the
Configure ONTAP LIF API window.
Step
1. Modify the default banner by updating the contents in the [Link] file in the install directory and then
saving the changes.
You must reopen the Configure ONTAP LIF API window to see the changes reflected in the banner.
You can enable and disable Extended Ordinance (EO) mode for secure operation.
Steps
1. Select Start, type "regedit" in the search box, and then select [Link] in the Programs list.
2. In Registry Editor, locate the following subkey for ONTAP Antivirus Connector:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Data ONTAP\Clustered Data ONTAP
Antivirus Connector\v1.0
3. In the right-side pane, create a new registry value of type "DWORD" with the name "EO_Mode" (without
quotes) and value "1" (without quotes) to enable EO Mode or value "0" (without quotes) to disable EO
Mode.
By default, if the EO_Mode registry entry is absent, EO mode is disabled. When you enable EO
mode, you must configure both the external syslog server and mutual certificate authentication.
55
Take note that when you are creating registry values in this procedure, use the right-side pane.
Steps
1. Select Start, type "regedit" in the search box, and then select [Link] in the Programs list.
2. In Registry Editor, create the following subkey for ONTAP Antivirus Connector for syslog configuration:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Data ONTAP\Clustered Data ONTAP
Antivirus Connector\v1.0\syslog
3. Create a registry value by providing the type, name, and value as shown in the following table:
Note that a "1" value enables the syslog and a "0" value disables it.
4. Create another registry value by providing the information as shown in the following table:
Type Name
REG_SZ Syslog_host
Provide the syslog host IP address or domain name for the value field.
5. Create another registry value by providing the information as shown in the following table:
Type Name
REG_SZ Syslog_port
Provide the port number on which the syslog server is running in the value field.
6. Create another registry value by providing the information as shown in the following table:
Type Name
REG_SZ Syslog_protocol
Enter the protocol that is in use on the syslog server, either "tcp" or "udp", in the value field.
7. Create another registry value by providing the information as shown in the following table:
8. Create another registry value by providing the information as shown in the following table:
56
DWORD syslog_tls 1 or 0
Note that a "1" value enables syslog with Transport Layer Security (TLS) and a "0" value disables syslog with
TLS.
X.509 certificate based mutual authentication is possible for the Secure Sockets Layer (SSL) communication
between the Antivirus Connector and ONTAP in the management path. If EO mode is enabled and the
certificate is not found, the AV Connector terminates. Perform the following procedure on the Antivirus
Connector:
Steps
1. The Antivirus Connector searches for the Antivirus Connector client certificate and the certificate authority
(CA) certificate for the NetApp server in the directory path from where the Antivirus Connector runs the
install directory. Copy the certificates into this fixed directory path.
2. Embed the client certificate and its private key in the PKCS12 format and name it "AV_client.P12".
3. Ensure the CA certificate (along with any intermediate signing authority up to the root CA) used to sign the
certificate for the NetApp server is in the Privacy Enhanced Mail (PEM) format and named
"Ontap_CA.pem". Place it in the Antivirus Connector install directory. On the NetApp ONTAP system, install
the CA certificate (along with any intermediate signing authority up to the root CA) used to sign the client
certificate for the Antivirus Connector at "ONTAP" as a "client-ca" type certificate.
57
Configure scanner pools
A scanner pool defines the Vscan servers and privileged users that can connect to SVMs.
A scanner policy determines whether a scanner pool is active.
If you use an export policy on an SMB server, you must add each Vscan server to the export
policy.
A scanner pool defines the Vscan servers and privileged users that can connect to SVMs.
Before you begin
• SVMs and Vscan servers must be in the same domain or in trusted domains.
• Configure an ONTAP Antivirus Connector with the cluster management LIF.
• The list of privileged users must include the domain and user name the Vscan server uses to connect to
the SVM.
• Once the scanner pool is configured, check the connection status to the servers.
Steps
1. Create a scanner pool:
The following command displays the details for the SP scanner pool:
58
cluster1::> vserver vscan scanner-pool show -vserver cluster_admin_SVM
-scanner-pool SP
Vserver: cluster_admin_SVM
Scanner Pool: SP
Applied Policy: idle
Current Status: off
Cluster on Which Policy Is Applied: -
Scanner Pool Config Owner: cluster
List of IPs of Allowed Vscan Servers: [Link], [Link]
List of Host Names of Allowed Vscan Servers: [Link], vmwin204-
[Link]
List of Privileged Users: cifs\u1, cifs\u2
You can also use the vserver vscan scanner-pool show command to view all the scanner pools on
the cluster. Learn more about vserver vscan scanner-pool show in the ONTAP command
reference.
You must create primary and secondary scanner pools on each cluster in a MetroCluster
configuration, corresponding to the primary and secondary SVMs on the cluster.
Before you begin
• SVMs and Vscan servers must be in the same domain or in trusted domains.
• For scanner pools defined for an individual SVM, you must have configured ONTAP Antivirus Connector
with the SVM management LIF or SVM data LIF.
• For scanner pools defined for all the SVMs in a cluster, you must have configured ONTAP Antivirus
Connector with the cluster management LIF.
• The list of privileged users must include the domain user account the Vscan server uses to connect to the
SVM.
• Once the scanner pool is configured, check the connection status to the servers.
This means that you must create primary and secondary scanner pools on each cluster in a MetroCluster
configuration, The secondary pool becomes active when the cluster begins serving data from the secondary
SVM. For Disaster Recovery (DR) the configuration is similar to MetroCluster.
59
Steps
1. Create a scanner pool:
◦ Specify a data SVM for a pool defined for an individual SVM, and specify a cluster admin SVM for a
pool defined for all the SVMs in a cluster.
◦ Specify an IP address or FQDN for each Vscan server host name.
◦ Specify the domain and user name for each privileged user.
You must create all scanner pools from the cluster containing the primary SVM.
Learn more about vserver vscan scanner-pool create in the ONTAP command reference.
The following commands create primary and secondary scanner pools on each cluster in a MetroCluster
configuration:
60
cluster1::> vserver vscan scanner-pool create -vserver cifssvm1 -
scanner-pool pool1_for_site1 -hostnames scan1 -privileged-users cifs
\u1,cifs\u2
The following command displays the details for the scanner pool pool1:
Vserver: cifssvm1
Scanner Pool: pool1_for_site1
Applied Policy: idle
Current Status: off
Cluster on Which Policy Is Applied: -
Scanner Pool Config Owner: vserver
List of IPs of Allowed Vscan Servers:
List of Host Names of Allowed Vscan Servers: scan1
List of Privileged Users: cifs\u1,cifs\u2
You can also use the vserver vscan scanner-pool show command to view all of the scanner pools
on an SVM. Learn more about vserver vscan scanner-pool show in the ONTAP command
reference.
A scanner policy determines whether a scanner pool is active. You must activate a
scanner pool before the Vscan servers that it defines can connect to an SVM.
61
About this task
• You can apply only one scanner policy to a scanner pool.
• If you created a scanner pool for all the SVMs in a cluster, you must apply a scanner policy on each SVM
individually.
Steps
1. Apply a scanner policy:
The following example shows that the scanner pool named SP on the vs1 SVM is active:
Learn more about the commands described in this procedure in the ONTAP command reference.
The following command displays the details for the SP scanner pool:
Vserver: vs1
Scanner Pool: SP
Applied Policy: primary
Current Status: on
Cluster on Which Policy Is Applied: cluster1
Scanner Pool Config Owner: vserver
List of IPs of Allowed Vscan Servers: [Link], [Link]
List of Host Names of Allowed Vscan Servers: [Link], vmwin204-
[Link]
List of Privileged Users: cifs\u1, cifs\u2
62
You can use the vserver vscan scanner-pool show-active command to view the active scanner
pools on an SVM. Learn more about vserver vscan scanner-pool show-active in the ONTAP
command reference.
A scanner policy determines whether a scanner pool is active. You must apply a scanner
policy to the primary and secondary scanner pools on each cluster in a MetroCluster
configuration.
About this task
• You can apply only one scanner policy to a scanner pool.
• If you created a scanner pool for all the SVMs in a cluster, you must apply a scanner policy on each SVM
individually.
• For disaster recovery and MetroCluster configurations, you must apply a scanner policy to every scanner
pool in the local cluster and remote cluster.
• In the policy that you create for the local cluster, you must specify the local cluster in the cluster
parameter. In the policy that you create for the remote cluster, you must specify the remote cluster in the
cluster parameter. The remote cluster can then take over virus scanning operations in case of a disaster.
Steps
1. Apply a scanner policy:
Learn more about vserver vscan scanner-pool apply-policy in the ONTAP command reference.
You must apply all scanner policies from the cluster containing the primary SVM.
The following commands apply scanner policies to the primary and secondary scanner pools on each
cluster in a MetroCluster configuration:
63
cluster1::>vserver vscan scanner-pool apply-policy -vserver cifssvm1
-scanner-pool pool1_for_site1 -scanner-policy primary -cluster
cluster1
Learn more about vserver vscan scanner-pool show in the ONTAP command reference.
The following command displays the details for the scanner pool pool1:
Vserver: cifssvm1
Scanner Pool: pool1_for_site1
Applied Policy: primary
Current Status: on
Cluster on Which Policy Is Applied: cluster1
Scanner Pool Config Owner: vserver
List of IPs of Allowed Vscan Servers:
List of Host Names of Allowed Vscan Servers: scan1
List of Privileged Users: cifs\u1,cifs\u2
You can use the vserver vscan scanner-pool show-active command to view the active scanner
pools on an SVM. Learn more about vserver vscan scanner-pool show-active in the ONTAP
command reference.
You can modify and delete scanner pools, and manage privileged users and Vscan
64
servers for a scanner pool. You can also view summary information about the scanner
pool.
Delete privileged users from a scanner pool vserver vscan scanner-pool privileged-
users remove
Add Vscan servers to a scanner pool vserver vscan scanner-pool servers add
Delete Vscan servers from a scanner pool vserver vscan scanner-pool servers
remove
View summary and details for a scanner pool vserver vscan scanner-pool show
View privileged users for a scanner pool vserver vscan scanner-pool privileged-
users show
View Vscan servers for all scanner pools vserver vscan scanner-pool servers show
Learn more about the commands described in this procedure in the ONTAP command reference.
An on-access policy defines the scope of an on-access scan. You can create an on-
access policy for an individual SVM or for all the SVMs in a cluster. If you created an on-
access policy for all the SVMs in a cluster, you must enable the policy on each SVM
individually.
About this task
• You can specify the maximum file size to scan, file extensions and paths to include in the scan, and file
extensions and paths to exclude from the scan.
• You can set the scan-mandatory option to off to specify that file access is allowed when no Vscan
servers are available for virus scanning.
• By default, ONTAP creates an on-access policy named "default_CIFS" and enables it for all the SVMs in a
cluster.
65
• Any file that qualifies for scan exclusion based on the paths-to-exclude, file-ext-to-exclude, or
max-file-size parameters is not considered for scanning, even if the scan-mandatory option is set to
on. (Check this troubleshooting section for connectivity issues related to the scan-mandatory option.)
• By default, only read-write volumes are scanned. You can specify filters that enable scanning of read-only
volumes or that restrict scanning to files opened with execute access.
• Virus scanning is not performed on an SMB share for which the continuously-available parameter is set to
Yes.
• See the Antivirus architecture section for details about the Vscan file-operations profile.
• You can create a maximum of ten (10) on-access policies per SVM. However, you can enable only one on-
access policy at a time.
◦ You can exclude a maximum of one hundred (100) paths and file extensions from virus scanning in an
on-access policy.
• Some file exclusion recommendations:
◦ Consider excluding large files (file size can be specified) from virus scanning because they can result in
a slow response or scan request timeouts for CIFS users. The default file size for exclusion is 2GB.
◦ Consider excluding file extensions such as .vhd and .tmp because files with these extensions might
not be appropriate for scanning.
◦ Consider excluding file paths such as the quarantine directory or paths in which only virtual hard drives
or databases are stored.
◦ Verify that all exclusions are specified in the same policy, because only one policy can be enabled at a
time. NetApp highly recommends having the same set of exclusions specified in the antivirus engine.
• An on-access policy is required for an on-demand scan. To avoid on-access scanning for, you should set
-scan-files-with-no-ext to false and -file-ext-to-exclude to * to exclude all extensions.
Steps
1. Create an on-access policy:
◦ Specify a data SVM for a policy defined for an individual SVM, a cluster admin SVM for a policy defined
for all the SVMs in a cluster.
◦ The -file-ext-to-exclude setting overrides the -file-ext-to-include setting.
◦ Set -scan-files-with-no-ext to true to scan files without extensions.
The following command creates an on-access policy named Policy1 on the vs1 SVM:
66
2. Verify that the on-access policy has been created: vserver vscan on-access-policy show
-instance data_SVM|cluster_admin_SVM -policy-name name
Learn more about vserver vscan on-access-policy in the ONTAP command reference.
The following command displays the details for the Policy1 policy:
Vserver: vs1
Policy: Policy1
Policy Status: off
Policy Config Owner: vserver
File-Access Protocol: CIFS
Filters: scan-ro-volume
Mandatory Scan: on
Max File Size Allowed for Scanning: 3GB
File Paths Not to Scan: \vol\a b\, \vol\a,b\
File Extensions Not to Scan: mp3, txt
File Extensions to Scan: mp*, tx*
Scan Files with No Extension: false
An on-access policy defines the scope of an on-access scan. You must enable an on-
access policy on an SVM before its files can be scanned.
If you created an on-access policy for all the SVMs in a cluster, you must enable the policy on each SVM
individually. You can enable only one on-access policy on an SVM at a time.
Steps
1. Enable an on-access policy:
The following command enables an on-access policy named Policy1 on the vs1 SVM:
67
Learn more about vserver vscan on-access-policy show in the ONTAP command reference.
The following command displays the details for the Policy1 on-access policy:
Vserver: vs1
Policy: Policy1
Policy Status: on
Policy Config Owner: vserver
File-Access Protocol: CIFS
Filters: scan-ro-volume
Mandatory Scan: on
Max File Size Allowed for Scanning: 3GB
File Paths Not to Scan: \vol\a b\, \vol\a,b\
File Extensions Not to Scan: mp3, txt
File Extensions to Scan: mp*, tx*
Scan Files with No Extension: false
The Vscan file-operations profile for an SMB share defines the operations on the share
that can trigger scanning. By default, the parameter is set to standard. You can adjust
the parameter as necessary when you create or modify an SMB share.
See the Antivirus architecture section for details about the Vscan file-operations profile.
Virus scanning is not performed on an SMB share that has the continuously-available
parameter set to Yes.
Step
1. Modify the value of the Vscan file-operations profile for an SMB share:
vserver cifs share modify -vserver data_SVM -share-name share -path share_path
-vscan-fileop-profile no-scan|standard|strict|writes-only
Learn more about vserver cifs share modify in the ONTAP command reference.
The following command changes the Vscan file operations profile for an SMB share to strict:
68
ONTAP Vscan commands for managing on-access policies
You can modify, disable, or delete an on-access policy. You can view a summary and
details for the policy.
View summary and details for an on-access policy vserver vscan on-access-policy show
Delete from the list of paths to exclude vserver vscan on-access-policy paths-
to-exclude remove
Add to the list of file extensions to exclude vserver vscan on-access-policy file-
ext-to-exclude add
Delete from the list of file extensions to exclude vserver vscan on-access-policy file-
ext-to-exclude remove
View the list of file extensions to exclude vserver vscan on-access-policy file-
ext-to-exclude show
Add to the list of file extensions to include vserver vscan on-access-policy file-
ext-to-include add
Delete from the list of file extensions to include vserver vscan on-access-policy file-
ext-to-include remove
View the list of file extensions to include vserver vscan on-access-policy file-
ext-to-include show
69
Learn more about the commands described in this procedure in the ONTAP command reference.
You can use on-demand scanning to check files for viruses immediately or on a schedule.
You might want to run scans only in off-peak hours, for example, or you might want to scan very large files that
were excluded from an on-access scan. You can use a cron schedule to specify when the task runs.
To create an on-demand task, there must be at least one on-access policy enabled. It can be the
default policy or a user created on-access policy.
On-demand scanning does not support scanning of symbolic links or stream files.
To create an on-demand task, there must be at least one on-access policy enabled. It can be the
default policy or a user created on-access policy.
An on-demand task defines the scope of the on-demand virus scan. You can specify the
maximum size of the files to be scanned, the extensions and paths of the files to be
included in the scan, and the extensions and paths of the files to be excluded from the
scan. Files in subdirectories are scanned by default.
About this task
• A maximum of ten (10) on-demand tasks can exist for each SVM, but only one can be active.
• An on-demand task creates a report, which has information regarding the statistics related to the scans.
This report is accessible with a command or by downloading the report file created by the task at the
location defined.
Steps
1. Create an on-demand task:
70
-no-ext true|false -directory-recursion true|false
Learn more about vserver vscan on-demand-task create in the ONTAP command reference.
The following command creates an on-demand task named Task1 on the `vs1`SVM:
You can use the job show command to view the status of the job. You can use the job
pause and job resume commands to pause and restart the job, or the job stop
command to end the job. Learn more about job in the ONTAP command reference.
Learn more about vserver vscan on-demand-task show in the ONTAP command reference.
The following command displays the details for the Task1 task:
71
cluster1::> vserver vscan on-demand-task show -instance vs1 -task-name
Task1
Vserver: vs1
Task Name: Task1
List of Scan Paths: /vol1/, /vol2/cifs/
Report Directory Path: /report
Job Schedule: daily
Max File Size Allowed for Scanning: 5GB
File Paths Not to Scan: /vol1/cold-files/
File Extensions Not to Scan: mp3, mp4
File Extensions to Scan: vmdk?, mp*
Scan Files with No Extension: false
Request Service Timeout: 5m
Cross Junction: true
Directory Recursion: true
Scan Priority: low
Report Log Level: info
Expiration Time for Report: -
You can create a task without assigning a schedule and use the vserver vscan on-
demand-task schedule command to assign a schedule; or add a schedule while
creating the task.
About this task
The schedule assigned with the vserver vscan on-demand-task schedule command overrides a
schedule already assigned with the vserver vscan on-demand-task create command.
Steps
1. Schedule an on-demand task:
The following command schedules an on-access task named Task2 on the vs2 SVM:
72
Learn more about vserver vscan on-demand-task schedule in the ONTAP command reference.
To view the status of the job, use the job show command. The job pause and job
resume commands, respectively pause and restart the job; the job stop command
terminates the job. Learn more about job in the ONTAP command reference.
Learn more about vserver vscan on-demand-task show in the ONTAP command reference.
The following command displays the details for the Task 2 task:
Vserver: vs2
Task Name: Task2
List of Scan Paths: /vol1/, /vol2/cifs/
Report Directory Path: /report
Job Schedule: daily
Max File Size Allowed for Scanning: 5GB
File Paths Not to Scan: /vol1/cold-files/
File Extensions Not to Scan: mp3, mp4
File Extensions to Scan: vmdk, mp*
Scan Files with No Extension: false
Request Service Timeout: 5m
Cross Junction: true
Directory Recursion: true
Scan Priority: low
Report Log Level: info
You can run an on-demand task immediately, whether or not you have assigned a
schedule.
Before you begin
You must have enabled scanning on the SVM.
Step
1. Run an on-demand task immediately:
73
vserver vscan on-demand-task run -vserver data_SVM -task-name task_name
The following command runs an on-access task named Task1 on the vs1 SVM:
Learn more about vserver vscan on-demand-task run in the ONTAP command reference.
You can use the job show command to view the status of the job. You can use the job
pause and job resume commands to pause and restart the job, or the job stop
command to end the job. Learn more about job in the ONTAP command reference.
You can modify, delete, or unschedule an on-demand task. You can view a summary and
details for the task, and manage reports for the task.
View summary and details for an on-demand task vserver vscan on-demand-task show
Learn more about the commands described in this procedure in the ONTAP command reference.
74
Best practices for configuring the off-box antivirus functionality in ONTAP Vscan
Consider the following recommendations for configuring the off-box functionality in
ONTAP.
• Restrict privileged users to virus scanning operations. Normal users should be discouraged from using
privileged user credentials. This restriction can be achieved by turning off login rights for privileged users
on Active Directory.
• Privileged users are not required to be part of any user group that has a large number of rights in the
domain, such as the administrators group or the backup operators group. Privileged users must be
validated only by the storage system so that they are allowed to create Vscan server connections and
access files for virus scanning.
• Use the computers running Vscan servers only for virus scanning purposes. To discourage general use,
disable the Windows terminal services and other remote access provisions on these machines, and grant
the right to install new software on these machines only to administrators.
• Dedicate the Vscan servers to virus scanning and do not use them for other operations, such as backups.
You might decide to run the Vscan server as a virtual machine (VM). If you run the Vscan server as a VM,
make sure that the resources allocated to the VM are not shared and are enough to perform virus
scanning.
• Provide adequate CPU, memory, and disk capacity to the Vscan server to avoid over allocation of
resources. Most Vscan servers are designed to use multiple CPU core servers and to distribute the load
across the CPUs.
• NetApp recommends using a dedicated network with a private VLAN for the connection from the SVM to
the Vscan server so that the scan traffic is not affected by other client network traffic. Create a separate
network interface card (NIC) that is dedicated to the antivirus VLAN on the Vscan server and to the data
LIF on the SVM. This step simplifies administration and troubleshooting if network issues arise. The
antivirus traffic should be segregated using a private network. The antivirus server should be configured to
communicate with the domain controller (DC) and ONTAP in one of the following ways:
◦ The DC should communicate to the antivirus servers through the private network that is used to
segregate the traffic.
◦ The DC and antivirus server should communicate through a different network (not the private network
mentioned previously), which is not the same as the CIFS client network.
◦ To enable Kerberos authentication for antivirus communication, create a DNS entry for the private LIFs
and a service principal name on the DC corresponding to the DNS entry created for the private LIF.
Use this name when adding a LIF to the Antivirus Connector. The DNS should be able to return a
unique name for each private LIF connected to the Antivirus Connector.
If the LIF for Vscan traffic is configured on a different port than the LIF for client traffic, the Vscan
LIF might fail over to another node if a port failure occurs. The change makes the Vscan server
not reachable from the new node and the scan notifications for file operations on the node fail.
Verify that the Vscan server is reachable through at least one LIF on a node so that it can
process scan requests for file operations performed on that node.
• Connect the NetApp storage system and the Vscan server by using at least a 1GbE network.
• For an environment with multiple Vscan servers, connect all servers that have similar high-performing
network connections. Connecting the Vscan servers improves performance by allowing load sharing.
• For remote sites and branch offices, NetApp recommends using a local Vscan server rather than a remote
Vscan server because the former is a perfect candidate for high latency. If cost is a factor, use a laptop or
PC for moderate virus protection. You can schedule periodic complete file system scans by sharing the
75
volumes or qtrees and scanning them from any system in the remote site.
• Use multiple Vscan servers to scan the data on the SVM for load-balancing and redundancy purposes. The
amount of CIFS workload and resulting antivirus traffic vary per SVM. Monitor CIFS and virus-scanning
latency on the storage controller. Monitor the trend of the results over time. If CIFS latency and virus-
scanning latency increases due to CPU or application queues on the Vscan servers beyond trend
thresholds, CIFS clients might experience long wait times. Add additional Vscan servers
to distribute the load.
• Install the latest version of ONTAP Antivirus Connector.
• Keep antivirus engines and definitions up to date. Consult partners for recommendations on how often you
should update.
• In a multi-tenancy environment, a scanner pool (pool of Vscan servers) can be shared with multiple SVMs
provided that the Vscan servers and the SVMs are part of the same domain or trusted domain.
• The antivirus software policy for infected files should be set to "delete" or "quarantine", which is the default
value set by most antivirus vendors. If the "vscan-fileop-profile" is set to "write_only", and if an infected file
is found, the file remains in the share and can be opened because opening a file does not trigger a scan.
The antivirus scan is triggered only after the file is closed.
• The scan-engine timeout value should be lesser than the scanner-pool request-timeout
value.
If it is set to a higher value, access to files might be delayed and might eventually time out.
To avoid this, configure the scan-engine timeout to 5 seconds less than the scanner-pool
request-timeout value. Refer to the scan engine vendor’s documentation for instructions on how to
change the scan-engine timeout settings. The scanner-pool timeout can be changed by using
the following command in advanced mode and by providing the appropriate value for the request-
timeout parameter:
vserver vscan scanner-pool modify.
• For an environment that is sized for on-access scanning workloads and requires the use of on-demand
scanning, NetApp recommends scheduling the on-demand scan job in off-peak hours to avoid additional
loads on the existing antivirus infrastructure.
Learn more about best practices specific to partners at Vscan partner solutions.
Learn more about vserver vscan enable in the ONTAP command reference.
You can use the vserver vscan disable command to disable virus scanning, if
necessary. Learn more about vserver vscan disable in the ONTAP command
reference.
76
cluster1::> vserver vscan enable -vserver vs1
Learn more about vserver vscan show in the ONTAP command reference.
The following command displays the Vscan status of the vs1 SVM:
Vserver: vs1
Vscan Status: on
This command can affect performance adversely, depending on the number and size of the files
to be rescanned.
Steps
1. Change to advanced privilege level:
Learn more about set -privilege advanced in the ONTAP command reference.
The following command resets the status of scanned files on the vs1 SVM:
77
cluster1::> vserver vscan reset -vserver vs1
You can use the vserver vscan show-events command to view event log
information about infected files, updates to Vscan servers, and the like. You can view
event information for the cluster or for given nodes, SVMs, or Vscan servers.
Before you begin
Advanced privileges are required to view the Vscan event log.
Steps
1. Change to advanced privilege level:
Learn more about vserver vscan show-events in the ONTAP command reference.
The following command displays event log information for the cluster cluster1:
You can use the vserver vscan connection-status show commands to view
information about Vscan server connections that you might find helpful in troubleshooting
78
connectivity issues.
By default, the scan-mandatory option for on-access scanning denies file access when a Vscan server
connection is not available for scanning. Although this option offers important safety features, it can lead to
problems in a few situations.
• Before enabling client access, you must ensure that at least one Vscan server is connected to an SVM on
each node that has a LIF. If you need to connect servers to SVMs after enabling client access, you must
turn off the scan-mandatory option on the SVM to ensure that file access is not denied because a Vscan
server connection is not available. You can turn the option back on after the server has been connected.
• If a target LIF hosts all the Vscan server connections for an SVM, the connection between the server and
the SVM will be lost if the LIF is migrated. To ensure that file access is not denied because a Vscan server
connection is not available, you must turn off the scan-mandatory option before migrating the LIF. You
can turn the option back on after the LIF has been migrated.
Each SVM should have at least two Vscan servers assigned to it. It is a best practice to connect Vscan servers
to the storage system over a different network from the one used for client access.
Learn more about vserver vscan connection-status show in the ONTAP command reference.
You can use the vserver vscan connection-status show commands to view
summary and detailed information about Vscan server connection status.
View details for Vscan server connections vserver vscan connection-status show-
all
View details for connected Vscan servers vserver vscan connection-status show-
connected
View details for available Vscan servers that are not vserver vscan connection-status show-
connected not-connected
Learn more about vserver vscan connection-status show in the ONTAP command reference.
For common virus scanning issues, there are possible causes and ways to resolve them.
Virus scanning is also known as Vscan.
79
The Vscan servers are not able to connect to Check whether the scanner pool configuration
the clustered ONTAP storage system. specifies the Vscan server IP address. Check also if
the allowed privileged users in the scanner pool list
are active. To check the scanner pool, run the
vserver vscan scanner-pool show command
on the storage system command prompt. If the Vscan
servers still cannot connect, there might be an issue
with the network.
Clients observe high latency. It is probably time to add more Vscan servers to the
scanner pool.
Too many scans are triggered. Modify the value of the vscan-fileop-profile
parameter to restrict the number of file operations
monitored for virus scanning.
Some files are not being scanned. Check the on-access policy. It is possible that the path
for these files has been added to the path-exclusion
list or that their size exceeds the configured value for
exclusions. To check the on-access policy, run the
vserver vscan on-access-policy show
command on the storage system command prompt.
Related information
• vserver vscan scanner-pool show
• vserver vscan on-access-policy show
You can monitor the critical aspects of the Vscan module, such as the Vscan server
connection status,
the health of the Vscan servers, and the number of files that have been scanned. This
information helps
you diagnose issues related to the Vscan server.
You can view the connection status of Vscan servers to manage the connections that are already in use
and the connections that are available for use. Various commands display information
about the connection status of Vscan servers.
80
vserver vscan connection-status show Summary of the connection status
vserver vscan connection-status show- Detailed information about the connection status
all
vserver vscan connection-status show- Status of the connections that are available but not
not-connected connected
vserver vscan connection-status show- Information about the connected Vscan server
connected
Learn more about vserver vscan connection-status show in the ONTAP command reference.
You can view Vscan server–specific statistics to monitor performance and diagnose issues related to
virus scanning. You must collect a data sample before you can use the statistics show command to
display the Vscan server statistics.
Step
1. Run the statistics start command and the optional statistics stop command.
Learn more about statistics start and statistics stop in the ONTAP command reference.
You can use ONTAP offbox_vscan counters on a per-SVM basis to monitor the rate of Vscan
server requests that are dispatched and received per second and the server latencies across all Vscan
servers. To view these statistics, complete the following step:
Step
1. Run the statistics show -object offbox_vscan –instance SVM command with the
following counters:
81
dispatch_latency Latency within ONTAP to identify an available
Vscan server and send the request to that Vscan
server
Object: offbox_vscan
Instance: SVM
Start-time: 10/16/2013 10:13:25
End-time: 10/16/2013 10:25:11
Cluster: cluster01
Number of Constituents: 2 (complete_aggregation)
Counter Value
-------------------------------- --------------------------------
scan_request_dispatched_rate 291
scan_noti_received_rate 292
dispatch_latency 43986us
scan_latency 3433501us
-----------------------------------------------------------------
You can use ONTAP offbox_vscan_server counters on a per-SVM, per–off-box Vscan server,
and per-node basis to monitor the rate of dispatched Vscan server requests and the server latency on
each Vscan server individually. To collect this information, complete the following step:
Step
1. Run the statistics show –object offbox_vscan –instance
SVM:servername:nodename command with the following counters:
82
Object: offbox_vscan_server
Instance: SVM:vscan_server:node
Start-time: 10/16/2013 10:13:25
End-time: 10/16/2013 10:25:11
Cluster: cluster01
Number of Constituents: 1 (complete_aggregation)
Counter Value
-------------------------------- --------------------------------
scan_request_dispatched_rate 291
scan_latency 3433830us
------------------------------------------------------------------
You can also use ONTAP offbox_vscan_server counters to collect Vscan server–side utilization
statistics. These statistics are tracked on a per-SVM, per–off-box Vscan server, and per-node basis. They
include CPU utilization on the Vscan server, queue depth for scanning operations on the Vscan server
(both current and maximum), used memory and used network.
These statistics are forwarded by the Antivirus Connector to the statistics counters within ONTAP. They
are based on data that is polled every 20 seconds and must be collected multiple times for accuracy;
otherwise, the values seen in the statistics reflect only the last polling. CPU utilization and queues are
particularly important to monitor and analyze. A high value for an average queue can indicate that the
Vscan server has a bottleneck.
To collect utilization statistics for the Vscan server on a per-SVM, per–off-box Vscan server, and per-node
basis, complete the following step:
Step
1. Collect utilization statistics for the Vscan server
83
Example of utilization statistics for the Vscan server
Object: offbox_vscan_server
Instance: SVM:vscan_server:node
Start-time: 10/16/2013 10:13:25
End-time: 10/16/2013 10:25:11
Cluster: cluster01
Number of Constituents: 1 (complete_aggregation)
Counter Value
-------------------------------- --------------------------------
scanner_stats_pct_cpu_used 51
scanner_stats_pct_dropped_requests 0
scanner_stats_pct_input_queue_avg 91
scanner_stats_pct_input_queue_hiwatermark 100
scanner_stats_pct_mem_used 95
scanner_stats_pct_network_used 4
-----------------------------------------------------------------
Related information
• ONTAP command reference
• Basic SMB and NFS protocol file access has been configured.
• You want to create and maintain an auditing configuration using one of the following methods:
◦ Native ONTAP functionality
◦ External FPolicy servers
Auditing for NAS events is a security measure that enables you to track and log certain SMB and NFS events
on storage virtual machines (SVMs). This helps you track potential security problems and provides evidence of
any security breaches. You can also stage and audit Active Directory central access policies to see what the
result of implementing them would be.
SMB events
84
• SMB file and folder access events
You can audit SMB file and folder access events on objects stored on FlexVol volumes belonging to the
auditing-enabled SVMs.
You can audit SMB logon and logoff events for SMB servers on SVMs.
You can audit the effective access of objects on SMB servers using permissions applied through proposed
central access policies. Auditing through the staging of central access policies enables you to see what the
effects are of central access policies before they are deployed.
Auditing of central access policy staging is set up using Active Directory GPOs; however, the SVM auditing
configuration must be configured to audit central access policy staging events.
Although you can enable central access policy staging in the auditing configuration without enabling
Dynamic Access Control on the SMB server, central access policy staging events are generated only if
Dynamic Access Control is enabled. Dynamic Access Control is enabled through a SMB server option. It is
not enabled by default.
NFS events
You can audit file and directory events by utilizing NFSv4 ACL’s on objects stored on SVMs.
To understand auditing in ONTAP, you should be aware of some basic auditing concepts.
• Staging files
The intermediate binary files on individual nodes where audit records are stored prior to consolidation and
conversion. Staging files are contained in staging volumes.
• Staging volume
A dedicated volume created by ONTAP to store staging files. There is one staging volume per aggregate.
Staging volumes are shared by all audit-enabled storage virtual machines (SVMs) to store audit records of
data access for data volumes in that particular aggregate. Each SVM’s audit records are stored in a
separate directory within the staging volume.
Cluster administrators can view information about staging volumes, but most other volume operations are
not permitted. Only ONTAP can create staging volumes. ONTAP automatically assigns a name to staging
volumes. All staging volume names begin with MDV_aud_ followed by the UUID of the aggregate
containing that staging volume (for example: MDV_aud_1d0131843d4811e296fc123478563412.)
• System volumes
A FlexVol volume that contains special metadata, such as metadata for file services audit logs. The admin
SVM owns system volumes, which are visible across the cluster. Staging volumes are a type of system
85
volume.
• Consolidation task
A task that gets created when auditing is enabled. This long-running task on each SVM takes the audit
records from staging files across the member nodes of the SVM. This task merges the audit records in
sorted chronological order, and then converts them to a user-readable event log format specified in the
auditing configuration—either the EVTX or XML file format. The converted event logs are stored in the
audit event log directory that is specified in the SVM auditing configuration.
The ONTAP auditing process is different from the Microsoft auditing process. Before you
configure auditing, you should understand how the ONTAP auditing process works.
Audit records are initially stored in binary staging files on individual nodes. If auditing is enabled on an SVM,
every member node maintains staging files for that SVM. Periodically, they are consolidated and converted to
user-readable event logs, which are stored in the audit event log directory for the SVM.
Auditing can only be enabled on SVMs. When the storage administrator enables auditing on the SVM, the
auditing subsystem checks whether staging volumes are present. A staging volume must exist for each
aggregate that contains data volumes owned by the SVM. The auditing subsystem creates any needed staging
volumes if they do not exist.
The auditing subsystem also completes other prerequisite tasks before auditing is enabled:
• The auditing subsystem verifies that the log directory path is available and does not contain symlinks.
The log directory must already exist as a path within the SVM’s namespace. It is recommended to create a
new volume or qtree to hold the audit log files. The auditing subsystem does not assign a default log file
location. If the log directory path specified in the auditing configuration is not a valid path, auditing
configuration creation fails with the The specified path "/path" does not exist in the
namespace belonging to Vserver "Vserver_name" error.
After this task is scheduled, auditing is enabled. The SVM auditing configuration and the log files persist
across a reboot or if the NFS or SMB servers are stopped or restarted.
Log consolidation is a scheduled task that runs on a routine basis until auditing is disabled. When auditing is
disabled, the consolidation task verifies that all of the remaining logs are consolidated.
Guaranteed auditing
By default, auditing is guaranteed. ONTAP guarantees that all auditable file access events (as specified by
configured audit policy ACLs) are recorded, even if a node is unavailable. A requested file operation cannot be
completed until the audit record for that operation is saved to the staging volume on persistent storage. If audit
records cannot be committed to the disk in the staging files, either because of insufficient space or because of
86
other issues, client operations are denied.
An administrator, or account user with privilege level access, can bypass the file audit logging
operation by using NetApp Manageability SDK or REST APIs. You can determine if any file
actions have been taken using NetApp Manageability SDK or REST APIs by reviewing the
command history logs stored in the [Link] file.
For more information about command history audit logs, see the "Managing audit logging for
management activities" section in System administration.
If a node containing volumes belonging to an SVM with auditing enabled is unavailable, the behavior of the
auditing consolidation task depends on whether the node’s storage failover (SFO) partner (or the HA partner in
the case of a two-node cluster) is available:
• If the staging volume is available through the SFO partner, the staging volumes last reported from the node
are scanned, and consolidation proceeds normally.
• If the SFO partner is not available, the task creates a partial log file.
When a node is not reachable, the consolidation task consolidates the audit records from the other
available nodes of that SVM. To identify that it is not complete, the task adds the suffix .partial to the
consolidated file name.
• After the unavailable node is available, the audit records in that node are consolidated with the audit
records from the other nodes at that time.
• All audit records are preserved.
Audit event log files are rotated when they reach a configured threshold log size or on a configured schedule.
When an event log file is rotated, the scheduled consolidation task first renames the active converted file to a
time-stamped archive file, and then creates a new active converted event log file.
When auditing is disabled on the SVM, the consolidation task is triggered one final time. All outstanding,
recorded audit records are logged in a user-readable format. Existing event logs stored in the event log
directory are not deleted when auditing is disabled on the SVM and are available for viewing.
After all existing staging files for that SVM are consolidated, the consolidation task is removed from the
schedule. Disabling the auditing configuration for the SVM does not remove the auditing configuration. A
storage administrator can reenable auditing at any time.
The auditing consolidation job, which gets created when auditing is enabled, monitors the consolidation task
and re-creates it if the consolidation task exits because of an error. Users cannot delete the auditing
consolidation job.
87
• The combined limit for NFS and S3 auditing-enabled SVMs depends on your version of ONTAP:
You can configure and enable auditing even if SMB and NFS licenses are not installed on the cluster.
When converting ACLs to mode bits, auditing ACEs are skipped. When converting mode bits to ACLs,
auditing ACEs are not generated.
If it does not exist, the command to create the auditing configuration fails.
• The directory specified in the auditing configuration must meet the following requirements:
◦ The directory must not contain symbolic links.
If the directory specified in the auditing configuration contains symbolic links, the command to create
the auditing configuration fails.
You must be aware of and have a plan for ensuring that there is sufficient space for the staging volumes in
aggregates that contain audited volumes.
• Auditing is dependent on having available space in the volume containing the directory where converted
event logs are stored.
You must be aware of and have a plan for ensuring that there is sufficient space in the volumes used to
store event logs. You can specify the number of event logs to retain in the auditing directory by using the
-rotate-limit parameter when creating an auditing configuration, which can help to ensure that there
is enough available space for the event logs in the volume.
• Although you can enable central access policy staging in the auditing configuration without enabling
Dynamic Access Control on the SMB server, Dynamic Access Control must be enabled to generate central
access policy staging events.
When an auditing configuration is created and auditing is enabled on at least one storage virtual machine
88
(SVM) in the cluster, the auditing subsystem creates staging volumes on all existing aggregates and on all new
aggregates that are created. You need to be aware of certain aggregate space considerations when you
enable auditing on the cluster.
Staging volume creation might fail due to non-availability of space in an aggregate. This might happen if you
create an auditing configuration and existing aggregates do not have enough space to contain the staging
volume.
You should ensure that there is enough space on existing aggregates for the staging volumes before enabling
auditing on an SVM.
Large audit records might occur during management auditing in one of the following scenarios:
Disable management auditing to avoid this issue. To do this, modify the audit configuration and remove the
following from the list of audit event types:
• file-share
• user-account
• security-group
• authorization-policy-change
After removal, they will not be audited by the file services auditing subsystem.
• If the size of an audit record is too large (over 32 KB), the audit record is not created and the auditing
subsystem generates an event management system (EMS) message similar to the following:
If auditing is guaranteed, the file operation fails because its audit record cannot be created.
• If the size of the audit record is more than 9,999 bytes, the same EMS message as above is displayed. A
partial audit record is created with the larger key value missing.
• If the audit record exceeds 2,000 characters, the following error message shows instead of the actual
value:
89
Learn about the supported formats for ONTAP audit event logs
Supported file formats for the converted audit event logs are EVTX and XML file formats.
You can specify the type of file format when you create the auditing configuration. By default, ONTAP converts
the binary logs to the EVTX file format.
You can open the converted EVTX audit event logs as saved files using Microsoft Event Viewer.
There are two options that you can use when viewing event logs using Event Viewer:
◦ General view
Information that is common to all events is displayed for the event record. In this version of ONTAP, the
event-specific data for the event record is not displayed. You can use the detailed view to display
event-specific data.
◦ Detailed view
A friendly view and an XML view are available. The friendly view and the XML view display both the
information that is common to all events and the event-specific data for the event record.
You can view and process XML audit event logs on third-party applications that support the XML file format.
XML viewing tools can be used to view the audit logs provided you have the XML schema and information
about definitions for the XML fields. For more information about the XML schema and definitions, see the
ONTAP Auditing Schema Reference.
If the audit consolidation process is running on the cluster, the consolidation process appends new records to
the active audit log file for audit-enabled storage virtual machines (SVMs). This active audit log can be
accessed and opened over an SMB share in Microsoft Event Viewer.
In addition to viewing existing audit records, Event Viewer has a refresh option that enables you to refresh the
content in the console window. Whether the newly appended logs are viewable in Event Viewer depends on
whether oplocks are enabled on the share used to access the active audit log.
90
Disabled Event Viewer opens the log that contains events written to it up to that point
in time. The refresh operation refreshes the log with new events appended
by the consolidation process.
This information is applicable only for EVTX event logs. XML event logs can be viewed through
SMB in a browser or through NFS using any XML editor or viewer.
Learn about SMB events that ONTAP can audit to interpret results
ONTAP can audit certain SMB events, including certain file and folder access events,
certain logon and logoff events, and central access policy staging events. Knowing which
access events can be audited is helpful when interpreting results from the event logs.
The following additional SMB events can be audited:
4907 Object auditing settings OBJECT ACCESS: Audit settings File Access
were changed changed.
4913 Object Central Access OBJECT ACCESS: CAP changed. File Access
Policy was changed
The following SMB events can be audited in ONTAP 9.0 and later:
529/4625 An account failed to log LOGON/LOGOFF: Unknown user Logon and Logoff
on name or bad password.
530/4625 An account failed to log LOGON/LOGOFF: Account logon Logon and Logoff
on time restriction.
531/4625 An account failed to log LOGON/LOGOFF: Account currently Logon and Logoff
on disabled.
91
532/4625 An account failed to log LOGON/LOGOFF: User account has Logon and Logoff
on expired.
533/4625 An account failed to log LOGON/LOGOFF: User cannot log Logon and Logoff
on on to this computer.
534/4625 An account failed to log LOGON/LOGOFF: User not granted Logon and Logoff
on logon type here.
535/4625 An account failed to log LOGON/LOGOFF: User’s password Logon and Logoff
on has expired.
537/4625 An account failed to log LOGON/LOGOFF: Logon failed for Logon and Logoff
on reasons other than above.
539/4625 An account failed to log LOGON/LOGOFF: Account locked Logon and Logoff
on out.
538/4634 An account was logged LOGON/LOGOFF: Local or network Logon and Logoff
off user logoff.
563/4659 Open Object with the OBJECT ACCESS: A handle to an File Access
Intent to Delete object (file or directory) was
requested with the Intent to Delete.
92
NA/4664 Hard link OBJECT ACCESS: An attempt was File Access
made to create a hard link.
NA/4818 Proposed central access OBJECT ACCESS: Central Access File Access
policy does not grant the Policy Staging.
same access permissions
as the current central
access policy
NA/NA Data ONTAP Rename Object OBJECT ACCESS: Object renamed. File Access
Event ID 9999 This is an ONTAP event. It is not
currently supported by Windows as a
single event.
NA/NA Data ONTAP Unlink Object OBJECT ACCESS: Object unlinked. File Access
Event ID 9998 This is an ONTAP event. It is not
currently supported by Windows as a
single event.
The HandleID tag in the audit XML event contains the handle of the object (file or directory) accessed. The
HandleID tag for the EVTX 4656 event contains different information depending on whether the open event is
for creating a new object or for opening an existing object:
• If the open event is an open request to create a new object (file or directory), the HandleID tag in the audit
XML event shows an empty HandleID (for example: <Data
Name="HandleID">00000000000000;00;00000000;00000000</Data> ).
The HandleID is empty because the OPEN (for creating a new object) request gets audited before the
actual object creation happens and before a handle exists. Subsequent audited events for the same object
have the right object handle in the HandleID tag.
• If the open event is an open request to open an existing object, the audit event will have the assigned
handle of that object in the HandleID tag (for example: <Data
Name="HandleID">00000000000401;00;000000ea;00123ed4</Data> ).
The object path printed in the <ObjectName> tag for an audit record contains the name
of the volume (in parentheses) and the relative path from the root of the containing
volume. If you want to determine the complete path of the audited object, including the
junction path, there are certain steps you must take.
Steps
1. Determine what the volume name and relative path to audited object is by looking at the <ObjectName>
tag in the audit event.
In this example, the volume name is “data1” and the relative path to the file is /dir1/[Link]:
93
<Data Name="ObjectName"> (data1);/dir1/[Link] </Data>
2. Using the volume name determined in the previous step, determine what the junction path is for the volume
containing the audited object:
In this example, the volume name is “data1” and the junction path for the volume containing the audited
object is /data/data1:
Junction Junction
Vserver Volume Language Active Junction Path Path Source
--------- ------------ -------- -------- ----------------- -----------
vs1 data1 en_US.UTF-8
true /data/data1 RW_volume
3. Determine the full path to the audited object by appending the relative path found in the <ObjectName>
tag to the junction path for the volume.
/data/data1/dir1/[Link]
There are certain considerations you must keep in mind when auditing symlinks and hard
links.
An audit record contains information about the object being audited including the path to the audited object,
which is identified in the ObjectName tag. You should be aware of how paths for symlinks and hard links are
recorded in the ObjectName tag.
Symlinks
A symlink is a file with a separate inode that contains a pointer to the location of a destination object, known as
the target. When accessing an object through a symlink, ONTAP automatically interprets the symlink and
follows the actual canonical protocol agnostic path to the target object in the volume.
In the following example output, there are two symlinks, both pointing to a file named [Link]. One of the
symlinks is a relative symlink and one is an absolute symlink. If either of the symlinks are audited, the
ObjectName tag in the audit event contains the path to the file [Link]:
[root@host1 audit]# ls -l
total 0
lrwxrwxrwx 1 user1 group1 37 Apr 2 10:09 softlink_fullpath.txt ->
/data/audit/[Link]
lrwxrwxrwx 1 user1 group1 10 Apr 2 09:54 [Link] -> [Link]
-rwxrwxrwx 1 user1 group1 16 Apr 2 10:05 [Link]
94
Hard links
A hard link is a directory entry that associates a name with an existing file on a file system. The hard link points
to the inode location of the original file. Similar to how ONTAP interprets symlinks, ONTAP interprets the hard
link and follows the actual canonical path to the target object in the volume. When access to a hard link object
is audited, the audit event records this absolute canonical path in the ObjectName tag rather than the hard
link path.
There are certain considerations you must keep in mind when auditing files with NTFS
alternate data streams.
The location of an object being audited is recorded in an event record using two tags, the ObjectName tag
(the path) and the HandleID tag (the handle). To properly identify which stream requests are being logged,
you must be aware of what ONTAP records in these fields for NTFS alternate data streams:
Example
The following example illustrates how to identify EVTX ID: 4663 events for alternate data streams using the
HandleID tag. Even though the ObjectName tag (path) recorded in the read audit event is to the base file
path, the HandleID tag can be used to identify the event as an audit record for the alternate data stream.
Stream file names take the form base_file_name:stream_name. In this example, the dir1 directory
contains a base file with an alternate data stream having the following paths:
/dir1/[Link]
/dir1/[Link]:stream1
The output in the following event example is truncated as indicated; the output does not display
all of the available output tags for the events.
For an EVTX ID 4656 (open audit event), the audit record output for the alternate data stream records the
alternate data stream name in the ObjectName tag:
95
- <Event>
- <System>
<Provider Name="Netapp-Security-Auditing" />
<EventID>4656</EventID>
<EventName>Open Object</EventName>
[...]
</System>
- <EventData>
[...]
**<Data Name="ObjectType"\>Stream</Data\>
<Data Name="HandleID"\>00000000000401;00;000001e4;00176767</Data\>
<Data Name="ObjectName"\>\(data1\);/dir1/[Link]:stream1</Data\>
**
[...]
</EventData>
</Event>
- <Event>
For an EVTX ID 4663 (read audit event), the audit record output for the same alternate data stream records the
base file name in the ObjectName tag; however, the handle in the HandleID tag is the alternative data
stream’s handle and can be used to correlate this event with the alternative data stream:
- <Event>
- <System>
<Provider Name="Netapp-Security-Auditing" />
<EventID>4663</EventID>
<EventName>Read Object</EventName>
[...]
</System>
- <EventData>
[...]
**<Data Name="ObjectType"\>Stream</Data\>
<Data Name="HandleID"\>00000000000401;00;000001e4;00176767</Data\>
<Data Name="ObjectName"\>\(data1\);/dir1/[Link]</Data\> **
[...]
</EventData>
</Event>
- <Event>
Learn about ONTAP auditing of NFS file and directory access events
ONTAP can audit certain NFS file and directory access events. Knowing what access
events can be audited is helpful when interpreting results from the converted audit event
logs.
96
You can audit the following NFS file and directory access events:
• READ
• OPEN
• CLOSE
• READDIR
• WRITE
• SETATTR
• CREATE
• LINK
• OPENATTR
• REMOVE
• GETATTR
• VERIFY
• NVERIFY
• RENAME
To reliably audit NFS RENAME events, you should set audit ACEs on directories instead of files because file
permissions are not checked for a RENAME operation if the directory permissions are sufficient.
Additionally, there are certain parameters that you can use to specify which methods are used when rotating
the consolidated and converted audit logs. You can specify one of the three following methods when you
configure auditing:
At least one of the methods for log rotation should always be set.
There are two required parameters that you must specify when you create the auditing configuration. There are
also three optional parameters that you can specify:
97
Type of information Option Required Include Your
values
SVM name -vserver vserver_name Yes Yes
98
Categories of events to audit -events {file-ops|cifs- No
logon-logoff|cap-
Specifies the categories of events to audit. staging|file-share
The following event categories can be |audit-policy-change
audited: |user-account|security-
group|authorization-
• File access events (both SMB and
policy-change|async-
NFSv4)
delete}
• SMB logon and logoff events
• Central access policy staging events
• Async-delete
• File share category events
• Audit policy change events
• Local user account management
events
• Security group management events
• Authorization policy change events
99
Log files rotation limit -rotate-limit integer No
If you do not want to use the default log size, you can configure the -rotate-size parameter to specify a
custom log size:
If you choose to rotate the audit logs based on a schedule, you can schedule log rotation by using the time-
based rotation parameters in any combination.
For example, if you specify only the -rotate-schedule-minute parameter, the audit log files are
rotated based on the minutes specified on all days of the week, during all hours on all months of the year.
• If you specify only one or two time-based rotation parameters (for example, -rotate-schedule-month
and -rotate-schedule-minutes), the log files are rotated based on the minute values that you
specified on all days of the week, during all hours, but only during the specified months.
For example, you can specify that the audit log is to be rotated during the months January, March, and
100
August on all Mondays, Wednesdays, and Saturdays at 10:30 a.m.
• If you specify values for both -rotate-schedule-dayofweek and -rotate-schedule-day, they are
considered independently.
• If you want to rotate the audit logs based on a schedule alone, use the following command to unset the
-rotate-size parameter: vserver audit modify -vserver vs0 -destination / -rotate
-size -
You can use the following list of available auditing parameters to determine what values to use for configuring a
schedule for audit event log rotations:
101
Log rotation schedule: Hour -rotate-schedule-hour No
chron_hour
Determines the hourly schedule for
rotating the audit log.
You can choose to rotate the log files based on log size and a schedule by setting both the -rotate-size
parameter and the time-based rotation parameters in any combination. For example: if -rotate-size is set
to 10 MB and -rotate-schedule-minute is set to 15, the log files rotate when the log file size reaches 10
MB or on the 15th minute of every hour (whichever event occurs first).
Creating a file and directory auditing configuration on your storage virtual machine (SVM)
includes understanding the available configuration options, planning the configuration,
and then configuring and enabling the configuration. You can then display information
about the auditing configuration to confirm that the resultant configuration is the desired
configuration.
Before you can begin auditing file and directory events, you must create an auditing configuration on the
storage virtual machine (SVM).
102
• Although you can enable central access policy staging in the auditing configuration without
enabling Dynamic Access Control on the SMB server, central access policy staging events
are generated only if Dynamic Access Control is enabled.
Dynamic Access Control is enabled through a SMB server option. It is not enabled by
default.
• If the arguments of a field in a command is invalid, for example, invalid entries for fields,
duplicate entries, and non-existent entries, then the command fails before the audit phase.
Step
1. Using the information in the planning worksheet, create the auditing configuration to rotate audit logs based
on log size or a schedule:
Examples
The following example creates an auditing configuration that audits file operations and SMB logon and logoff
events (the default) using size-based rotation. The log format is EVTX (the default). The logs are stored in the
/audit_log directory. The log file size limit is 200 MB. The logs are rotated when they reach 200 MB in size:
103
The following example creates an auditing configuration that audits file operations and SMB logon and logoff
events (the default) using size-based rotation. The log format is EVTX (the default). The logs are stored in the
/cifs_event_logs directory. The log file size limit is 100 MB (the default), and the log rotation limit is 5:
The following example creates an auditing configuration that audits file operations, CIFS logon and logoff
events, and central access policy staging events using time-based rotation. The log format is EVTX (the
default). The audit logs are rotated monthly, at 12:30 p.m. on all days of the week. The log rotation limit is 5:
Related information
• Enable auditing on the SVM
• Verify the auditing configuration
After you finish setting up the auditing configuration, you must enable auditing on the
storage virtual machine (SVM).
Before you begin
The SVM audit configuration must already exist.
Steps
1. Enable auditing on the SVM:
Related information
• Create the auditing configuration
• Verify the auditing configuration
104
Verify the ONTAP auditing configuration
After completing the auditing configuration, you should verify that auditing is configured
properly and is enabled.
Steps
1. Verify the auditing configuration:
The following command displays in list form all auditing configuration information for storage virtual
machine (SVM) vs1:
Vserver: vs1
Auditing state: true
Log Destination Path: /audit_log
Categories of Events to Audit: file-ops
Log Format: evtx
Log File Size Limit: 200MB
Log Rotation Schedule: Month: -
Log Rotation Schedule: Day of Week: -
Log Rotation Schedule: Day: -
Log Rotation Schedule: Hour: -
Log Rotation Schedule: Minute: -
Rotation Schedules: -
Log Files Rotation Limit: 0
Related information
• Create the auditing configuration
• Enable auditing on the SVM
Enable auditing configuration on ONTAP SVMs and configure file and folder audit policies
Implementing auditing on file and folder access events is a two-step process. First, you
must create and enable an auditing configuration on storage virtual machines (SVMs).
Second, you must configure audit policies on the files and folders that you want to
monitor. You can configure audit policies to monitor both successful and failed access
attempts.
You can configure both SMB and NFS audit policies. SMB and NFS audit policies have different configuration
requirements and audit capabilities.
If the appropriate audit policies are configured, ONTAP monitors SMB and NFS access events as specified in
105
the audit policies only if the SMB or NFS servers are running.
Before you can audit file and directory operations, you must configure audit policies on
the files and directories for which you want to collect audit information. This is in addition
to setting up and enabling the audit configuration. You can configure NTFS audit policies
by using the Windows Security tab or by using the ONTAP CLI.
You can configure NTFS audit policies on files and directories by using the Windows Security tab in the
Windows Properties window. This is the same method used when configuring audit policies on data residing on
a Windows client, which enables you to use the same GUI interface that you are accustomed to using.
To set NTFS audit policies using the Windows Security tab, complete the following steps on a Windows host:
Steps
1. From the Tools menu in Windows Explorer, select Map network drive.
2. Complete the Map Network Drive box:
You can specify the IP address of the data interface for the SMB server instead of the SMB server
name.
If your SMB server name is “SMB_SERVER” and your share is named “share1”, you should enter
\\SMB_SERVER\share1.
c. Click Finish.
The drive you selected is mounted and ready with the Windows Explorer window displaying files and
folders contained within the share.
3. Select the file or directory for which you want to enable auditing access.
4. Right-click the file or directory, and then select Properties.
5. Select the Security tab.
6. Click Advanced.
106
7. Select the Auditing tab.
8. Perform the desired actions:
Remove auditing from a user or a. In the Enter the object name to select box, select the user or
group group that you want to remove.
b. Click Remove.
c. Click OK.
d. Skip the rest of this procedure.
Change auditing for a user or group a. In the Enter the object name to select box, select the user or
group that you want to change.
b. Click Edit.
c. Click OK.
If you are setting up auditing on a user or group or changing auditing on an existing user or group, the
Auditing Entry for <object> box opens.
9. In the Apply to box, select how you want to apply this auditing entry.
Because auditing takes SVM resources, select only the minimal level that provides the
auditing events that meet your security requirements.
10. In the Access box, select what you want audited and whether you want to audit successful events, failure
events, or both.
107
Select only the actions that you need to monitor to meet your security requirements. For more information
about these auditable events, see your Windows documentation. You can audit the following events:
◦ Full control
◦ Traverse folder / execute file
◦ List folder / read data
◦ Read attributes
◦ Read extended attributes
◦ Create files / write data
◦ Create folders / append data
◦ Write attributes
◦ Write extended attributes
◦ Delete subfolders and files
◦ Delete
◦ Read permissions
◦ Change permissions
◦ Take ownership
11. If you do not want the auditing setting to propagate to subsequent files and folders of the original container,
select the Apply these auditing entries to objects and/or containers within this container only box.
12. Click Apply.
13. After you finish adding, removing, or editing auditing entries, click OK.
14. In the Auditing box, select the inheritance settings for this folder.
Select only the minimal level that provides the auditing events that meet your security requirements. You
can choose one of the following:
◦ Select the Include inheritable auditing entries from this object’s parent box.
◦ Select the Replace all existing inheritable auditing entries on all descendants with inheritable auditing
entries from this object box.
◦ Select both boxes.
◦ Select neither box.
If you are setting SACLs on a single file, the Replace all existing inheritable auditing entries on all
descendants with inheritable auditing entries from this object box is not present in the Auditing box.
15. Click OK.
You can configure audit policies on files and folders using the ONTAP CLI. This enables you to configure NTFS
audit policies without needing to connect to the data using an SMB share on a Windows client.
108
You can configure NTFS audit policies by using the vserver security file-directory command
family.
You can only configure NTFS SACLs using the CLI. Configuring NFSv4 SACLs is not supported with this
ONTAP command family.
Learn more about using these commands to configure and add NTFS SACLs to files and folders in the ONTAP
command reference.
Configure ONTAP auditing for UNIX security style files and directories
You configure auditing for UNIX security style files and directories by adding audit ACEs
to NFSv4.x ACLs. This allows you to monitor certain NFS file and directory access events
for security purposes.
About this task
For NFSv4.x, both discretionary and system ACEs are stored in the same ACL. They are not stored in
separate DACLs and SACLs. Therefore, you must exercise caution when adding audit ACEs to an existing
ACL to avoid overwriting and losing an existing ACL. The order in which you add the audit ACEs to an existing
ACL does not matter.
Steps
1. Retrieve the existing ACL for the file or directory by using the nfs4_getfacl or equivalent command.
View ONTAP audit policy information by accessing the Windows Security tab
You can display information about audit policies that have been applied to files and
directories by using the Security tab in the Windows Properties window. This is the same
method used for data residing on a Windows server, which enables customers to use the
same GUI interface that they are accustomed to using.
About this task
Displaying information about audit policies applied to files and directories enables you to verify that you have
the appropriate system access control lists (SACLs) set on specified files and folders.
To display information about SACLs that have been applied to NTFS files and folders, complete the following
steps on a Windows host.
Steps
1. From the Tools menu in Windows Explorer, select Map network drive.
2. Complete the Map Network Drive dialog box:
109
containing the share that holds both the data you would like to audit and the name of the share.
If your SMB server name is “SMB_SERVER” and your share is named “share1”, you should enter
\\SMB_SERVER\share1.
You can specify the IP address of the data interface for the SMB server instead of the
SMB server name.
c. Click Finish.
The drive you selected is mounted and ready with the Windows Explorer window displaying files and
folders contained within the share.
3. Select the file or directory for which you display auditing information.
4. Right-click on the file or directory, and select Properties.
5. Select the Security tab.
6. Click Advanced.
7. Select the Auditing tab.
8. Click Continue.
The Auditing box opens. The Auditing entries box displays a summary of users and groups that have
SACLs applied to them.
9. In the Auditing entries box select the user or group whose SACL entries you want displayed.
10. Click Edit.
11. In the Access box, view the current SACLs that are applied to the selected object.
12. Click Cancel to close the Auditing entry for <object> box.
13. Click Cancel to close the Auditing box.
You can display information about NTFS audit policies on FlexVol volumes, including
what the security styles and effective security styles are, what permissions are applied,
and information about system access control lists. You can use the information to validate
your security configuration or to troubleshoot auditing issues.
About this task
Displaying information about audit policies applied to files and directories enables you to verify that you have
the appropriate system access control lists (SACLs) set on specified files and folders.
You must provide the name of the storage virtual machine (SVM) and the path to the files or folders whose
audit information you want to display. You can display the output in summary form or as a detailed list.
• NTFS security-style volumes and qtrees use only NTFS system access control lists (SACLs) for audit
policies.
• Files and folders in a mixed security-style volume with NTFS effective security can have NTFS audit
policies applied to them.
110
Mixed security-style volumes and qtrees can contain some files and directories that use UNIX file
permissions, either mode bits or NFSv4 ACLs, and some files and directories that use NTFS file
permissions.
• The top level of a mixed security-style volume can have either UNIX or NTFS effective security and might
or might not contain NTFS SACLs.
• Because Storage-Level Access Guard security can be configured on a mixed security-style volume or
qtree even if the effective security style of the volume root or qtree is UNIX, the output for a volume or qtree
path where Storage-Level Access Guard is configured might display both regular file and folder NFSv4
SACLs and Storage-Level Access Guard NTFS SACLs.
• If the path that is entered in the command is to data with NTFS effective security, the output also displays
information about Dynamic Access Control ACEs if Dynamic Access Control is configured for the given file
or directory path.
• When displaying security information about files and folders with NTFS effective security, UNIX-related
output fields contain display-only UNIX file permission information.
NTFS security-style files and folders use only NTFS file permissions and Windows users and groups when
determining file access rights.
• ACL output is displayed only for files and folders with NTFS or NFSv4 security.
This field is empty for files and folders using UNIX security that have only mode bit permissions applied (no
NFSv4 ACLs).
• The owner and group output fields in the ACL output apply only in the case of NTFS security descriptors.
Step
1. Display file and directory audit policy settings with the desired level of detail:
Examples
The following example displays the audit policy information for the path /corp in SVM vs1. The path has
NTFS effective security. The NTFS security descriptor contains both a SUCCESS and a SUCCESS/FAIL SACL
entry.
111
cluster::> vserver security file-directory show -vserver vs1 -path /corp
Vserver: vs1
File Path: /corp
File Inode Number: 357
Security Style: ntfs
Effective Style: ntfs
DOS Attributes: 10
DOS Attributes in Text: ----D---
Expanded Dos Attributes: -
Unix User Id: 0
Unix Group Id: 0
Unix Mode Bits: 777
Unix Mode Bits in Text: rwxrwxrwx
ACLs: NTFS Security Descriptor
Control:0x8014
Owner:DOMAIN\Administrator
Group:BUILTIN\Administrators
SACL - ACEs
ALL-DOMAIN\Administrator-0x100081-OI|CI|SA|FA
SUCCESSFUL-DOMAIN\user1-0x100116-OI|CI|SA
DACL - ACEs
ALLOW-BUILTIN\Administrators-0x1f01ff-OI|CI
ALLOW-BUILTIN\Users-0x1f01ff-OI|CI
ALLOW-CREATOR OWNER-0x1f01ff-OI|CI
ALLOW-NT AUTHORITY\SYSTEM-0x1f01ff-OI|CI
The following example displays the audit policy information for the path /datavol1 in SVM vs1. The path
contains both regular file and folder SACLs and Storage-Level Access Guard SACLs.
112
cluster::> vserver security file-directory show -vserver vs1 -path
/datavol1
Vserver: vs1
File Path: /datavol1
File Inode Number: 77
Security Style: ntfs
Effective Style: ntfs
DOS Attributes: 10
DOS Attributes in Text: ----D---
Expanded Dos Attributes: -
Unix User Id: 0
Unix Group Id: 0
Unix Mode Bits: 777
Unix Mode Bits in Text: rwxrwxrwx
ACLs: NTFS Security Descriptor
Control:0xaa14
Owner:BUILTIN\Administrators
Group:BUILTIN\Administrators
SACL - ACEs
AUDIT-EXAMPLE\marketing-0xf01ff-OI|CI|FA
DACL - ACEs
ALLOW-EXAMPLE\Domain Admins-0x1f01ff-OI|CI
ALLOW-EXAMPLE\marketing-0x1200a9-OI|CI
Use wildcard characters to display information about ONTAP file security and audit policies
You can use the wildcard character (*) to display information about file security and audit
policies of all files and directories under a given path or a root volume.
113
The wildcard character (*) can be used as the last subcomponent of a given directory path below which you
want to display information of all files and directories.
If you want to display information of a particular file or directory named as "*", then you need to provide the
complete path inside double quotes (" ").
Example
The following command with the wildcard character displays the information about all files and directories
below the path /1/ of SVM vs1:
Vserver: vs1
File Path: /1/1
Security Style: mixed
Effective Style: ntfs
DOS Attributes: 10
DOS Attributes in Text: ----D---
Expanded Dos Attributes: -
Unix User Id: 0
Unix Group Id: 0
Unix Mode Bits: 777
Unix Mode Bits in Text: rwxrwxrwx
ACLs: NTFS Security Descriptor
Control:0x8514
Owner:BUILTIN\Administrators
Group:BUILTIN\Administrators
DACL - ACEs
ALLOW-Everyone-0x1f01ff-OI|CI (Inherited)
Vserver: vs1
File Path: /1/1/abc
Security Style: mixed
Effective Style: ntfs
DOS Attributes: 10
DOS Attributes in Text: ----D---
Expanded Dos Attributes: -
Unix User Id: 0
Unix Group Id: 0
Unix Mode Bits: 777
Unix Mode Bits in Text: rwxrwxrwx
ACLs: NTFS Security Descriptor
Control:0x8404
Owner:BUILTIN\Administrators
Group:BUILTIN\Administrators
DACL - ACEs
ALLOW-Everyone-0x1f01ff-OI|CI (Inherited)
114
The following command displays the information of a file named as "*" under the path /vol1/a of SVM vs1.
The path is enclosed within double quotes (" ").
Vserver: vs1
File Path: "/vol1/a/*"
Security Style: mixed
Effective Style: unix
DOS Attributes: 10
DOS Attributes in Text: ----D---
Expanded Dos Attributes: -
Unix User Id: 1002
Unix Group Id: 65533
Unix Mode Bits: 755
Unix Mode Bits in Text: rwxr-xr-x
ACLs: NFSV4 Security Descriptor
Control:0x8014
SACL - ACEs
AUDIT-EVERYONE@-0x1f01bf-FI|DI|SA|FA
DACL - ACEs
ALLOW-EVERYONE@-0x1f00a9-FI|DI
ALLOW-OWNER@-0x1f01ff-FI|DI
ALLOW-GROUP@-0x1200a9-IG
ONTAP can audit certain CLI change events, including certain SMB-share events, certain
audit policy events, certain local security group events, local user group events, and
authorization policy events. Understanding which change events can be audited is helpful
when interpreting results from the event logs.
You can manage storage virtual machine (SVM) auditing CLI change events by manually rotating the audit
logs, enabling or disabling auditing, displaying information about auditing change events, modifying auditing
change events, and deleting auditing change events.
As an administrator, if you execute any command to change configuration related to the SMB-share, local user-
group, local security-group, authorization-policy, and audit-policy events, a record generates and the
corresponding event gets audited:
115
Mhost Auditing policy-change [4719] Audit configuration vserver audit
changed disable|enable|modi
fy
116
Auditing
117
Rename and-groups local-
user rename
Related information
118
• vserver
When a file-share event is configured for a storage virtual machine (SVM) and an audit is
enabled, audit events are generated. The file-share events are generated when the SMB
network share is modified using vserver cifs share related commands.
The file-share events with the event-ids 5142, 5143, and 5144 are generated when a SMB network share is
added, modified, or deleted for the SVM. The SMB network share configuration is modified using the cifs
share access control create|modify|delete commands.
The following example displays a file-share event with the ID 5143 is generated, when a share object called
'audit_dest' is created:
When an audit-policy-change event is configured for a storage virtual machine (SVM) and
an audit is enabled, audit events are generated. The audit-policy-change events are
generated when an audit policy is modified using vserver audit related commands.
The audit-policy-change event with the event-id 4719 is generated whenever an audit policy is disabled,
enabled, or modified and helps to identify when a user attempts to disable auditing to cover the tracks. It is
configured by default and requires diagnostic privilege to disable.
The following example displays an audit-policy change event with the ID 4719 generated, when an audit is
disabled:
119
netapp-clus1::*> vserver audit disable -vserver vserver_1
- System
- Provider
[ Name] NetApp-Security-Auditing
[ Guid] {3CB2A168-FE19-4A4E-BDAD-DCF422F13473}
EventID 4719
EventName Audit Disabled
...
...
SubjectUserName admin
SubjectUserSid 65533-1001
SubjectDomainName ~
SubjectIP console
SubjectPort
When a user-account event is configured for a storage virtual machine (SVM) and an
audit is enabled, audit events are generated.
The user-account events with event-ids 4720, 4722, 4724, 4725, 4726, 4738, and 4781 are generated when a
local SMB or NFS user is created or deleted from the system, local user account is enabled, disabled or
modified, and local SMB user password is reset or changed. The user-account events are generated when a
user account is modified using vserver cifs users-and-groups <local user> and vserver
services name-service <unix user> commands.
The following example displays a user account event with the ID 4720 generated, when a local SMB user is
created:
120
netapp-clus1::*> vserver cifs users-and-groups local-user create -user
-name testuser -is-account-disabled false -vserver vserver_1
Enter the password:
Confirm the password:
- System
- Provider
[ Name] NetApp-Security-Auditing
[ Guid] {3CB2A168-FE19-4A4E-BDAD-DCF422F13473}
EventID 4720
EventName Local Cifs User Created
...
...
TargetUserName testuser
TargetDomainName NETAPP-CLUS1
TargetSid S-1-5-21-2447422786-1297661003-4197201688-1003
TargetType CIFS
DisplayName testuser
PasswordLastSet 1472662216
AccountExpires NO
PrimaryGroupId 513
UserAccountControl %%0200
SidHistory ~
PrivilegeList ~
The following example displays a user account event with the ID 4781 generated, when the local SMB user
created in the preceding example is renamed:
121
netapp-clus1::*> vserver cifs users-and-groups local-user rename -user
-name testuser -new-user-name testuser1
- System
- Provider
[ Name] NetApp-Security-Auditing
[ Guid] {3CB2A168-FE19-4A4E-BDAD-DCF422F13473}
EventID 4781
EventName Local Cifs User Renamed
...
...
OldTargetUserName testuser
NewTargetUserName testuser1
TargetDomainName NETAPP-CLUS1
TargetSid S-1-5-21-2447422786-1297661003-4197201688-1000
TargetType CIFS
SidHistory ~
PrivilegeList ~
When a security-group event is configured for a storage virtual machine (SVM) and an
audit is enabled, audit events are generated.
The security-group events with event-ids 4731, 4732, 4733, 4734, and 4735 are generated when a local SMB
or NFS group is created or deleted from the system, and local user is added or removed from the group. The
security-group-events are generated when a user account is modified using vserver cifs users-and-
groups <local-group> and vserver services name-service <unix-group> commands.
The following example displays a security group event with the ID 4731 generated, when a local UNIX security
group is created:
122
netapp-clus1::*> vserver services name-service unix-group create -name
testunixgroup -id 20
- System
- Provider
[ Name] NetApp-Security-Auditing
[ Guid] {3CB2A168-FE19-4A4E-BDAD-DCF422F13473}
EventID 4731
EventName Local Unix Security Group Created
...
...
SubjectUserName admin
SubjectUserSid 65533-1001
SubjectDomainName ~
SubjectIP console
SubjectPort
TargetUserName testunixgroup
TargetDomainName
TargetGid 20
TargetType NFS
PrivilegeList ~
GidHistory ~
The following example displays an authorization policy event with the ID 4704 generated, when the
authorization rights for a SMB user group are assigned:
123
netapp-clus1::*> vserver cifs users-and-groups privilege add-privilege
-user-or-group-name testcifslocalgroup -privileges *
- System
- Provider
[ Name] NetApp-Security-Auditing
[ Guid] {3CB2A168-FE19-4A4E-BDAD-DCF422F13473}
EventID 4704
EventName User Right Assigned
...
...
TargetUserOrGroupName testcifslocalgroup
TargetUserOrGroupDomainName NETAPP-CLUS1
TargetUserOrGroupSid S-1-5-21-2447422786-1297661003-4197201688-1004;
PrivilegeList
SeTcbPrivilege;SeBackupPrivilege;SeRestorePrivilege;SeTakeOwnershipPrivile
ge;SeSecurityPrivilege;SeChangeNotifyPrivilege;
TargetType CIFS
Manually rotate the audit event logs to view specific ONTAP SVM event logs
Before you can view the audit event logs, the logs must be converted to user-readable
formats. If you want to view the event logs for a specific storage virtual machine (SVM)
before ONTAP automatically rotates the log, you can manually rotate the audit event logs
on an SVM.
Step
1. Rotate the audit event logs by using the vserver audit rotate-log command.
The audit event log is saved in the SVM audit event log directory with the format specified by the auditing
configuration (XML or EVTX), and can be viewed by using the appropriate application.
You can enable or disable auditing on storage virtual machines (SVMs). You might want
to temporarily stop file and directory auditing by disabling auditing. You can enable
auditing at any time (if an auditing configuration exists).
Before you begin
Before you can enable auditing on the SVM, the SVM’s auditing configuration must already exist.
124
Disabling auditing does not delete the auditing configuration.
Steps
1. Perform the appropriate command:
Examples
The following example enables auditing for SVM vs1:
Vserver: vs1
Auditing state: true
Log Destination Path: /audit_log
Categories of Events to Audit: file-ops, cifs-logon-logoff
Log Format: evtx
Log File Size Limit: 100MB
Log Rotation Schedule: Month: -
Log Rotation Schedule: Day of Week: -
Log Rotation Schedule: Day: -
Log Rotation Schedule: Hour: -
Log Rotation Schedule: Minute: -
Rotation Schedules: -
Log Files Rotation Limit: 10
125
cluster1::> vserver audit disable -vserver vs1
Vserver: vs1
Auditing state: false
Log Destination Path: /audit_log
Categories of Events to Audit: file-ops, cifs-logon-logoff
Log Format: evtx
Log File Size Limit: 100MB
Log Rotation Schedule: Month: -
Log Rotation Schedule: Day of Week: -
Log Rotation Schedule: Day: -
Log Rotation Schedule: Hour: -
Log Rotation Schedule: Minute: -
Rotation Schedules: -
Log Files Rotation Limit: 10
You can display information about auditing configurations. The information can help you
determine whether the configuration is what you want in place for each SVM. The
displayed information also enables you to verify whether an auditing configuration is
enabled.
About this task
You can display detailed information about auditing configurations on all SVMs or you can customize what
information is displayed in the output by specifying optional parameters. If you do not specify any of the
optional parameters, the following is displayed:
If the audit state is true, auditing is enabled. If the audit state is false, auditing is disabled.
Step
1. Display information about the auditing configuration by using the vserver audit show command.
Learn more about vserver audit show in the ONTAP command reference.
Examples
The following example displays a summary of the auditing configuration for all SVMs:
126
cluster1::> vserver audit show
The following example displays, in list form, all auditing configuration information for all SVMs:
Vserver: vs1
Auditing state: true
Log Destination Path: /audit_log
Categories of Events to Audit: file-ops
Log Format: evtx
Log File Size Limit: 100MB
Log Rotation Schedule: Month: -
Log Rotation Schedule: Day of Week: -
Log Rotation Schedule: Day: -
Log Rotation Schedule: Hour: -
Log Rotation Schedule: Minute: -
Rotation Schedules: -
Log Files Rotation Limit: 0
If you want to change an auditing setting, you can modify the current configuration at any
time, including modifying the log path destination and log format, modifying the categories
of events to audit, how to automatically save log files, and specify the maximum number
of log files to save.
Modify the category of events to audit vserver audit modify with the -events
parameter
127
Modify the log format vserver audit modify with the -format
parameter
Enabling automatic saves based on internal log file vserver audit modify with the -rotate-size
size parameter
Enabling automatic saves based on a time interval vserver audit modify with the -rotate
-schedule-month, -rotate-schedule
-dayofweek, -rotate-schedule-day, -rotate
-schedule-hour, and -rotate-schedule
-minute parameters
Specifying the maximum number of saved log files vserver audit modify with the -rotate-limit
parameter
In you no longer want to audit file and directory events on the storage virtual machine
(SVM) and do not want to maintain an auditing configuration on the SVM, you can delete
the auditing configuration.
Steps
1. Disable the auditing configuration:
If you plan to revert the cluster, you should be aware of the revert process ONTAP follows
when there are auditing-enabled storage virtual machines (SVMs) in the cluster. You must
take certain actions before reverting.
Reverting to a version of ONTAP that does not support the auditing of SMB logon and logoff events and central access
policy staging events
Support for auditing of SMB logon and logoff events and for central access policy staging events starts with
clustered Data ONTAP 8.3. If you are reverting to a version of ONTAP that does not support these event types
and you have auditing configurations that monitor these event types, you must change the auditing
configuration for those audit-enabled SVMs before reverting. You must modify the configuration so that only
file-op events are audited.
128
Troubleshoot ONTAP auditing and staging volume space issues
Issues can arise when there is insufficient space on either the staging volumes or on the
volume containing the audit event logs. If there is insufficient space, new audit records
cannot be created, which prevents clients from accessing data, and access requests fail.
You should know how to troubleshoot and resolve these volume space issues.
If volumes containing event log files run out of space, auditing cannot convert log records into log files. This
results in client access failures. You must know how to troubleshoot space issues related to event log volumes.
• Storage virtual machine (SVM) and cluster administrators can determine whether there is insufficient
volume space by displaying information about volume and aggregate usage and configuration.
• If there is insufficient space in the volumes containing event logs, SVM and cluster administrators can
resolve the space issues by either removing some of the event log files or by increasing the size of the
volume.
If the aggregate that contains the event log volume is full, then the size of the aggregate
must be increased before you can increase the size of the volume. Only a cluster
administrator can increase the size of an aggregate.
• The destination path for the event log files can be changed to a directory on another volume by modifying
the auditing configuration.
If any of the volumes containing staging files for your storage virtual machine (SVM) runs out of space, auditing
cannot write log records into staging files. This results in client access failures. To troubleshoot this issue, you
need to determine whether any of the staging volumes used in the SVM are full by displaying information about
volume usage.
If the volume containing the consolidated event log files has sufficient space but there are still client access
failures due to insufficient space, then the staging volumes might be out of space. The SVM administrator must
contact you to determine whether the staging volumes that contain staging files for the SVM have insufficient
space. The auditing subsystem generates an EMS event if auditing events cannot be generated due to
insufficient space in a staging volume. The following message is displayed: No space left on device.
Only you can view information about staging volumes; SVM administrators cannot.
All staging volume names begin with MDV_aud_ followed by the UUID of the aggregate containing that staging
129
volume. The following example shows four system volumes on the admin SVM, which were automatically
created when a file services auditing configuration was created for a data SVM in the cluster:
If there is insufficient space in the staging volumes, you can resolve the space issues by increasing the size of
the volume.
If the aggregate that contains the staging volume is full, then the size of the aggregate must be
increased before you can increase the size of the volume. Only you can increase the size of an
aggregate; SVM administrators cannot.
If one or more aggregates have an available space of less than 2GB (in ONTAP 9.14.1 and earlier) or 5GB
(beginning with ONTAP 9.15.1), the SVM audit creation fails. When the SVM audit creation fails, the staging
volumes that were created are deleted.
FPolicy is a file access notification framework that is used to monitor and manage file
access events on storage virtual machines (SVMs) through partner solutions. Partner
solutions help you address various use cases such as data governance and compliance,
ransomware protection, and data mobility.
Partner solutions include both NetApp-supported third-party solutions and NetApp products Workload Security
and Cloud Data Sense.
130
There are two parts to an FPolicy solution. The ONTAP FPolicy framework manages activities on the cluster
and sends notifications to Partner Application (aka External FPolicy Servers). External FPolicy servers process
notifications sent by ONTAP FPolicy to fulfill customer use cases.
The ONTAP framework creates and maintains the FPolicy configuration, monitors file events, and sends
notifications to external FPolicy servers. ONTAP FPolicy provides the infrastructure that allows communication
between external FPolicy servers and storage virtual machine (SVM) nodes.
The FPolicy framework connects to external FPolicy servers and sends notifications for certain file system
events to the FPolicy servers when these events occur as a result of client access. The external FPolicy
servers process the notifications and send responses back to the node. What happens as a result of the
notification processing depends on the application and whether the communication between the node and the
external servers is asynchronous or synchronous.
FPolicy sends notifications to external FPolicy servers via the FPolicy interface. The
notifications are sent either in synchronous or asynchronous mode. The notification mode
determines what ONTAP does after sending notifications to FPolicy servers.
• Asynchronous notifications
With asynchronous notifications, the node does not wait for a response from the FPolicy server, which
enhances overall throughput of the system. This type of notification is suitable for applications where the
FPolicy server does not require that any action be taken as a result of notification evaluation. For example,
asynchronous notifications are used when the storage virtual machine (SVM) administrator wants to
monitor and audit file access activity.
If an FPolicy server operating in asynchronous mode experiences a network outage, FPolicy notifications
generated during the outage are stored on the storage node. When the FPolicy server comes back online,
it is alerted of the stored notifications and can fetch them from the storage node. The length of time the
notifications can be stored during an outage is configurable up to 10 minutes.
Beginning with ONTAP 9.14.1, FPolicy allows you to set up a persistent store to capture file access events
for asynchronous non-mandatory policies in the SVM. Persistent stores can help decouple client I/O
processing from FPolicy notification processing to reduce client latency. Synchronous (mandatory or non-
mandatory) and asynchronous mandatory configurations are not supported.
• Synchronous notifications
When configured to run in synchronous mode, the FPolicy server must acknowledge every notification
before the client operation is allowed to continue. This type of notification is used when an action is
required based on the results of notification evaluation. For example, synchronous notifications are used
when the SVM administrator wants to either allow or deny requests based on criteria specified on the
external FPolicy server.
There are many possible uses for FPolicy applications, both asynchronous and synchronous.
Asynchronous applications are ones where the external FPolicy server does not alter access to files or
directories or modify data on the storage virtual machine (SVM). For example:
131
• Storage resource management
Synchronous applications are ones where data access is altered or data is modified by the external FPolicy
server. For example:
• Quota management
• File access blocking
• File archiving and hierarchical storage management
• Encryption and decryption services
• Compression and decompression services
Persistent stores can help decouple client I/O processing from FPolicy notification
processing to reduce client latency. Beginning with ONTAP 9.14.1, you can set up an
FPolicy persistent store to capture file access events for asynchronous non-mandatory
policies in the SVM. Synchronous (either mandatory or non-mandatory) and
asynchronous mandatory configurations are not supported.
This feature is only available in FPolicy external mode. The partner application you use needs to support this
feature. You should work with your partner to ensure this FPolicy configuration is supported.
Beginning with ONTAP 9.15.1, FPolicy persistent store configuration is simplified. The persistent-store
create command automates volume creation for the SVM and configures the volume with persistent store
best practices.
For more information on persistent store best practices, refer to Requirements, considerations, and best
practices for configuring FPolicy.
There are two basic FPolicy configuration types. One configuration uses external FPolicy
servers to process and act upon notifications. The other configuration does not use
external FPolicy servers; instead, it uses the ONTAP internal, native FPolicy server for
simple file blocking based on extensions.
• External FPolicy server configuration
The notification is sent to the FPolicy server, which screens the request and applies rules to determine
whether the node should allow the requested file operation. For synchronous policies, the FPolicy server
then sends a response to the node to either allow or block the requested file operation.
The notification is screened internally. The request is allowed or denied based on file extension settings
configured in the FPolicy scope.
Note: File extension requests that are denied are not logged.
132
When to create a native FPolicy configuration
Native FPolicy configurations use the ONTAP internal FPolicy engine to monitor and block file operations
based on the file’s extension. This solution does not require external FPolicy servers (FPolicy servers). Using a
native file blocking configuration is appropriate when this simple solution is all that is needed.
Native file blocking enables you to monitor any file operations that match configured operation and filtering
events and then deny access to files with particular extensions. This is the default configuration.
This configuration provides a means to block file access based only on the file’s extension. For example, to
block files that contain mp3 extensions, you configure a policy to provide notifications for certain operations
with target file extensions of mp3. The policy is configured to deny mp3 file requests for operations that
generate notifications.
• The same set of filters and protocols that are supported by FPolicy server-based file screening are also
supported for native file blocking.
• Native file blocking and FPolicy server-based file screening applications can be configured at the same
time.
To do so, you can configure two separate FPolicy policies for the storage virtual machine (SVM), with one
configured for native file blocking and one configured for FPolicy server-based file screening.
• The native file blocking feature only screens files based on the extensions and not on the content of the
file.
• In the case of symbolic links, native file blocking uses the file extension of the root file.
FPolicy configurations that use external FPolicy servers to process and manage notifications provide robust
solutions for use cases where more than simple file blocking based on file extension is needed.
You should create a configuration that uses external FPolicy servers when you want to do such things as
monitor and record file access events, provide quota services, perform file blocking based on criteria other than
simple file extensions, provide data migration services using hierarchical storage management applications, or
provide a fine-grained set of policies that monitor only a subset of data in the storage virtual machine (SVM).
The cluster, the contained storage virtual machines (SVMs), and data LIFs all play a role
in an FPolicy implementation.
• cluster
The cluster contains the FPolicy management framework and maintains and manages information about all
FPolicy configurations in the cluster.
• SVM
An FPolicy configuration is defined at the SVM level. The scope of the configuration is the SVM, and it only
operates on SVM resources. One SVM configuration cannot monitor and send notifications for file access
133
requests that are made for data residing on another SVM.
FPolicy configurations can be defined on the admin SVM. After configurations are defined on the admin
SVM, they can be seen and used in all SVMs.
• data LIFs
Connections to the FPolicy servers are made through data LIFs belonging to the SVM with the FPolicy
configuration. The data LIFs used for these connections can fail over in the same manner as data LIFs
used for normal client access.
After FPolicy is configured and enabled on the storage virtual machine (SVM), FPolicy
runs on every node on which the SVM participates. FPolicy is responsible for establishing
and maintaining connections with external FPolicy servers (FPolicy servers), for
notification processing, and for managing notification messages to and from FPolicy
servers.
Additionally, as part of connection management, FPolicy has the following responsibilities:
• Ensures that file notification flows through the correct LIF to the FPolicy server.
• Ensures that when multiple FPolicy servers are associated with a policy, load balancing is done when
sending notifications to the FPolicy servers.
• Attempts to reestablish the connection when a connection to an FPolicy server is broken.
• Sends the notifications to FPolicy servers over an authenticated session.
• Manages the passthrough-read data connection established by the FPolicy server for servicing client
requests when passthrough-read is enabled.
FPolicy initiates a control channel connection to an external FPolicy server from the data LIFs of each node
participating on a storage virtual machine (SVM). FPolicy uses control channels for transmitting file
notifications; therefore, an FPolicy server might see multiple control channel connections based on SVM
topology.
How privileged data access channels are used for synchronous communication
With synchronous use cases, the FPolicy server accesses data residing on the storage virtual machine (SVM)
through a privileged data access path. Access through the privileged path exposes the complete file system to
the FPolicy server. It can access data files to collect information, to scan files, read files, or write into files.
Because the external FPolicy server can access the entire file system from the root of the SVM through the
privileged data channel, the privileged data channel connection must be secure.
How FPolicy connection credentials are used with privileged data access channels
The FPolicy server makes privileged data access connections to cluster nodes by using a specific Windows
user credential that is saved with the FPolicy configuration. SMB is the only supported protocol for making a
privileged data access channel connection.
If the FPolicy server requires privileged data access, the following conditions must be met:
134
• A SMB license must be enabled on the cluster.
• The FPolicy server must run under the credentials configured in the FPolicy configuration.
When making a data channel connection, FPolicy uses the credential for the specified Windows user name.
Data access is made over the admin share ONTAP_ADMIN$.
What granting super user credentials for privileged data access means
ONTAP uses the combination of the IP address and the user credential configured in the FPolicy configuration
to grant super user credentials to the FPolicy server.
Super user status grants the following privileges when the FPolicy server accesses data:
ONTAP allows read, write, or modify access to any file regardless of existing locks. If the FPolicy server
takes byte range locks on the file, it results in immediate removal of existing locks on the file.
There might be multiple FPolicy policies assigned to your storage virtual machine (SVM); each with a different
priority. To create an appropriate FPolicy configuration on the SVM, it is important to understand how FPolicy
manages policy processing.
Each file access request is initially evaluated to determine which policies are monitoring this event. If it is a
monitored event, information about the monitored event along with interested policies is passed to FPolicy
where it is evaluated. Each policy is evaluated in order of the assigned priority.
• When you want a policy to always be evaluated before other policies, configure that policy with a higher
priority.
• If the success of requested file access operation on a monitored event is a prerequisite for a file request
that is evaluated against another policy, give the policy that controls the success or failure of the first file
operation a higher priority.
For example, if one policy manages FPolicy file archiving and restore functionality and a second policy
manages file access operations on the online file, the policy that manages file restoration must have a
higher priority so that the file is restored before the operation managed by the second policy can be
allowed.
• If you want all policies that might apply to a file access operation to be evaluated, give synchronous
policies a lower priority.
You can reorder policy priorities for existing policies by modifying the policy sequence number. However, to
have FPolicy evaluate policies based on the modified priority order, you must disable and reenable the policy
135
with the modified sequence number.
To properly plan your FPolicy configuration, you should understand what the node-to-
external FPolicy server communication process is.
Every node that participates on each storage virtual machine (SVM) initiates a connection to an external
FPolicy server (FPolicy server) using TCP/IP. Connections to the FPolicy servers are set up using node data
LIFs; therefore, a participating node can set up a connection only if the node has an operational data LIF for
the SVM.
Each FPolicy process on participating nodes attempts to establish a connection with the FPolicy server when
the policy is enabled. It uses the IP address and port of the FPolicy external engine specified in the policy
configuration.
The connection establishes a control channel from each of the nodes participating on each SVM to the FPolicy
server through the data LIF. In addition, if IPv4 and IPv6 data LIF addresses are present on the same
participating node, FPolicy attempts to establish connections for both IPv4 and IPv6. Therefore, in a scenario
where the SVM extends over multiple nodes or if both IPv4 and IPv6 addresses are present, the FPolicy server
must be ready for multiple control channel setup requests from the cluster after the FPolicy policy is enabled
on the SVM.
For example, if a cluster has three nodes—Node1, Node2, and Node3—and SVM data LIFs are spread across
only Node2 and Node3, control channels are initiated only from Node2 and Node3, irrespective of the
distribution of data volumes. Say that Node2 has two data LIFs—LIF1 and LIF2—that belong to the SVM and
that the initial connection is from LIF1. If LIF1 fails, FPolicy attempts to establish a control channel from LIF2.
136
How FPolicy manages external communication during LIF migration or failover
Data LIFs can be migrated to data ports in the same node or to data ports on a remote node.
When a data LIF fails over or is migrated, a new control channel connection is made to the FPolicy server.
FPolicy can then retry SMB and NFS client requests that timed out, with the result that new notifications are
sent to the external FPolicy servers. The node rejects FPolicy server responses to original, timed-out SMB and
NFS requests.
If the cluster node that hosts the data ports used for FPolicy communication fails, ONTAP breaks the
connection between the FPolicy server and the node.
The impact of cluster failover to the FPolicy server can be mitigated by configuring the failover-policy to migrate
the data port used in FPolicy communication to another active node. After the migration is complete, a new
connection is established using the new data port.
If the failover-policy is not configured to migrate the data port, the FPolicy server must wait for the failed node
to come up. After the node is up, a new connection is initiated from that node with a new Session ID.
The FPolicy server detects broken connections with the keep-alive protocol message. The
timeout for purging the session ID is determined when configuring FPolicy. The default keep-
alive timeout is two minutes.
ONTAP provides a unified storage virtual machine (SVM) namespace. Volumes across
the cluster are joined together by junctions to provide a single, logical file system. The
FPolicy server is aware of the namespace topology and provides FPolicy services across
the namespace.
The namespace is specific to and contained within the SVM; therefore, you can see the namespace only from
the SVM context. Namespaces have the following characteristics:
• A single namespace exists in each SVM, with the root of the namespace being the root volume,
represented in the namespace as slash (/).
• All other volumes have junction points below the root (/).
• Volume junctions are transparent to clients.
• A single NFS export can provide access to the complete namespace; otherwise, export policies can export
specific volumes.
• SMB shares can be created on the volume or on qtrees within the volume, or on any directory within the
namespace.
• The namespace architecture is flexible.
137
How ONTAP FPolicy passthrough-read enhances usability for hierarchical storage management
Typically when a read request for an offline file is received, the requested content must be recalled back to
primary storage and then accessed through primary storage. The need to recall data back to primary storage
has several undesirable effects. Among the undesirable effects is the increased latency to client requests
caused by the need to recall the content before responding to the request and the increased space
consumption needed for recalled files on the primary storage.
FPolicy passthrough-read allows the HSM server (the FPolicy server) to provide read access to migrated,
offline files without having to recall the file from the secondary storage system to the primary storage system.
Instead of recalling the files back to primary storage, read requests can be serviced directly from secondary
storage.
• Read requests can be serviced even if the primary storage does not have sufficient space to recall
requested data back to primary storage.
• Better capacity and performance management when a surge of data recall might occur, such as if a script
or a backup solution needs to access many offline files.
• Read requests for offline files in snapshots can be serviced.
Because snapshots are read-only, the FPolicy server cannot restore the original file if the stub file is
located in a snapshot. Using passthrough-read eliminates this problem.
• Policies can be set up that control when read requests are serviced through access to the file on
secondary storage and when the offline file should be recalled to primary storage.
For example, a policy can be created on the HSM server that specifies the number of times the offline file
can be accessed in a specified period of time before the file is migrated back to primary storage. This type
of policy avoids recalling files that are rarely accessed.
You should understand how read requests are managed when FPolicy passthrough-read is enabled so that
you can optimally configure connectivity between the storage virtual machine (SVM) and the FPolicy servers.
When FPolicy passthrough-read is enabled and the SVM receives a request for an offline file, FPolicy sends a
notification to the FPolicy server (HSM server) through the standard connection channel.
After receiving the notification, the FPolicy server reads the data from the file path sent in the notification and
sends the requested data to the SVM through the passthrough-read privileged data connection that is
138
established between the SVM and the FPolicy server.
After the data is sent, the FPolicy server then responds to the read request as an ALLOW or DENY. Based on
whether the read request is allowed or denied, ONTAP either sends the requested information or sends an
error message to the client.
Before you create and configure FPolicy configurations on your storage virtual machines
(SVMs), you need to be aware of certain requirements, considerations, and best
practices for configuring FPolicy.
FPolicy features are configured either through the command line interface (CLI) or through REST APIs.
Before you configure and enable FPolicy on your storage virtual machine (SVM), you need to be aware of
certain requirements.
• All nodes in the cluster must be running a version of ONTAP that supports FPolicy.
• If you are not using the ONTAP native FPolicy engine, you must have external FPolicy servers (FPolicy
servers) installed.
• The FPolicy servers must be installed on a server accessible from the data LIFs of the SVM where FPolicy
policies are enabled.
Beginning with ONTAP 9.8, ONTAP provides a client LIF service for outbound FPolicy
connections with the addition of the data-fpolicy-client service. Learn more about
LIFs and service policies.
• The IP address of the FPolicy server must be configured as a primary or secondary server in the FPolicy
policy external engine configuration.
• If the FPolicy servers access data over a privileged data channel, the following additional requirements
must be met:
◦ SMB must be licensed on the cluster.
◦ A user credential must be configured for accessing files over the privileged data channel.
◦ The FPolicy server must run under the credentials configured in the FPolicy configuration.
◦ All data LIFs used to communicate with the FPolicy servers must be configured to have cifs as one of
the allowed protocols.
When setting up FPolicy on storage virtual machines (SVMs), get familiar with the general configuration best
practices and recommendations to ensure that your FPolicy configuration provides robust monitoring
139
performance and results that meet your requirements.
For specific guidelines related to performance, sizing, and configuration, work with your FPolicy partner
application.
Persistent stores
Beginning with ONTAP 9.14.1, FPolicy allows you to set up a persistent store to capture file access events for
asynchronous non-mandatory policies in the SVM. Persistent stores can help decouple client I/O processing
from FPolicy notification processing to reduce client latency. Synchronous (either mandatory or non-
mandatory) and asynchronous mandatory configurations are not supported.
• Before using the persistent store functionality, ensure your partner applications support this configuration.
• You need one persistent store for each SVM where FPolicy is enabled.
◦ Only one persistent store can be set up on each SVM. This single persistent store needs to be used for
all FPolicy configurations on that SVM, even if the policies are from different partners.
• ONTAP 9.15.1 or later:
◦ The persistent store, its volume, and its volume configuration is handled automatically when you create
the persistent store.
• ONTAP 9.14.1:
◦ The persistent store, its volume, and its volume configuration is handled manually.
• Create the persistent store volume on the node with LIFs that expect maximum traffic to be monitored by
FPolicy.
◦ ONTAP 9.15.1 or later: Volumes are automatically created and configured during persistent store
creation.
◦ ONTAP 9.14.1: Cluster administrators need to create and configure a volume for the persistent store on
each SVM where FPolicy is enabled.
• If the notifications accumulated in the persistent store exceed the size of the volume provisioned, FPolicy
starts dropping the incoming notification with appropriate EMS messages.
◦ ONTAP 9.15.1 or later: In addition to the size parameter, the autosize-mode parameter can help
the volume grow or shrink in response to the amount of used space.
◦ ONTAP 9.14.1: The size parameter is configured during volume creation to provide a maximum limit.
• Set the snapshot policy to none for the persistent store volume instead of default. This is to ensure that
there is no accidental restore of the snapshot leading to loss of current events and to prevent possible
duplicate event processing.
◦ ONTAP 9.15.1 or later: The snapshot-policy parameter is automatically configured to none during
persistent store creation.
◦ ONTAP 9.14.1: The snapshot-policy parameter is configured to none during volume creation.
• Make the persistent store volume inaccessible for external user protocol access (CIFS/NFS) to avoid
accidental corruption or deletion of the persisted event records.
◦ ONTAP 9.15.1 or later: ONTAP automatically blocks the volume from external user protocol access
(CIFS/NFS) during persistent store creation.
◦ ONTAP 9.14.1: After enabling FPolicy, unmount the volume in ONTAP to remove the junction path.
This makes it inaccessible for external user protocol access (CIFS/NFS).
For more information, refer to FPolicy persistent stores and Create persistent stores.
140
Persistent store failover and giveback
The persistent store remains as it was when the last event was received, when there is an unexpected reboot,
or FPolicy is disabled and enabled again. After a takeover operation, new events are stored and processed by
the partner node. After a giveback operation, the persistent store resumes processing any unprocessed events
that might remain from when the node takeover occurred. Live events would be given priority over
unprocessed events.
If the persistent store volume moves from one node to another in the same SVM, the notifications that are yet
to be processed also move to the new node. You need to re-run the fpolicy persistent-store create
command on either node after the volume is moved to ensure the pending notifications are delivered to the
external server.
Learn more about fpolicy persistent-store create in the ONTAP command reference.
Policy configuration
Configuration of the FPolicy external engine, events, and scope for SVMs can improve your overall experience
and security.
Monitoring file operations influences your overall experience. For example, filtering unwanted file
operations on the storage side improves your experience. NetApp recommends setting up the following
configuration:
◦ Monitoring the minimum types of file operations and enabling the maximum number of filters without
breaking the use case.
◦ Using filters for getattr, read, write, open, and close operations. The SMB and NFS home directory
environments have a high percentage of these operations.
• Configuration of FPolicy scope for SVMs:
Restrict the scope of the policies to the relevant storage objects, such as shares, volumes, and exports,
instead of enabling them across the entire SVM. NetApp recommends checking the directory extensions. If
the is-file-extension-check-on-directories-enabled parameter is set to true, directory
objects are subjected to the same extension checks as regular files.
Network configuration
Network connectivity between the FPolicy server and the controller should be of low latency. NetApp
recommends separating FPolicy traffic from client traffic by using a private network.
In addition, you should place external FPolicy servers (FPolicy servers) in close proximity to the cluster with
high-bandwidth connectivity to provide minimal latency and high-bandwidth connectivity.
141
For a scenario in which the LIF for FPolicy traffic is configured on a different port to the LIF for
client traffic, the FPolicy LIF might fail over to the other node because of a port failure. As a
result, the FPolicy server becomes unreachable from the node which causes the FPolicy
notifications for file operations on the node to fail. To avoid this issue, verify that the FPolicy
server can be reached through at least one LIF on the node to process FPolicy requests for the
file operations performed on that node.
Hardware configuration
You can have the FPolicy server on either a physical server or a virtual server. If the FPolicy server is in a
virtual environment, you should allocate dedicated resources (CPU, network, and memory) to the virtual server.
The cluster node-to-FPolicy server ratio should be optimized to ensure that FPolicy servers are not overloaded,
which can introduce latencies when the SVM responds to client requests. The optimal ratio depends on the
partner application for which the FPolicy server is being used. NetApp recommends working with partners to
determine the appropriate value.
Multiple-policy configuration
The FPolicy policy for native blocking has the highest priority, irrespective of the sequence number, and
decision-altering policies have a higher priority than others. Policy priority depends on the use case. NetApp
recommends working with partners to determine the appropriate priority.
Size considerations
FPolicy performs in-line monitoring of SMB and NFS operations, sends notifications to the external server, and
waits for a response, depending on the mode of external engine communication (synchronous or
asynchronous). This process affects the performance of SMB and NFS access and CPU resources.
To mitigate any issues, NetApp recommends working with partners to assess and size the environment before
enabling FPolicy. Performance is affected by several factors including the number of users, workload
characteristics, such as operations per user and data size, network latency, and failure or server slowness.
Monitor performance
FPolicy is a notification-based system. Notifications are sent to an external server for processing and to
generate a response back to ONTAP. This round-trip process increases latency for client access.
Monitoring the performance counters on the FPolicy server and in ONTAP gives you the capability to identify
bottlenecks in the solution and to tune the parameters as necessary for an optimal solution. For example, an
increase in FPolicy latency has a cascading effect on SMB and NFS access latency. Therefore, you should
monitor both workload (SMB and NFS) and FPolicy latency. In addition, you can use quality-of-service policies
in ONTAP to set up a workload for each volume or SVM that is enabled for FPolicy.
NetApp recommends running the statistics show –object workload command to display workload
statistics. In addition, you should monitor the following parameters:
You can monitor the performance of FPolicy subsystems by using the following FPolicy counters.
142
You must be in diagnostic mode to collect statistics related to FPolicy.
Steps
1. Collect FPolicy counters:
a. statistics start -object fpolicy -instance <instance_name> -sample-id <ID>
b. statistics start -object fpolicy_policy -instance <instance_name> -sample-id
<ID>
2. Display FPolicy counters:
The fpolicy and fpolicy_server counters give you information on several performance
parameters which are described in the following table.
Counters Description
fpolicy counters
aborted_requests Number of screen requests for which processing is aborted on the SVM
event_count List of events resulting in notification
max_request_latency Maximum screen requests latency
outstanding_requests Total number of screen requests in process
processed_requests Total number of screen requests that went through fpolicy processing on the
SVM
request_latency_hist Histogram of latency for screen requests
requests_dispatched_ra Number of screen requests dispatched per second
te
requests_received_rate Number of screen requests received per second
fpolicy_server counters
Learn more about statistics start and statistics show in the ONTAP command reference.
143
Manage FPolicy workflow and dependency on other technologies
NetApp recommends disabling an FPolicy policy before making any configuration changes. For example, if you
want to add or modify an IP address in the external engine configured for the enabled policy, first disable the
policy.
If you configure FPolicy to monitor NetApp FlexCache volumes, NetApp recommends that you not configure
FPolicy to monitor read and getattr file operations. Monitoring these operations in ONTAP requires the retrieval
of inode-to-path (I2P) data. Because I2P data cannot be retrieved from FlexCache volumes, it must be
retrieved from the origin volume. Therefore, monitoring these operations eliminates the performance benefits
that FlexCache can provide.
When both FPolicy and an off-box antivirus solution are deployed, the antivirus solution receives notifications
first. FPolicy processing starts only after antivirus scanning is complete. It is important that you size antivirus
solutions correctly because a slow antivirus scanner can affect overall performance.
There are certain upgrade and revert considerations that you must know about before upgrading to an ONTAP
release that supports passthrough-read or before reverting to a release that does not support passthrough-
read.
Upgrading
After all nodes are upgraded to a version of ONTAP that supports FPolicy passthrough-read, the cluster is
capable of using the passthrough-read functionality; however, passthrough-read is disabled by default on
existing FPolicy configurations. To use passthrough-read on existing FPolicy configurations, you must disable
the FPolicy policy and modify the configuration, and then reenable the configuration.
Reverting
Before reverting to a version of ONTAP that does not support FPolicy passthrough-read, you must meet the
following conditions:
• Disable all the policies using passthrough-read, and then modify the affected configurations so that they do
not use passthrough-read.
• Disable FPolicy functionality on the cluster by disabling every FPolicy policy on the cluster.
Before reverting to a version of ONTAP that does not support persistent stores, ensure that none of the FPolicy
policies have a configured persistent store. If a persistent store is configured, the revert will fail.
Related information
• statistics show
• statistics start
Before FPolicy can monitor file access, an FPolicy configuration must be created and
enabled on the storage virtual machine (SVM) for which FPolicy services are required.
The steps for setting up and enabling an FPolicy configuration on the SVM are as follows:
144
The FPolicy external engine identifies the external FPolicy servers (FPolicy servers) that are associated
with a specific FPolicy configuration. If the internal “native” FPolicy engine is used to create a native file-
blocking configuration, you do not need to create an FPolicy external engine.
Beginning with ONTAP 9.15.1, you can use the protobuf engine format. When set to protobuf, the
notification messages are encoded in binary form using Google Protobuf. Before setting the engine format
to protobuf, ensure that the FPolicy server also supports protobuf deserialization. For more
information, see Plan the FPolicy external engine configuration
An FPolicy event describes what the FPolicy policy should monitor. Events consist of the protocols and file
operations to monitor, and can contain a list of filters. Events use filters to narrow the list of monitored
events for which the FPolicy external engine must send notifications. Events also specify whether the
policy monitors volume operations.
Beginning with ONTAP 9.14.1, FPolicy allows you to set up persistent stores to capture file access events
for asynchronous non-mandatory policies in the SVM. Synchronous (either mandatory or non-mandatory)
and asynchronous mandatory configurations are not supported.
Persistent stores can help decouple client I/O processing from FPolicy notification processing to reduce
client latency.
Beginning with ONTAP 9.15.1, FPolicy persistent store configuration is simplified. The persistent-
store-create command automates volume creation for the SVM and configures the volume for the
persistent store.
The FPolicy policy is responsible for associating, with the appropriate scope, the set of events that need to
be monitored and for which of the monitored events notifications must be sent to the designated FPolicy
server (or to the native engine if no FPolicy servers are configured). The policy also defines whether the
FPolicy server is allowed privileged access to the data for which it receives notifications. An FPolicy server
needs privileged access if the server needs to access the data. Typical use cases where privileged access
is needed include file blocking, quota management, and hierarchical storage management. The policy is
where you specify whether the configuration for this policy uses an FPolicy server or the internal “native”
FPolicy server.
A policy specifies whether screening is mandatory. If screening is mandatory and all FPolicy servers are
down or no response is received from the FPolicy servers within a defined timeout period, then file access
is denied.
A policy’s boundaries are the SVM. A policy cannot apply to more than one SVM. However, a specific SVM
can have multiple FPolicy policies, each with the same or different combination of scope, event, and
external server configurations.
The FPolicy scope determines which volumes, shares, or export-policies the policy acts on or excludes
from monitoring. A scope also determines which file extensions should be included or excluded from
FPolicy monitoring.
145
6. Enable the FPolicy policy.
When the policy is enabled, the control channels and, optionally, the privileged data channels are
connected. The FPolicy process on the nodes on which the SVM participates begin monitoring file and
folder access and, for events that match configured criteria, sends notifications to the FPolicy servers (or to
the native engine if no FPolicy servers are configured).
If the policy uses native file blocking, an external engine is not configured or associated with the
policy.
Before you configure the FPolicy external engine, you must understand what it means to
create an external engine and which configuration parameters are available. This
information helps you to determine which values to set for each parameter.
The external engine configuration defines the information that FPolicy needs to make and manage connections
to the external FPolicy servers, including the following:
• SVM name
• Engine name
• The IP addresses of the primary and secondary FPolicy servers and the TCP port number to use when
making the connection to the FPolicy servers
• Whether the engine type is asynchronous or synchronous
• Whether the engine format is xml or protobuf
Beginning with ONTAP 9.15.1, you can use the protobuf engine format. When set to protobuf, the
notification messages are encoded in binary form using Google Protobuf. Before setting the engine format
to protobuf, ensure that the FPolicy server also supports protobuf deserialization.
Since the protobuf format is supported beginning with ONTAP 9.15.1, you must consider external engine
format before reverting to an earlier release of ONTAP. If you revert to an earlier release than ONTAP
9.15.1, work with your FPolicy partner to either:
If you choose to configure mutual SSL authentication, then you must also configure parameters that
provide SSL certificate information.
This includes parameters that define such things as timeout values, retry values, keep-alive values,
maximum request values, sent and receive buffer size values, and session timeout values.
146
The vserver fpolicy policy external-engine create command is used to create an FPolicy
external engine.
You can use the following table of basic FPolicy configuration parameters to help you plan your configuration:
Specifies the SVM name that you want to associate with this external
engine.
Specifies the name to assign to the external engine configuration. You must
specify the external engine name later when you create the FPolicy policy.
This associates the external engine with the policy.
• a through z
• A through Z
• 0 through 9
• “_”, “-”, and “.”
147
Primary FPolicy servers -primary-servers
IP_address,…
Specifies the primary FPolicy servers to which the node sends notifications
for a given FPolicy policy. The value is specified as a comma-delimited list
of IP addresses.
Secondary servers are used only when none of the primary servers are
reachable. Connections to secondary servers are established when the
policy is enabled, but notifications are sent to secondary servers only if none
of the primary servers are reachable. If you configure multiple secondary
servers, notifications are sent to the FPolicy servers in a round-robin
fashion.
148
External engine format - extern-engine-format
{protobuf or xml}
Specify whether the external engine format is xml or protobuf.
Beginning with ONTAP 9.15.1, you can use the protobuf engine format.
When set to protobuf, the notification messages are encoded in binary form
using Google Protobuf. Before setting the engine format to protobuf, ensure
that the FPolicy server also supports protobuf deserialization.
Specifies the serial number of the certificate used for authentication if SSL
authentication between the SVM and the FPolicy server is configured.
149
Certificate authority -certificate-ca text
You can use the following table of advanced FPolicy configuration parameters as you plan whether to
customize your configuration with advanced parameters. You use these parameters to modify communication
behavior between the cluster nodes and the FPolicy servers:
If the timeout interval passes, the node sends a cancel request to the
FPolicy server. The node then sends the notification to an alternate FPolicy
server. This timeout helps in handling an FPolicy server that is not
responding, which can improve SMB/NFS client response. Also, canceling
requests after a timeout period can help in releasing system resources
because the notification request is moved from a down/bad FPolicy server
to an alternate FPolicy server.
The range for this value is 0 through 100. If the value is set to 0, the option
is disabled and cancel request messages are not sent to the FPolicy server.
The default is 20s.
The range for this value is 0 through 50. If the value is set to 0, the option is
disabled and status request messages are not sent to the FPolicy server.
The default is 10s.
150
Maximum outstanding requests on the FPolicy server -max-server-reqs integer
The range for this value is 1 through 10000. The default is 500.
The connection is terminated after the timeout period only if the FPolicy
server’s queue contains the maximum allowed requests and no response is
received within the timeout period. The maximum allowed number of
requests is either 50 (the default) or the number specified by the max-
server-reqs- parameter.
The range for this value is 1 through 100. The default is 60s.
The range for this value is 10 through 600. If the value is set to 0, the option
is disabled and keep-alive messages are prevented from being sent to the
FPolicy servers. The default is 120s.
The default value is set to 256 kilobytes (Kb). When the value is set to 0, the
size of the receive buffer is set to a value defined by the system.
For example, if the default receive buffer size of the socket is 65536 bytes,
by setting the tunable value to 0, the socket buffer size is set to 65536
bytes. You can use any non-default value to set the size (in bytes) of the
receive buffer.
151
Send buffer size -send-buffer-size
integer
Specifies the send buffer size of the connected socket for the FPolicy
server.
The default value is set to 256 kilobytes (Kb). When the value is set to 0, the
size of the send buffer is set to a value defined by the system.
For example, if the default send buffer size of the socket is set to 65536
bytes, by setting the tunable value to 0, the socket buffer size is set to
65536 bytes. You can use any non-default value to set the size (in bytes) of
the send buffer.
If the connection between the storage controller and the FPolicy server is
terminated and reconnection is made within the -session-timeout
interval, the old session ID is sent to FPolicy server so that it can send
responses for old notifications.
Additional information about configuring ONTAP FPolicy external engines to use SSL authenticated connections
You need to know some additional information if you want to configure the FPolicy
external engine to use SSL when connecting to FPolicy servers.
If you choose to configure the FPolicy external engine for SSL server authentication, before creating the
external engine, you must install the public certificate of the certificate authority (CA) that signed the FPolicy
server certificate.
Mutual authentication
If you configure FPolicy external engines to use SSL mutual authentication when connecting storage virtual
machine (SVM) data LIFs to external FPolicy servers, before creating the external engine, you must install the
public certificate of the CA that signed the FPolicy server certificate along with the public certificate and key file
for authentication of the SVM. Do not delete this certificate while any FPolicy policies are using the installed
certificate.
If the certificate is deleted while FPolicy is using it for mutual authentication when connecting to an external
FPolicy server, you cannot reenable a disabled FPolicy policy that uses that certificate. The FPolicy policy
cannot be reenabled in this situation even if a new certificate with the same settings is created and installed on
the SVM.
If the certificate has been deleted, you need to install a new certificate, create new FPolicy external engines
that use the new certificate, and associate the new external engines with the FPolicy policy that you want to
reenable by modifying the FPolicy policy.
152
Install certificates for SSL
The public certificate of the CA that is used to sign the FPolicy server certificate is installed by using the
security certificate install command with the -type parameter set to client-ca. The private key
and public certificate required for authentication of the SVM is installed by using the security
certificate install command with the -type parameter set to server.
Related information
• security certificate install
ONTAP FPolicy certificates do not replicate in SVM disaster recovery relationships with a non-ID-preserve configuration
Security certificates used for SSL authentication when making connections to FPolicy
servers do not replicate to SVM disaster recovery destinations with non-ID-preserve
configurations. Although the FPolicy external-engine configuration on the SVM is
replicated, security certificates are not replicated. You must manually install the security
certificates on the destination.
When you set up the SVM disaster recovery relationship, the value you select for the -identity-preserve
option of the snapmirror create command determines the configuration details that are replicated in the
destination SVM.
If you set the -identity-preserve option to true (ID-preserve), all of the FPolicy configuration details are
replicated, including the security certificate information. You must install the security certificates on the
destination only if you set the option to false (non-ID-preserve).
Related information
• snapmirror create
Restrictions for cluster-scoped ONTAP FPolicy external engines with MetroCluster and SVM disaster recovery
configurations
You can create a cluster-scoped FPolicy external engine by assigning the cluster storage
virtual machine (SVM) to the external engine. However, when creating a cluster-scoped
external engine in a MetroCluster or SVM disaster recovery configuration, there are
certain restrictions when choosing the authentication method that the SVM uses for
external communication with the FPolicy server.
There are three authentication options that you can choose when creating external FPolicy servers: no
authentication, SSL server authentication, and SSL mutual authentication. Although there are no restrictions
when choosing the authentication option if the external FPolicy server is assigned to a data SVM, there are
restrictions when creating a cluster-scoped FPolicy external engine:
Configuration Permitted?
MetroCluster or SVM disaster recovery and a cluster-scoped FPolicy external Yes
engine with no authentication (SSL is not configured)
153
• If a cluster-scoped FPolicy external engine with SSL authentication exists and you want to create a
MetroCluster or SVM disaster recovery configuration, you must modify this external engine to use no
authentication or remove the external engine before you can create the MetroCluster or SVM disaster
recovery configuration.
• If the MetroCluster or SVM disaster recovery configuration already exists, ONTAP prevents you from
creating a cluster-scoped FPolicy external engine with SSL authentication.
You can use this worksheet to record the values that you need during the FPolicy external
engine configuration process. If a parameter value is required, you need to determine
what value to use for those parameters before you configure the external engine.
You should record whether you want to include each parameter setting in the external engine configuration and
then record the value for the parameters that you want to include.
Certificate authority No
To configure an external engine with advanced parameters, you must enter the configuration command while in
advanced privilege mode.
154
Timeout for canceling a request No
Before you configure FPolicy events, you must understand what it means to create an
FPolicy event. You must determine which protocols you want the event to monitor, which
events to monitor, and which event filters to use. This information helps you plan the
values that you want to set.
Creating the FPolicy event means defining information that the FPolicy process needs to determine what file
access operations to monitor and for which of the monitored events notifications should be sent to the external
FPolicy server. The FPolicy event configuration defines the following configuration information:
FPolicy can monitor SMB, NFSv3, NFSv4, and, beginning with ONTAP 9.15.1, NFSv4.1 file access
operations.
155
Not all file operations are valid for each protocol.
Only certain combinations of file operations and filters are valid. Each protocol has its own set of supported
combinations.
You can use the following list of available FPolicy event configuration parameters to help you plan your
configuration:
Specifies the SVM name that you want to associate with this FPolicy event.
156
Event name -event-name event_name
Specifies the name to assign to the FPolicy event. When you create the
FPolicy policy you associate the FPolicy event with the policy using the
event name.
• a through z
• A through Z
• 0 through 9
• " _ ", “-”, and “.”
Specifies which protocol to configure for the FPolicy event. The list for
-protocol can include one of the following values:
• cifs
• nfsv3
• nfsv4
157
File operations -file-operations
file_operations,…
Specifies the list of file operations for the FPolicy event.
The event checks the operations specified in this list from all client requests
using the protocol specified in the -protocol parameter. You can list one
or more file operations by using a comma-delimited list. The list for -file
-operations can include one or more of the following values:
158
Filters -filters filter, …
Specifies the list of filters for a given file operation for the specified protocol.
The values in the -filters parameter are used to filter client requests.
The list can include one or more of the following:
Setting this filter results in the FPolicy server receiving notification only
when offline files are accessed.
Setting this filter results in the FPolicy server receiving notification only
when an attempt is made to open a file with the intent to delete it. This is
used by file systems when the FILE_DELETE_ON_CLOSE flag is
specified.
Setting this filter results in the FPolicy server receiving notification only
when an attempt is made to open a file with the intent to write something
in it.
This filter is available only for the SMB and NFSv4 protocols.
•• setattr-with-allocation-size-change
Failures due to NFSv4 ACLs. option to filter the client
setattr requests for changing the allocation size of a file.
The list of supported file operation and filter combinations for FPolicy monitoring of SMB file access events is
provided in the following table:
160
rename monitor-ads, offline-bit
Beginning with ONTAP 9.13.1, users can receive notifications for failed file operations due to lack of
permissions. The list of supported access denied file operation and filter combinations for FPolicy monitoring of
SMB file access events is provided in the following table:
Supported file operation and filter combinations that ONTAP FPolicy monitors for NFSv3
When you configure your FPolicy event, you need to be aware that only certain
combinations of file operations and filters are supported for monitoring NFSv3 file access
operations.
The list of supported file operation and filter combinations for FPolicy monitoring of NFSv3 file access events is
provided in the following table:
delete offline-bit
link offline-bit
161
rename offline-bit
symlink offline-bit
Beginning with ONTAP 9.13.1, users can receive notifications for failed file operations due to lack of
permissions. The list of supported access denied file operation and filter combinations for FPolicy monitoring of
NFSv3 file access events is provided in the following table:
create NA
create_dir NA
delete NA
delete_dir NA
link NA
read NA
rename NA
rename_dir NA
setattr NA
write NA
Supported file operation and filter combinations that ONTAP FPolicy monitors for NFSv4
When you configure your FPolicy event, you need to be aware that only certain
combinations of file operations and filters are supported for monitoring NFSv4 file access
operations.
162
Beginning with ONTAP 9.15.1, FPolicy supports the NFSv4.1 protocol.
The list of supported file operation and filter combinations for FPolicy monitoring of NFSv4 or NFSv4.1 file
access events is provided in the following table:
create offline-bit
delete offline-bit
link offline-bit
rename offline-bit
symlink offline-bit
Beginning with ONTAP 9.13.1, users can receive notifications for failed file operations due to lack of
permissions. The list of supported access denied file operation and filter combinations for FPolicy monitoring of
NFSv4 or NFSv4.1 file access events is provided in the following table:
163
access NA
create NA
create_dir NA
delete NA
delete_dir NA
link NA
open NA
read NA
rename NA
rename_dir NA
setattr NA
write NA
You can use this worksheet to record the values that you need during the FPolicy event
configuration process. If a parameter value is required, you need to determine what value
to use for those parameters before you configure the FPolicy event.
You should record whether you want to include each parameter setting in the FPolicy event configuration and
then record the value for the parameters that you want to include.
Protocol No
File operations No
Filters No
164
Volume operation No
Before you configure the FPolicy policy, you must understand which parameters are
required when creating the policy as well as why you might want to configure certain
optional parameters. This information helps you to determine which values to set for each
parameter.
When creating an FPolicy policy you associate the policy with the following:
You can use the following list of available FPolicy policy required and optional parameters to help you plan your
configuration:
165
Policy name -policy-name Yes None
policy_name
Specifies the name of the FPolicy policy.
• a through z
• A through Z
• 0 through 9
• “_”, “-”, and “.”
166
External engine name -engine Yes (unless the native
engine_name policy uses the
Specifies the name of the external engine internal ONTAP
to associate with the FPolicy policy. native engine)
167
Allow privileged access -allow No (unless no
-privileged passthrough-read is
Specifies whether you want the FPolicy -access {yes|no} enabled)
server to have privileged access to the
monitored files and folders by using a
privileged data connection.
168
Allow passthrough-read -is-passthrough No false
-read-enabled
Specifies whether the FPolicy servers can {true|false}
provide passthrough-read services for files
that have been archived to secondary
storage (offline files) by the FPolicy
servers:
Requirement for ONTAP FPolicy scope configurations if the FPolicy policy uses the native engine
If you configure the FPolicy policy to use the native engine, there is a specific
requirement for how you define the FPolicy scope configured for the policy.
The FPolicy scope defines the boundaries on which the FPolicy policy applies, for example whether the
FPolicy applies to specified volumes or shares. There are a number of parameters that further restrict the
scope to which the FPolicy policy applies. One of these parameters, -is-file-extension-check-on
-directories-enabled, specifies whether to check file extensions on directories. The default value is
false, which means that file extensions on directories are not checked.
When an FPolicy policy that uses the native engine is enabled on a share or volume and the -is-file
-extension-check-on-directories-enabled parameter is set to false for the scope of the policy,
directory access is denied. With this configuration, because the file extensions are not checked for directories,
any directory operation is denied if it falls under the scope of the policy.
To ensure that directory access succeeds when using the native engine, you must set the -is-file
-extension-check-on-directories-enabled parameter to true when creating the scope.
With this parameter set to true, extension checks happen for directory operations and the decision whether to
169
allow or deny access is taken based on the extensions included or excluded in the FPolicy scope configuration.
You can use this worksheet to record the values that you need during the FPolicy policy
configuration process. You should record whether you want to include each parameter
setting in the FPolicy policy configuration and then record the value for the parameters
that you want to include.
Persistent store
Is passthrough-read enabled?
Before you configure the FPolicy scope, you must understand what it means to create a
scope. You must understand what the scope configuration contains. You also need to
understand what the scope rules of precedence are. This information can help you plan
the values that you want to set.
Creating the FPolicy scope means defining the boundaries on which the FPolicy policy applies. The storage
virtual machine (SVM) is the basic boundary. When you create a scope for an FPolicy policy, you must define
the FPolicy policy to which it will apply, and you must designate to which SVM you want to apply the scope.
There are a number of parameters that further restrict the scope within the specified SVM. You can restrict the
scope by specifying what to include in the scope or by specifying what to exclude from the scope. After you
apply a scope to an enabled policy, policy event checks get applied to the scope defined by this command.
Notifications are generated for file access events where matches are found in the “include” options.
170
Notifications are not generated for file access events where matches are found in the “exclude” options.
• SVM name
• Policy name
• The shares to include or exclude from what gets monitored
• The export policies to include or exclude from what gets monitored
• The volumes to include or exclude from what gets monitored
• The file extensions to include or exclude from what gets monitored
• Whether to do file extension checks on directory objects
There are special considerations for the scope for a cluster FPolicy policy. The cluster FPolicy
policy is a policy that the cluster administrator creates for the admin SVM. If the cluster
administrator also creates the scope for that cluster FPolicy policy, the SVM administrator
cannot create a scope for that same policy. However, if the cluster administrator does not create
a scope for the cluster FPolicy policy, then any SVM administrator can create the scope for that
cluster policy. If the SVM administrator creates a scope for that cluster FPolicy policy, the cluster
administrator cannot subsequently create a cluster scope for that same cluster policy. This is
because the cluster administrator cannot override the scope for the same cluster policy.
• When a share is included in the -shares-to-include parameter and the parent volume of the share is
included in the -volumes-to-exclude parameter, -volumes-to-exclude has precedence over
-shares-to-include.
• When an export policy is included in the -export-policies-to-include parameter and the parent
volume of the export policy is included in the -volumes-to-exclude parameter, -volumes-to
-exclude has precedence over -export-policies-to-include.
• An administrator can specify both -file-extensions-to-include and -file-extensions-to
-exclude lists.
You can use the following list of available FPolicy scope configuration parameters to help you plan your
configuration:
When configuring what shares, export policies, volumes, and file extensions to include or
exclude from the scope, the include and exclude parameters can include metacharacters such
as “?” and “*”. The use of regular expressions is not supported.
171
SVM -vserver vserver_name
Specifies the SVM name on which you want to create an FPolicy scope.
Specifies the name of the FPolicy policy to which you want to attach the
scope. The FPolicy policy must already exist.
172
File extension to exclude -file-extensions-to
-exclude
Specifies a comma-delimited list of file extensions to exclude from file_extensions, …
monitoring for the FPolicy policy to which the scope is applied.
If the FPolicy policy to which the scope is assigned is configured to use the
native engine, this parameter must be set to true.
You can use this worksheet to record the values that you need during the FPolicy scope
configuration process. If a parameter value is required, you need to determine what value
to use for those parameters before you configure the FPolicy scope.
You should record whether you want to include each parameter setting in the FPolicy scope configuration and
then record the value for the parameters that you want to include.
Shares to include No
Shares to exclude No
Volumes to include No
Volumes to exclude No
173
Is file extension check on directory No
enabled?
You must create an external engine to start creating an FPolicy configuration. The
external engine defines how FPolicy makes and manages connections to external
FPolicy servers. If your configuration uses the internal ONTAP engine (the native external
engine) for simple file blocking, you do not need to configure a separate FPolicy external
engine and do not need to perform this step.
Before you begin
The external engine worksheet should be completed.
Steps
1. Create the FPolicy external engine by using the vserver fpolicy policy external-engine
create command.
The following command creates an external engine on storage virtual machine (SVM) [Link].
No authentication is required for external communications with the FPolicy server.
2. Verify the FPolicy external engine configuration by using the vserver fpolicy policy external-
engine show command.
The following command display information about all external engines configured on SVM
[Link]:
174
Primary Secondary
External
Vserver Engine Servers Servers Port Engine
Type
--------------- ----------- -------------- ----------- ------
-----------
[Link] engine1 [Link], - 6789
synchronous
[Link]
The following command displays detailed information about the external engine named “engine1” on SVM
[Link]:
Vserver: [Link]
Engine: engine1
Primary FPolicy Servers: [Link], [Link]
Port Number of FPolicy Service: 6789
Secondary FPolicy Servers: -
External Engine Type: synchronous
SSL Option for External Communication: no-auth
FQDN or Custom Common Name: -
Serial Number of Certificate: -
Certificate Authority: -
As part of creating an FPolicy policy configuration, you need to create an FPolicy event.
You associate the event with the FPolicy policy when it is created. An event defines which
protocol to monitor and which file access events to monitor and filter.
Before you begin
You should complete the FPolicy event worksheet.
1. Create the FPolicy event by using the vserver fpolicy policy event create command.
2. Verify the FPolicy event configuration by using the vserver fpolicy policy event show command.
175
Event File Is Volume
Vserver Name Protocols Operations Filters Operation
--------------- --------- --------- ------------- ---------
------------
[Link] event1 cifs open, close, - false
read, write
Beginning with ONTAP 9.13.1, users can receive notifications for failed file operations due to lack of
permissions. These notifications are valuable for security, ransomware protection, and governance.
1. Create the FPolicy event by using the vserver fpolicy policy event create command.
Persistent stores can help decouple client I/O processing from FPolicy notification
processing to reduce client latency. Beginning with ONTAP 9.14.1, FPolicy allows you to
set up persistent stores to capture file access events for asynchronous non-mandatory
policies in the SVM. Synchronous (either mandatory or non-mandatory) and
asynchronous mandatory configurations are not supported.
Beginning with ONTAP 9.15.1, FPolicy persistent store configuration is simplified. The persistent-store
create command automates volume creation for the SVM and configures the volume for the persistent store.
There are two ways to create a persistent store, depending on the ONTAP release:
• ONTAP 9.15.1 or later: When you create the persistent store, ONTAP automatically creates and configures
its volume at the same time. This simplifies FPolicy persistent store configuration and implements all best
practices.
• ONTAP 9.14.1: Manually create and configure a volume and then create a persistent store for the newly
created volume.
Only one persistent store can be set up on each SVM. This single persistent store needs to be used for all
FPolicy configurations on that SVM, even if the policies are from different partners.
Beginning with ONTAP 9.15.1, use the fpolicy persistent-store create command to create the
FPolicy persistent store with inline volume creation and configuration. ONTAP automatically blocks the volume
from external user protocol access (CIFS/NFS).
176
volumes.
Steps
1. Create the persistent store, which creates and configures the volume automatically:
If you want to use an existing, empty volume, use the volume show command to find it
and specify it in the volume parameter.
◦ The size parameter is based on the time duration for which you want to persist the events that are not
delivered to the external server (partner application).
For example, if you want 30 minutes of events to persist in a cluster with a 30K notifications per second
capacity:
Required Volume Size = 30000 x 30 x 60 x 0.6KB (average notification record size) = 32400000 KB =
~32 GB
To find the approximate notification rate, you can either reach out to your FPolicy partner application or
use the FPolicy counter requests_dispatched_rate.
If you are using an existing volume, the size parameter is optional. If you do provide a
value for the size parameter, it will modify the volume with the size you specify.
◦ The autosize-mode parameter specifies the autosize mode for the volume. The supported autosize
modes are:
▪ off - The volume does not grow or shrink in size in response to the amount of used space.
▪ grow - The volume automatically grows when used space in the volume is above the grow
threshold.
▪ grow_shrink - The volume grows or shrinks in size in response to the amount of used space.
2. Create the FPolicy policy and add the persistent store name to that policy. For more information, see
Create the FPolicy policy.
You can create a volume, and then create a persistent store to use that volume. You can then block the newly
created volume from external user protocol access (CIFS/NFS).
Steps
1. Create an empty volume on the SVM that can be provisioned for the persistent store:
volume create -vserver <SVM Name> -volume <volume> -state <online> -policy
<default> -unix-permissions <777> -size <value> -aggregate <aggregate name>
177
-snapshot-policy <none>
It is expected that an administrator user with sufficient RBAC privileges (to create a volume) creates a
volume (using the volume cli command or REST API) of the desired size and provide the name of that
volume as the -volume in the persistent store create CLI command or REST API.
For example, if you want 30 minutes of events to persist in a cluster with a 30K notifications per second
capacity:
Required Volume Size = 30000 x 30 x 60 x 0.6KB (average notification record size) = 32400000 KB =
~32 GB
To find the approximate notification rate, you can either reach out to your FPolicy partner application or
use the FPolicy counter requests_dispatched_rate.
◦ The aggregate parameter is needed for FlexVol volumes, otherwise it is not required.
◦ The snapshot-policy parameter must be set to none. This ensures that there is no accidental
restore of the snapshot leading to loss of current events and prevents possible duplicate event
processing.
If you want to use an existing, empty volume, use the volume show command to find it and the
volume modify command to make any needed alterations. Ensure the policy, size, and snapshot-
policy parameters are set correctly for the persistent store.
When you create the FPolicy policy, you associate an external engine and one or more
events to the policy. The policy also specifies whether mandatory screening is required,
178
whether the FPolicy servers have privileged access to data on the storage virtual
machine (SVM), and whether passthrough-read for offline files is enabled.
Before you begin
• The FPolicy policy worksheet should be completed.
• If you plan on configuring the policy to use FPolicy servers, the external engine must exist.
• At least one FPolicy event that you plan on associating with the FPolicy policy must exist.
• If you want to configure privileged data access, a SMB server must exist on the SVM.
• To configure a persistent store for a policy, the engine type must be async and the policy must be non-
mandatory.
Steps
1. Create the FPolicy policy:
The following command creates a policy named “policy1” that has the event named “event1” and the
external engine named “engine1” associated with it. This policy uses default values in the policy
configuration:
vserver fpolicy policy create -vserver [Link] -policy-name policy1
-events event1 -engine engine1
The following command creates a policy named “policy2” that has the event named “event2” and the
external engine named “engine2” associated with it. This policy is configured to use privileged access
using the specified user name. Passthrough-read is enabled:
The following command creates a policy named “native1” that has the event named “event3”
associated with it. This policy uses the native engine and uses default values in the policy
configuration:
179
2. Verify the FPolicy policy configuration by using the vserver fpolicy policy show command.
The following command displays information about the three configured FPolicy policies, including the
following information:
After creating the FPolicy policy, you need to create an FPolicy scope. When creating the
scope, you associate the scope with an FPolicy policy. A scope defines the boundaries on
which the FPolicy policy applies. Scopes can include or exclude files based on shares,
export policies, volumes, and file extensions.
Before you begin
The FPolicy scope worksheet must be completed. The FPolicy policy must exist with an associated external
engine (if the policy is configured to use external FPolicy servers) and must have at least one associated
FPolicy event.
Steps
1. Create the FPolicy scope by using the vserver fpolicy policy scope create command.
2. Verify the FPolicy scope configuration by using the vserver fpolicy policy scope show command.
180
Vserver: [Link]
Policy: policy1
Shares to Include: -
Shares to Exclude: -
Volumes to Include: datavol1, datavol2
Volumes to Exclude: -
Export Policies to Include: -
Export Policies to Exclude: -
File Extensions to Include: -
File Extensions to Exclude: -
After you are through configuring an FPolicy policy configuration, you enable the FPolicy
policy. Enabling the policy sets its priority and starts file access monitoring for the policy.
Before you begin
The FPolicy policy must exist with an associated external engine (if the policy is configured to use external
FPolicy servers) and must have at least one associated FPolicy event. The FPolicy policy scope must exist
and must be assigned to the FPolicy policy.
Steps
1. Enable the FPolicy policy by using the vserver fpolicy enable command.
2. Verify that the FPolicy policy is enabled by using the vserver fpolicy show command.
Sequence
Vserver Policy Name Number Status Engine
--------------- ----------------- -------- -------- ---------
[Link] policy1 1 on engine1
181
Manage FPolicy configurations
You can modify FPolicy configurations by modifying the elements that make up the
configuration. You can modify external engines, FPolicy events, FPolicy scopes, FPolicy
persistent stores, and FPolicy policies. You can also enable or disable FPolicy policies.
When you disable the FPolicy policy, file monitoring is discontinued for that policy.
You should disable an FPolicy policy before modifying its configuration.
Learn more about vserver fpolicy policy in the ONTAP command reference.
You can enable FPolicy policies after the configuration is complete. Enabling the policy
sets its priority and starts file access monitoring for the policy. You can disable FPolicy
policies if you want to stop file access monitoring for the policy.
Before you begin
Before enabling FPolicy policies, the FPolicy configuration must be completed.
Step
1. Perform the appropriate action:
182
If you want to… Enter the following command…
Enable an FPolicy policy vserver fpolicy enable -vserver-name vserver_name
-policy-name policy_name -sequence-number integer
A show command without additional parameters displays information in a summary form. Additionally, every
show command has the same two mutually exclusive optional parameters, -instance and -fields.
When you use the -instance parameter with a show command, the command output displays detailed
information in a list format. In some cases, the detailed output can be lengthy and include more information
than you need. You can use the -fields fieldname[,fieldname…] parameter to customize the output so
that it displays information only for the fields you specify. You can identity which fields that you can specify by
entering ? after the -fields parameter.
The output of a show command with the -fields parameter might display other relevant and
necessary fields related to the requested fields.
Every show command has one or more optional parameters that filter that output and enable you to narrow the
scope of information displayed in command output. You can identity which optional parameters are available
for a command by entering ? after the show command.
The show command supports UNIX-style patterns and wildcards to enable you to match multiple values in
command-parameters arguments. For example, you can use the wildcard operator (*), the NOT operator (!),
the OR operator (|), the range operator (integer…integer), the less-than operator (<), the greater-than operator
(>), the less-than or equal to operator (<=), and the greater-than or equal to operator (>=) when specifying
values.
For more information about using UNIX-style patterns and wildcards, see the Using the ONTAP command-line
interface.
You use the fpolicy show commands to display information about the FPolicy
configuration, including information about FPolicy external engines, events, scopes, and
policies.
183
External engines vserver fpolicy policy external-engine show
Learn more about vserver fpolicy policy in the ONTAP command reference.
You can display information about the status for FPolicy policies to determine whether a
policy is enabled, what external engine it is configured to use, what the sequence number
is for the policy, and to which storage virtual machine (SVM) the FPolicy policy is
associated.
About this task
If you do not specify any parameters, the command displays the following information:
• SVM name
• Policy name
• Policy sequence number
• Policy status
In addition to displaying information about policy status for FPolicy policies configured on the cluster or a
specific SVM, you can use command parameters to filter the command’s output by other criteria.
You can specify the -instance parameter to display detailed information about listed policies. Alternatively,
you can use the -fields parameter to display only the indicated fields in the command output, or -fields ?
to determine what fields you can use.
Step
1. Display filtered information about FPolicy policy status by using the appropriate command:
That have the specified status vserver fpolicy show -status {on|off}
With the specified policy name vserver fpolicy show -policy-name policy_name
184
That use the specified external vserver fpolicy show -engine engine_name
engine
Example
The following example displays the information about FPolicy policies on the cluster:
You can display information about enabled FPolicy policies to determine what FPolicy
external engine it is configured to use, what the priority is for the policy, and to which
storage virtual machine (SVM) the FPolicy policy is associated.
About this task
If you do not specify any parameters, the command displays the following information:
• SVM name
• Policy name
• Policy priority
You can use command parameters to filter the command’s output by specified criteria.
Step
1. Display information about enabled FPolicy policies by using the appropriate command:
185
With the specified policy name vserver fpolicy show-enabled -policy-name
policy_name
Example
The following example displays the information about enabled FPolicy policies on the cluster:
To enable file processing, you might need to manually connect to an external FPolicy
server if the connection has previously been terminated. A connection is terminated after
the server timeout is reached or due to some error. Alternatively, the administrator might
manually terminate a connection.
About this task
If a fatal error occurs, the connection to the FPolicy server can be terminated. After resolving the issue that
caused the fatal error, you must manually reconnect to the FPolicy server.
Steps
1. Connect to the external FPolicy server by using the vserver fpolicy engine-connect command.
Learn more about vserver fpolicy engine-connect in the ONTAP command reference.
2. Verify that the external FPolicy server is connected by using the vserver fpolicy show-engine
command.
Learn more about vserver fpolicy show-engine in the ONTAP command reference.
You might need to manually disconnect from an external FPolicy server. This might be
desirable if the FPolicy server has issues with notification request processing or if you
need to perform maintenance on the FPolicy server.
186
Steps
1. Disconnect from the external FPolicy server by using the vserver fpolicy engine-disconnect
command.
Learn more about vserver fpolicy engine-disconnect in the ONTAP command reference.
2. Verify that the external FPolicy server is disconnected by using the vserver fpolicy show-engine
command.
Learn more about vserver fpolicy show-engine in the ONTAP command reference.
You can display status information about connections to external FPolicy servers (FPolicy
servers) for the cluster or for a specified storage virtual machine (SVM). This information
can help you determine which FPolicy servers are connected.
About this task
If you do not specify any parameters, the command displays the following information:
• SVM name
• Node name
• FPolicy policy name
• FPolicy server IP address
• FPolicy server status
• FPolicy server type
In addition to displaying information about FPolicy connections on the cluster or a specific SVM, you can use
command parameters to filter the command’s output by other criteria.
You can specify the -instance parameter to display detailed information about listed policies. Alternatively,
you can use the -fields parameter to display only the indicated fields in the command output. You can enter
? after the -fields parameter to find out which fields you can use.
Step
1. Display filtered information about connection status between the node and the FPolicy server by using the
appropriate command:
187
With the server status that you vserver fpolicy show-engine -server-status status
specify
The server status can be one of the following:
• connected
• disconnected
• connecting
• disconnecting
• primary
• secondary
Example
This example displays information about external engine connections to FPolicy servers on SVM
[Link]:
188
cluster1::> vserver fpolicy show-engine -vserver [Link]
FPolicy Server- Server-
Vserver Policy Node Server status type
--------------- --------- ------------ ------------- -------------
---------
[Link] policy1 node1 [Link] connected primary
[Link] policy1 node1 [Link] disconnected primary
[Link] policy1 node2 [Link] connected primary
[Link] policy1 node2 [Link] disconnected primary
You can display information about FPolicy passthrough-read connection status to external
FPolicy servers (FPolicy servers) for the cluster or for a specified storage virtual machine
(SVM). This information can help you determine which FPolicy servers have
passthrough-read data connections and for which FPolicy servers the passthrough-read
connection is disconnected.
About this task
If you do not specify any parameter, the command displays the following information:
• SVM name
• FPolicy policy name
• Node name
• FPolicy server IP address
• FPolicy passthrough-read connection status
In addition to displaying information about FPolicy connections on the cluster or a specific SVM, you can use
command parameters to filter the command’s output by other criteria.
You can specify the -instance parameter to display detailed information about listed policies. Alternatively,
you can use the -fields parameter to display only the indicated fields in the command output. You can enter
? after the -fields parameter to find out which fields you can use.
Step
1. Display filtered information about connection status between the node and the FPolicy server by using the
189
appropriate command:
• connected
• disconnected
Example
The following command displays information about passthrough-read connections from all FPolicy servers on
the cluster:
The following command displays detailed information about passthrough-read connections from FPolicy
servers configured in the “pol_cifs_1” policy:
190
cluster1::> vserver fpolicy show-passthrough-read-connection -policy-name
pol_cifs_1 -instance
Node: FPolicy-01
Vserver: [Link]
Policy: pol_cifs_1
Server: [Link]
Session ID of the Control Channel: 8cef052e-2502-11e3-
88d4-123478563412
Server Status: connected
Time Passthrough Read Channel was Connected: 9/24/2013 10:17:45
Time Passthrough Read Channel was Disconnected: -
Reason for Passthrough Read Channel Disconnection: none
When you want to verify the security settings for SMB or NFS access on files and folders on your SVM or if you
are faced with an access problem, you can quickly add a filter to turn on permission tracing.
The following list outlines important facts about how security traces works:
191
• If a request matches multiple filters, the results from the filter with the highest index number is recorded.
• The storage administrator can print results from the trace results log to determine why an access request
was allowed or denied.
You must specify the SVM on which you want to run the trace.
• You can add permission tracing filters for SMB and NFS requests.
• You must set up the SMB or NFS server on the SVM on which you want to create trace filters.
• You can create security traces for files and folders residing on NTFS, UNIX, and mixed security-style
volumes and qtrees.
• You can add a maximum of 10 permission tracing filters per SVM.
• You must specify a filter index number when creating or modifying a filter.
Filters are considered in order of the index number. The criteria in a filter with a higher index number is
considered before the criteria with a lower index number. If the request being traced matches criteria in
multiple enabled filters, only the filter with the highest index number is triggered.
• After you have created and enabled a security trace filter, you must perform some file or folder requests on
a client system to generate activity that the trace filter can capture and log in the trace results log.
• You should add permission tracing filters for file access verification or troubleshooting purposes only.
192
When you are done with verification or troubleshooting activity, you should disable or remove all permission
tracing filters. Furthermore, the filtering criteria you select should be as specific as possible so that ONTAP
does not send a large number of trace results to the log.
Performing a security trace involves creating a security trace filter, verifying the filter
criteria, generating access requests on an SMB or NFS client that match filter criteria, and
viewing the results.
After you are finished using a security filter to capture trace information, you can modify the filter and reuse it,
or disable it if you no longer need it. After viewing and analyzing the filter trace results, you can then delete
them if they are no longer needed.
You can create security trace filters that detect SMB and NFS client operations on
storage virtual machines (SVMs)and trace all access checks matching the filter. You can
use the results from security traces to validate your configuration or to troubleshoot
access issues.
About this task
There are two required parameters for the vserver security trace filter create command:
The name of the SVM that contains the files or folders on which you
want to apply the security trace filter.
The index number you want to apply to the filter. You are limited to a
maximum of 10 trace filters per SVM. The allowed values for this
parameter are 1 through 10.
A number of optional filter parameters enable you to customize the security trace filter so that you can narrow
down the results produced by the security trace:
-client-ip IP_Address This filter specifies the IP address from which the user is accessing the
SVM.
193
-path path This filter specifies the path on which to apply the permission trace
filter. The value for -path can use either of the following formats:
• The complete path, starting from the root of the share or export
• A partial path, relative to the root of the share
-windows-name win_user_name You can specify either the Windows user name or UNIX user name
or -unix whose access requests you want to trace. The user name variable is
-name``unix_user_name case insensitive. You cannot specify both a Windows user name and a
UNIX user name in the same filter.
-trace-allow {yes|no} Tracing for deny events is always enabled for a security trace filter.
You can optionally trace allow events. To trace allow events, you set
this parameter to yes.
-enabled {enabled|disabled} You can enable or disable the security trace filter. By default, the
security trace filter is enabled.
-time-enabled integer You can specify a timeout for the filter, after which it is disabled.
Steps
1. Create a security trace filter:
Learn more about vserver security trace filter create in the ONTAP command reference.
Examples
The following command creates a security trace filter for any user accessing a file with a share path
\\server\share1\dir1\dir2\[Link] from the IP address [Link]. The filter uses a complete path
for the -path option. The client’s IP address used to access data is [Link]. The filter times out after 30
minutes:
194
cluster1::> vserver security trace filter create -vserver vs1 -index 1
-path /dir1/dir2/[Link] -time-enabled 30 -client-ip [Link]
cluster1::> vserver security trace filter show -index 1
Vserver Index Client-IP Path Trace-Allow
Windows-Name
-------- ----- ----------- ---------------------- -----------
-------------
vs1 1 [Link] /dir1/dir2/[Link] no -
The following command creates a security trace filter using a relative path for the -path option. The filter
traces access for a Windows user named “joe”. Joe is accessing a file with a share path
\\server\share1\dir1\dir2\[Link]. The filter traces allow and deny events:
You can display information about security trace filters configured on your storage virtual
machine (SVM). This enables you to see which types of access events each filter traces.
Step
1. Display information about security trace filter entries by using the vserver security trace filter
show command.
Learn more about vserver security trace filter show in the ONTAP command reference.
Examples
The following command displays information about all security trace filters on SVM vs1:
195
cluster1::> vserver security trace filter show -vserver vs1
Vserver Index Client-IP Path Trace-Allow
Windows-Name
-------- ----- ----------- ---------------------- -----------
-------------
vs1 1 - /dir1/dir2/[Link] yes -
vs1 2 - /dir3/dir4/ no
mydomain\joe
You can display the security trace results generated for file operations that match security
trace filters. You can use the results to validate your file access security configuration or
to troubleshoot SMB and NFS file access issues.
Before you begin
An enabled security trace filter must exist and operations must have been performed from an SMB or NFS
client that matches the security trace filter to generate security trace results.
If you do not specify any of the optional parameters, the following is displayed:
The user name is displayed depending on how the trace filter is configured:
With a Windows user name The security trace result displays the Windows user name.
Without a user name The security trace result displays the Windows user name.
You can customize the output by using optional parameters. Some of the optional parameters that you can use
196
to narrow the results returned in the command output include the following:
-fields field_name, … Displays output on the fields you choose. You can use this parameter
either alone or in combination with other optional parameters.
-instance Displays detailed information about security trace events. Use this
parameter with other optional parameters to display detailed
information about specific filter results.
-node node_name Displays information only about events on the specified node.
-vserver vserver_name Displays information only about events on the specified SVM.
-index integer Displays information about the events that occurred as a result of the
filter corresponding to the specified index number.
-client-ip IP_address Displays information about the events that occurred as a result of file
access from the specified client IP address.
-path path Displays information about the events that occurred as a result of file
access to the specified path.
-user-name user_name Displays information about the events that occurred as a result of file
access by the specified Windows or UNIX user.
-security-style Displays information about the events that occurred on file systems
security_style with the specified security style.
Learn more about other optional parameters in the ONTAP command reference.
Step
1. Display security trace filter results by using the vserver security trace trace-result show
command.
197
Vserver: vs1
If you want to change the optional filter parameters used to determine which access
events are traced, you can modify existing security trace filters.
About this task
You must identify which security trace filter you want to modify by specifying the storage virtual machine (SVM)
name on which the filter is applied and the index number of the filter. You can modify all the optional filter
parameters.
Steps
1. Modify a security trace filter:
◦ vserver_name is the name of the SVM on which you want to apply a security trace filter.
◦ index_number is the index number that you want to apply to the filter. The allowed values for this
parameter are 1 through 10.
◦ filter_parameters is a list of optional filter parameters.
2. Verify the security trace filter entry:
Example
The following command modifies the security trace filter with the index number 1. The filter traces events for
any user accessing a file with a share path \\server\share1\dir1\dir2\[Link] from any IP address.
The filter uses a complete path for the -path option. The filter traces allow and deny events:
198
cluster1::> vserver security trace filter modify -vserver vs1 -index 1
-path /dir1/dir2/[Link] -trace-allow yes
When you no longer need a security trace filter entry, you can delete it. Because you can
have a maximum of 10 security trace filters per storage virtual machine (SVM), deleting
unneeded filters enables you to create new filters if you have reached the maximum.
About this task
To uniquely identify the security trace filter that you want to delete, you must specify the following:
Steps
1. Identify the filter index number of the security trace filter entry you want to delete:
2. Using the filter index number information from the previous step, delete the filter entry:
199
3. Verify that the security trace filter entry is deleted:
After you finish using a filter trace record to verify file access security or to troubleshoot
SMB or NFS client access issues, you can delete the security trace record from the
security trace log.
About this task
Before you can delete a security trace record, you must know the record’s sequence number.
Each storage virtual machine (SVM) can store a maximum of 128 trace records. If the maximum
is reached on the SVM, the oldest trace records are automatically deleted as new ones are
added. If you do not want to manually delete trace records on this SVM, you can let ONTAP
automatically delete the oldest trace results after the maximum is reached to make room for new
results.
Steps
1. Identify the sequence number of the record you want to delete:
vserver security trace trace-result delete -vserver vs1 -node node1 -seqnum
999
◦ -node node_name is the name of the cluster node on which the permission tracing event that you
want to delete occurred.
◦ -vserver vserver_name is the name of the SVM on which the permission tracing event that you
want to delete occurred.
200
This is a required parameter.
◦ -seqnum integer is the sequence number of the log event that you want to delete.
If you do not want to keep any of the existing security trace records, you can delete all of
the records on a node with a single command.
Step
1. Delete all security trace records:
◦ -node node_name is the name of the cluster node on which the permission tracing event that you
want to delete occurred.
◦ -vserver vserver_name is the name of the storage virtual machine (SVM) on which the permission
tracing event that you want to delete occurred.
Finding information about the lists of result types and filter details
You can find the lists of result types and filter details that can be included in the security trace results in the
vserver security trace trace-result show command.
Learn more about vserver security trace trace-result show in the ONTAP command reference.
201
The following is an example of the output from the Reason field that appears in the trace results log in a Deny
result type:
SMB configuration
• SMB management
Describes how to configure and manage file access using the SMB protocol.
• NetApp Technical Report 4191: Best Practices Guide for Clustered Data ONTAP 8.2 Windows File
Services
Provides a brief overview of SMB implementation and other Windows File Services features with
recommendations and basic troubleshooting information for ONTAP.
• NetApp Technical Report 3740: SMB 2 Next-Generation CIFS Protocol in Data ONTAP
NFS configuration
• NFS management
Describes how to configure and manage file access using the NFS protocol.
• NetApp Technical Report 4067: NFS Best Practice and Implementation Guide
Serves as an NFSv3 and NFSv4 operational guide and provides an overview of ONTAP operating system
with a focus on NFSv4.
202
• NetApp Technical Report 4668: Name Services Best Practices Guide
Provides a comprehensive list of best practices, limits, recommendations, and considerations when
configuring LDAP, NIS, DNS, and local user and group files for authentication purposes.
• NetApp Technical Report 4616: NFS Kerberos in ONTAP with Microsoft Active Directory
• NetApp Technical Report 4835: How to Configure LDAP in ONTAP
• NetApp Technical Report 3580: NFSv4 Enhancements and Best Practices Guide Data ONTAP
Implementation
Describes the best practices that should be followed while implementing NFSv4 components on AIX, Linux,
or Solaris clients attached to systems running ONTAP.
After configuring protocols on the SVM, you should ensure that its root volume is protected:
• Data protection
Describes how to create a load-sharing mirror to protect the SVM root volume, which is a NetApp best
practice for NAS-enabled SVMs. Also describes how to quickly recover from volume failures or losses by
promoting the SVM root volume from a load-sharing mirror.
Volume encryption requires a key manager. You can configure the Onboard Key Manager using System
Manager. You can also use an external key manager, but you need to first set it up using the ONTAP CLI.
After the key manager is configured, new volumes are encrypted by default.
Steps
1. Click Cluster > Settings.
2. Under Encryption, click to configure the Onboard Key Manager for the first time.
3. To encrypt existing volumes, click Storage > Volumes.
4. On the desired volume, click and then click Edit.
5. Select Enable encryption.
203
Encrypt stored data in your ONTAP cluster using self-encrypting drives
Use disk encryption to ensure that all data in a local tier cannot be read if the underlying
device is repurposed, returned, misplaced, or stolen. Disk encryption requires special
self-encrypting HDDs or SSDs.
About this task
This procedure applies to FAS, AFF, and ASA systems. If you have an ASA r2 system (ASA A1K, ASA A90,
ASA A70, ASA A50, ASA A30, ASA A20, or ASA C30), follow these steps to enable hardware level encryption.
ASA r2 systems provide a simplified ONTAP experience specific to SAN-only customers.
Disk encryption requires a key manager. You can configure the onboard key manager using System Manager.
You can also use an external key manager, but you need to first set it up using the ONTAP CLI.
If ONTAP detects self-encrypting disks, it prompts you to configure the onboard key manager when you create
the local tier.
Steps
1. Under Encryption, click to configure the onboard key manager.
2. If you see a message that disks need to be rekeyed, click , and then click Rekey Disks.
Understanding NVE
With NVE, both metadata and data (including snapshots) are encrypted. Access to the data is given by a
unique XTS-AES-256 key, one per volume. An external key management server or Onboard Key Manager
(OKM) serves keys to nodes:
• The external key management server is a third-party system in your storage environment that serves keys
204
to nodes using the Key Management Interoperability Protocol (KMIP). It is a best practice to configure
external key management servers on a different storage system from your data.
• The Onboard Key Manager is a built-in tool that serves keys to nodes from the same storage system as
your data.
Beginning with ONTAP 9.7, aggregate and volume encryption is enabled by default if you have a volume
encryption (VE) license and use an onboard or external key manager. The VE license is included with ONTAP
One. Whenever an external or onboard key manager is configured there is a change in how the encryption of
data at rest is configured for brand new aggregates and brand new volumes. Brand new aggregates will have
NetApp Aggregate Encryption (NAE) enabled by default. Brand new volumes that are not part of an NAE
aggregate will have NetApp Volume Encryption (NVE) enabled by default. If a data storage virtual machine
(SVM) is configured with its own key-manager using multi-tenant key management, then the volume created
for that SVM is automatically configured with NVE.
You can enable encryption on a new or existing volume. NVE supports the full range of storage efficiency
features, including deduplication and compression. Beginning with ONTAP 9.14.1, you can enable NVE on
existing SVM root volumes.
If you are using SnapLock, you can enable encryption only on new, empty SnapLock volumes.
You cannot enable encryption on an existing SnapLock volume.
You can use NVE on any type of aggregate (HDD, SSD, hybrid, array LUN), with any RAID type, and in any
supported ONTAP implementation, including ONTAP Select. You can also use NVE with hardware-based
encryption to “double encrypt” data on self-encrypting drives.
Aggregate-level encryption
Ordinarily, every encrypted volume is assigned a unique key. When the volume is deleted, the key is deleted
with it.
Beginning with ONTAP 9.6, you can use NetApp Aggregate Encryption (NAE) to assign keys to the containing
aggregate for the volumes to be encrypted. When an encrypted volume is deleted, the keys for the aggregate
are preserved. The keys are deleted if the entire aggregate is deleted.
You must use aggregate-level encryption if you plan to perform inline or background aggregate-level
deduplication. Aggregate-level deduplication is otherwise not supported by NVE.
Beginning with ONTAP 9.7, aggregate and volume encryption is enabled by default if you have a volume
encryption (VE) license and use an onboard or external key manager.
NVE and NAE volumes can coexist on the same aggregate. Volumes encrypted under aggregate-level
encryption are NAE volumes by default. You can override the default when you encrypt the volume.
You can use the volume move command to convert an NVE volume to an NAE volume, and vice versa. You
can replicate an NAE volume to an NVE volume.
Although it is less expensive and typically more convenient to use the onboard key manager, you should set up
KMIP servers if any of the following are true:
205
• Your encryption key management solution must comply with Federal Information Processing Standards
(FIPS) 140-2 or the OASIS KMIP standard.
• You need a multi-cluster solution, with centralized management of encryption keys.
• Your business requires the added security of storing authentication keys on a system or in a location
different from the data.
The scope of external key management determines whether key management servers secure all the SVMs in
the cluster or selected SVMs only:
• You can use a cluster scope to configure external key management for all the SVMs in the cluster. The
cluster administrator has access to every key stored on the servers.
• Beginning with ONTAP 9.6, you can use an SVM scope to configure external key management for a
named SVM in the cluster. That’s best for multitenant environments in which each tenant uses a different
SVM (or set of SVMs) to serve data. Only the SVM administrator for a given tenant has access to the keys
for that tenant.
◦ Beginning with ONTAP 9.17.1, you can use Barbican KMS to protect NVE keys only for data SVMs.
◦ Beginning with ONTAP 9.10.1, you can use Azure Key Vault and Google Cloud KMS to protect NVE
keys only for data SVMs. This is available for AWS’s KMS beginning in 9.12.0.
You can use both scopes in the same cluster. If key management servers have been configured for an SVM,
ONTAP uses only those servers to secure keys. Otherwise, ONTAP secures keys with the key management
servers configured for the cluster.
A list of validated external key managers is available in the NetApp Interoperability Matrix Tool (IMT). You can
find this list by entering the term "key managers" into the IMT’s search feature.
Cloud KMS providers such as Azure Key Vault and AWS KMS do not support KMIP. As a result,
they are not listed on IMT.
Support details
206
Encryption Beginning with ONTAP 9.7, newly created aggregates and volumes are encrypted
by default when you add a volume encryption (VE) license and have an onboard
or external key manager configured. If you need to create an unencrypted
aggregate, use the following command:
If you need to create a plain text volume, use the following command:
ONTAP All ONTAP implementations. Support for Cloud Volumes ONTAP is available in
ONTAP 9.5 and later.
Volumes Data volumes and existing SVM root volumes. You cannot encrypt data on
MetroCluster metadata volumes. In versions of ONTAP earlier than 9.14.1, you
cannot encrypt data on the SVM root volume with NVE. Beginning with ONTAP
9.14.1, ONTAP supports NVE on SVM root volumes.
Aggregate-level Beginning with ONTAP 9.6, NVE supports aggregate-level encryption (NAE):
encryption
• You must use aggregate-level encryption if you plan to perform inline or
background aggregate-level deduplication.
• You cannot rekey an aggregate-level encryption volume.
• Secure-purge is not supported on aggregate-level encryption volumes.
• In addition to data volumes, NAE supports encryption of SVM root volumes
and the MetroCluster metadata volume. NAE does not support encryption of
the root volume.
Beginning with ONTAP 9.6, NVE supports SVM scope for external key
management only, not for Onboard Key Manager.
207
Storage efficiency Deduplication, compression, compaction, FlexClone.
Clones use the same key as the parent, even after splitting the clone from the
parent. You should perform a volume move on a split clone, after which the split
clone will have a different key.
Replication • For volume replication, the source and destination volumes can have different
encryption settings. Encryption can be configured for the source and
unconfigured for the destination, and vice versa. Configured encryption on the
source will not be replicated to the destination. Encryption must be configured
manually on the source and destination. Refer to Configure NVE and Encrypt
volume data with NVE.
• For SVM replication, the destination volume is automatically encrypted,
unless the destination does not contain a node that supports volume
encryption, in which case replication succeeds, but the destination volume is
not encrypted.
• For MetroCluster configurations, each cluster pulls external key management
keys from its configured key servers. OKM keys are replicated to the partner
site by the configuration replication service.
Compliance SnapLock is supported in both Compliance and Enterprise modes, for new
volumes only. You cannot enable encryption on an existing SnapLock volume.
FlexGroup volumes FlexGroup volumes are supported. Destination aggregates must be of the same
type as source aggregates, either volume-level or aggregate-level. Beginning with
ONTAP 9.5, in-place rekey of FlexGroup volumes is supported.
7-Mode transition Beginning with 7-Mode Transition Tool 3.3, you can use the 7-Mode Transition
Tool CLI to perform copy-based transition to NVE-enabled destination volumes on
the clustered system.
Related information
• FAQ - NetApp Volume Encryption and NetApp Aggregate Encryption
• storage aggregate create
You must configure key management services before you can enable volume encryption.
You can enable encryption on a new volume or on an existing volume.
208
You must install the VE license and configure key management services before you can encrypt data with
NVE. Before installing the license, you should determine whether your ONTAP version supports NVE.
Configure NVE
You should determine whether your cluster version supports NVE before you install the
license. You can use the version command to determine the cluster version.
Steps
1. Determine whether your cluster version supports NVE:
version -v
NVE is not supported if the command output displays the text 1Ono-DARE (for "no Data At Rest
Encryption"), or if you are using a platform that is not listed in Support details.
209
Install the volume encryption license on an ONTAP cluster
A VE license entitles you to use the feature on all nodes in the cluster. This license is
required before you can encrypt data with NVE. It is included with ONTAP One.
Prior to ONTAP One, the VE license was included with the Encryption bundle. The Encryption bundle is no
longer offered, but is still valid. Although not currently required, existing customers can choose to upgrade to
ONTAP One.
Steps
1. Verify that the VE license is installed.
2. If the license is not installed, use System Manager or the ONTAP CLI to install it.
Learn about configuring external key management with ONTAP NetApp Volume Encryption
You can use one or more external key management servers to secure the keys that the
cluster uses to access encrypted data. An external key management server is a third-
party system in your storage environment that serves keys to nodes using the Key
Management Interoperability Protocol (KMIP). In addition to the Onboard Key Manager,
ONTAP supports several external key management servers.
Beginning with ONTAP 9.7, you can store and manage authentication and encryption
keys with the Onboard Key Manager. Beginning with ONTAP 9.13.1, you can also use
external key managers to store and manage these keys.
The Onboard Key Manager stores and manages keys in a secure database that is internal to the cluster. Its
210
scope is the cluster. An external key manager stores and manages keys outside the cluster. Its scope can be
the cluster or the storage VM. One or more external key managers can be used. The following conditions
apply:
• If the Onboard Key Manager is enabled, an external key manager cannot be enabled at the cluster level,
but it can be enabled at the storage VM level.
• If an external key manager is enabled at the cluster level, the Onboard Key Manager cannot be enabled.
When using external key managers, you can register up to four primary key servers per storage VM and
cluster. Each primary key server can be clustered with up to three secondary key servers.
To add an external key manager for a storage VM, you should add an optional gateway when you configure the
network interface for the storage VM. If the storage VM was created without the network route, you will have to
create the route explicitly for the external key manager. See Create a LIF (network interface).
Steps
You can configure an external key manager starting from different locations in System Manager.
1. To configure an external key manager, perform one of the following starting steps.
Add local tier Storage > Tiers Select + Add Local Tier. Check the check box
labeled "Configure Key Manager". Select External
Key Manager.
Configure encryption Storage > Storage VMs Select the storage VM. Select the Settings tab. In
(key manager at storage the Encryption section under Security, select .
VM scope only)
2. To add a primary key server, select , and complete the IP Address or Host Name and Port fields.
3. Existing installed certificates are listed in the KMIP Server CA Certificates and KMIP Client Certificate
fields. You can perform any of the following actions:
◦ Select to select installed certificates that you want to map to the key manager. (Multiple service CA
certificates can be selected, but only one client certificate can be selected.)
◦ Select Add New Certificate to add a certificate that has not already been installed and map it to the
external key manager.
◦ Select next to the certificate name to delete installed certificates that you do not want to map to the
external key manager.
4. To add a secondary key server, select Add in the Secondary Key Servers column, and provide its details.
211
5. Select Save to complete the configuration.
If you have already configured an external key manager, you can modify its settings.
Steps
1. To edit the configuration of an external key manager, perform one of the following starting steps.
Storage VM scope Storage > Storage VMs Select the storage VM. Select the Settings tab. In
external key manager the Encryption section under Security, select ,
then select Edit External Key Manager.
2. Existing key servers are listed in the Key Servers table. You can perform the following operations:
◦ Add a new key server by selecting .
◦ Delete a key server by selecting at the end of the table cell that contains the name of the key server.
The secondary key servers associated with that primary key server are also removed from the
configuration.
Steps
1. To delete an external key manager, perform one of the following steps.
Storage VM scope Storage > Storage VMs Select the storage VM. Select the Settings tab. In
external key manager the Encryption section under Security, select ,
then select Delete External Key Manager.
When multiple key managers are enabled on a cluster, keys must be migrated from one key manager to
another. This process is completed automatically with System Manager.
• If the Onboard Key Manager or an external key manager is enabled at a cluster level, and some volumes
are encrypted, then when you configure an external key manager at the storage VM level, the keys must
be migrated from the Onboard Key Manager or external key manager at the cluster level to the external
key manager at the storage VM level. This process is completed automatically by System Manager.
212
• If volumes were created without encryption on a storage VM, then keys do not need to be migrated.
The cluster and KMIP server use KMIP SSL certificates to verify each other’s identity and
establish an SSL connection. Before configuring the SSL connection with the KMIP
server, you must install the KMIP client SSL certificates for the cluster, and the SSL public
certificate for the root certificate authority (CA) of the KMIP server.
About this task
In an HA pair, both nodes must use the same public and private KMIP SSL certificates. If you connect multiple
HA pairs to the same KMIP server, all nodes in the HA pairs must use the same public and private KMIP SSL
certificates.
You can install the client and server certificates on the KMIP server before or after installing the
certificates on the cluster.
Steps
1. Install the SSL KMIP client certificates for the cluster:
You are prompted to enter the SSL KMIP public and private certificates.
2. Install the SSL public certificate for the root certificate authority (CA) of the KMIP server:
Related information
• security certificate install
Enable external key management for NVE in ONTAP 9.6 and later
You can use one or more KMIP servers to secure the keys the cluster uses to access
encrypted data. Beginning with ONTAP 9.6, you have the option to configure a separate
external key manager to secure the keys that a data SVM uses to access encrypted data.
213
Beginning with ONTAP 9.11.1, you can add up to 3 secondary key servers per primary key server to create a
clustered key server. For more information, see Configure clustered external key servers.
The scope of external key management determines whether key management servers secure all the SVMs in
the cluster or selected SVMs only:
• You can use a cluster scope to configure external key management for all the SVMs in the cluster. The
cluster administrator has access to every key stored on the servers.
• Beginning with ONTAP 9.6, you can use an SVM scope to configure external key management for a data
SVM in the cluster. That’s best for multitenant environments in which each tenant uses a different SVM (or
set of SVMs) to serve data. Only the SVM administrator for a given tenant has access to the keys for that
tenant.
• For multitenant environments, install a license for MT_EK_MGMT by using the following command:
Learn more about system license add in the ONTAP command reference.
You can use both scopes in the same cluster. If key management servers have been configured for an SVM,
ONTAP uses only those servers to secure keys. Otherwise, ONTAP secures keys with the key management
servers configured for the cluster.
You can configure onboard key management at the cluster scope and external key management at the SVM
scope. You can use the security key-manager key migrate command to migrate keys from onboard
key management at the cluster scope to external key managers at the SVM scope.
Learn more about security key-manager key migrate in the ONTAP command reference.
Steps
1. Configure key manager connectivity for the cluster:
214
◦ The security key-manager external enable command replaces the security
key-manager setup command. If you run the command at the cluster login prompt,
admin_SVM defaults to the admin SVM of the current cluster. You must be the cluster
administrator to configure cluster scope. You can run the security key-manager
external modify command to change the external key management configuration.
◦ In a MetroCluster environment, if you are configuring external key management for the
admin SVM, you must repeat the security key-manager external enable
command on the partner cluster.
The following command enables external key management for cluster1 with three external key servers.
The first key server is specified using its hostname and port, the second is specified using an IP address
and the default port, and the third is specified using an IPv6 address and port:
◦ If you run the command at the SVM login prompt, SVM defaults to the current SVM. You
must be a cluster or SVM administrator to configure SVM scope. You can run the
security key-manager external modify command to change the external key
management configuration.
◦ In a MetroCluster environment, if you are configuring external key management for a
data SVM, you do not have to repeat the security key-manager external
enable command on the partner cluster.
The following command enables external key management for svm1 with a single key server listening on
the default port 5696:
215
You can also use the security key-manager external add-servers command to
configure additional SVMs. The security key-manager external add-servers
command replaces the security key-manager add command.
Learn more about security key-manager external add-servers in the ONTAP
command reference.
An external key manager must be fully configured before you convert the volumes. In a MetroCluster
environment, an external key manager must be configured on both sites.
Related information
• security key-manager setup
216
Enable external key management for NVE in ONTAP 9.5 and earlier
You can use one or more KMIP servers to secure the keys the cluster uses to access
encrypted data. You can connect up to four KMIP servers to a node. A minimum of two
servers is recommended for redundancy and disaster recovery.
About this task
ONTAP configures KMIP server connectivity for all nodes in the cluster.
Steps
1. Configure key manager connectivity for cluster nodes:
In a MetroCluster environment, you must run this command on both clusters. Learn more
about security key-manager setup in the ONTAP command reference.
217
Learn more about the commands described in this procedure in the ONTAP command reference.
An external key manager must be fully configured before you convert the volumes. In a MetroCluster
environment, an external key manager must be configured on both sites.
Manage NVE keys for ONTAP data SVMs with a cloud provider
Beginning with ONTAP 9.10.1, you can use Azure Key Vault (AKV) and Google Cloud
Platform’s Key Management Service (Cloud KMS) to protect your ONTAP encryption
keys in a cloud-hosted application. Beginning with ONTAP 9.12.0, you can also protect
NVE keys with AWS' KMS.
AWS KMS, AKV and Cloud KMS can be used to protect NetApp Volume Encryption (NVE) keys only for data
SVMs.
When using a cloud provider to protect your keys, be aware that by default a data SVM LIF is used to
communicate with the cloud key management endpoint. A node management network is used to communicate
with the cloud provider’s authentication services ([Link] for Azure; [Link]
for Cloud KMS). If the cluster network is not configured correctly, the cluster will not properly use the key
management service.
When utilizing a cloud provider key management service, you should be aware of the following limitations:
• Cloud-provider key management is not available for NetApp Storage Encryption (NSE) and NetApp
Aggregate Encryption (NAE). External KMIPs can be used instead.
• Cloud-provider key management is not available for MetroCluster configurations.
• Cloud-provider key management can only be configured on a data SVM.
218
(MTEKM) licenses. These licenses are included with ONTAP One.
• You must be a cluster or SVM administrator.
• The data SVM must not include any encrypted volumes or employ a key manager. If the data SVM includes
encrypted volumes, you must migrate them before configuring the KMS.
Enabling external key management depends on the specific key manager you use. Choose the tab of the
appropriate key manager and environment.
219
AWS
Before you begin
• You must create a grant for the AWS KMS key that will be used by the IAM role managing encryption.
The IAM role must include a policy that allows the following operations:
◦ DescribeKey
◦ Encrypt
◦ Decrypt
+
For more information, see AWS documentation for grants.
Learn more about security key-manager external aws in the ONTAP command reference.
Azure
Enable Azure Key Vault on an ONTAP SVM
1. Before you begin, you need to obtain the appropriate authentication credentials from your Azure
account, either a client secret or certificate.
You must also ensure all nodes in the cluster are healthy. You can check this with the command
cluster show. Learn more about cluster show in the ONTAP command reference.
2. Set privileged level to advanced
set -priv advanced
3. Enable AKV on the SVM
security key-manager external azure enable -client-id client_id -tenant-id
tenant_id -name -key-id key_id -authentication-method {certificate|client-
secret}
When prompted, enter either the client certificate or client secret from your Azure account.
4. Verify AKV is enabled correctly:
security key-manager external azure show vserver svm_name
If the service reachability is not OK, establish the connectivity to the AKV key management service via
the data SVM LIF.
Learn more about security key-manager external azure in the ONTAP command reference.
Google Cloud
Enable Cloud KMS on an ONTAP SVM
220
1. Before you begin, obtain the private key for the Google Cloud KMS account key file in a JSON format.
This can be found in your GCP account.
You must also ensure all nodes in the cluster are healthy. You can check this with the command
cluster show. Learn more about cluster show in the ONTAP command reference.
2. Set privileged level to advanced:
set -priv advanced
3. Enable Cloud KMS on the SVM
security key-manager external gcp enable -vserver svm_name -project-id
project_id-key-ring-name key_ring_name -key-ring-location key_ring_location
-key-name key_name
When prompted, enter the contents of the JSON file with the Service Account Private Key
4. Verify that Cloud KMS is configured with the correct parameters:
security key-manager external gcp show vserver svm_name
The status of kms_wrapped_key_status will be “UNKNOWN” if no encrypted volumes have been
created.
If the service reachability is not OK, establish the connectivity to the GCP key management service
via data SVM LIF.
Learn more about security key-manager external gcp in the ONTAP command reference.
If one or more encrypted volumes is already configured for a data SVM and the corresponding NVE keys are
managed by the admin SVM onboard key manager, those keys should be migrated to the external key
management service. To do this with the CLI, run the command:
security key-manager key migrate -from-Vserver admin_SVM -to-Vserver data_SVM
New encrypted volumes cannot be created for the tenant’s data SVM until all NVE keys of the data SVM are
successfully migrated.
Related information
• Encrypting volumes with NetApp encryption solutions for Cloud Volumes ONTAP
• security key-manager external
Beginning with ONTAP 9.17.1, you can use OpenStack’s Barbican KMS to protect
ONTAP encryption keys. Barbican KMS is a service for securely storing and accessing
keys. Barbican KMS can be used to protect NetApp Volume Encryption (NVE) keys for
data SVMs. Barbican relies on OpenStack Keystone, OpenStack’s identity service, for
authentication.
About this task
You can configure key management with Barbican KMS with the CLI or the ONTAP REST API. With the 9.17.1
release, Barbican KMS support has the following limitations:
• Barbican KMS is not supported for NetApp Storage Encryption (NSE) and NetApp Aggregate Encryption
(NAE). Alternatively, you can use external KMIPs or the Onboard Key Manager (OKM) for NSE and NVE
keys.
• Barbican KMS is not supported for MetroCluster configurations.
• Barbican KMS can only be configured for a data SVM. It is not available for the admin SVM.
221
Unless otherwise noted, administrators at the admin privilege level can perform the following procedures.
You can create a new Barbican KMS configuration for an SVM and activate it. An SVM can have multiple
inactive Barbican KMS configurations, but only one can be active at a time.
Steps
1. Create a new inactive Barbican KMS configuration for an SVM:
◦ -key-id is the key identifier of the Barbican key encryption key (KEK). Enter a full URL, including
[Link]
Some URLs include the question mark (?) character. The question mark activates the
ONTAP command line active help. In order to enter a URL with a question mark, you need
to first disable active help with the command set -active-help false. Active help can
later be re-enabled with the command set -active-help true. Learn more in the
ONTAP command reference.
◦ -keystone-url is the URL of the OpenStack Keystone authorization host. Enter a full URL, including
[Link]
◦ -application-cred-id is the application credentials ID.
After entering this command, you will be prompted for the application credentials secret key. This
command creates an inactive Barbican KMS configuration.
The following example creates a new inactive Barbican KMS configuration named config1 for the
SVM svm1:
222
cluster1::> security key-manager external barbican create-config
-vserver svm1 -config-name config1 -keystone-url
[Link] -application-cred-id app123 -key-id
[Link]
You can use this command to switch between Barbican KMS configurations. If there is already an active
Barbican KMS configuration on the SVM, it will be made inactive and the new configuration will be
activated.
This command will provide the status of the active Barbican KMS configuration on the SVM or node. For
example, if the SVM svm1 on node node1 has an active Barbican KMS configuration, the following
command will return the status of that configuration:
Vserver: svm1
Node: node1
Category: service_reachability
Status: OK
Category: kms_wrapped_key_status
Status: OK
You can view and update the current settings of an active or inactive Barbican KMS configuration.
Steps
1. View the current Barbican KMS configurations for an SVM:
223
security key-manager external barbican show -vserver <svm_name>
The key ID, OpenStack Keystone URL, and application credentials ID are displayed for each Barbican
KMS configuration on the SVM.
This command updates the timeout and verification settings of the specified Barbican KMS configuration.
timeout determines the time in seconds ONTAP will wait for Barbican to respond before the connection
fails. The default timeout is ten seconds. verify and verify-host determine if the identity and
hostname respectively of Barbican host should be verified before connecting. By default, these parameters
are set to true. The vserver and config-name parameters are required. The other parameters are
optional.
After entering this command, you will be prompted for the new application credentials secret key.
4. If needed, restore a missing SVM key encryption key (KEK) for an active Barbican KMS configuration:
a. Restore a missing SVM KEK with security key-manager external barbican restore:
This command will restore the SVM KEK for the active Barbican KMS configuration by communicating
with the Barbican server.
b. Rekey the SVM KEK with security key-manager external barbican rekey-internal:
224
security key-manager external barbican rekey-internal -vserver
<svm_name>
This command generates a new SVM KEK for the specified SVM and re-wraps the volume encryption
keys with the new SVM KEK. The new SVM KEK will be protected by the active Barbican KMS
configuration.
Migrate keys between Barbican KMS and the Onboard Key Manager
You can migrate keys from Barbican KMS to the Onboard Key Manager (OKM), and vice-versa. To learn more
about the OKM, refer to Enable onboard key management in ONTAP 9.6 and later.
Steps
1. Set the privilege level to advanced:
svm_name is the name of the SVM with the Barbican KMS configuration.
You can disable an active Barbican KMS configuration with no encrypted volumes, and you can delete an
inactive Barbican KMS configuration.
Steps
1. Set the privilege level to advanced:
225
If NVE encrypted volumes exist on the SVM, you must decrypt them or migrate the keys before disabling
the Barbican KMS configuration. Activating a new Barbican KMS configuration does not require decrypting
NVE volumes or migrating keys, and will disable the current active Barbican KMS configuration.
Enable onboard key management for NVE in ONTAP 9.6 and later
You can use the Onboard Key Manager to secure the keys that the cluster uses to access
encrypted data. You must enable the Onboard Key Manager on each cluster that
accesses an encrypted volume or a self-encrypting disk.
About this task
You must run the security key-manager onboard sync command each time you add a node to the
cluster.
If you have a MetroCluster configuration, you must run the security key-manager onboard enable
command on the local cluster first, then run the security key-manager onboard sync command on the
remote cluster, using the same passphrase on each. When you run the security key-manager onboard
enable command from the local cluster and then synchronize on the remote cluster, you do not need to run
the enable command again from the remote cluster.
Learn more about security key-manager onboard enable and security key-manager onboard
sync in the ONTAP command reference.
By default, you are not required to enter the key manager passphrase when a node is rebooted. You can use
the cc-mode-enabled=yes option to require that users enter the passphrase after a reboot.
For NVE, if you set cc-mode-enabled=yes, volumes you create with the volume create and volume
move start commands are automatically encrypted. For volume create, you need not specify -encrypt
true. For volume move start, you need not specify -encrypt-destination true.
When configuring ONTAP data at rest encryption, to meet the requirements for Commercial Solutions for
Classified (CSfC) you must use NSE with NVE and ensure the Onboard Key Manager is enabled in Common
Criteria mode. Refer to the CSfC Solution Brief for more information on CSfC.
226
When the Onboard Key Manager is enabled in Common Criteria mode (cc-mode-
enabled=yes), system behavior is changed in the following ways:
• The system monitors for consecutive failed cluster passphrase attempts when operating in
Common Criteria mode.
If you fail to enter the correct cluster passphrase at boot, encrypted volumes are not
mounted. To correct this, you must reboot the node and enter the correct cluster
passphrase. Once booted, the system allows up to 5 consecutive attempts to correctly enter
the cluster passphrase in a 24-hour period for any command that requires the cluster
passphrase as a parameter. If the limit is reached (for example, you have failed to correctly
enter the cluster passphrase 5 times in a row) then you must either wait for the 24-hour
timeout period to elapse, or you must reboot the node, in order to reset the limit.
• System image updates use the NetApp RSA-3072 code signing certificate together with
SHA-384 code signed digests to check the image integrity instead of the usual NetApp RSA-
2048 code signing certificate and SHA-256 code signed digests.
The upgrade command verifies that the image contents have not been altered or corrupted
by checking various digital signatures. The image update process proceeds to the next step
if validation succeeds; otherwise, the image update fails. Learn more about cluster
image in the ONTAP command reference.
The Onboard Key Manager stores keys in volatile memory. Volatile memory contents are
cleared when the system is rebooted or halted. Under normal operating conditions, volatile
memory contents will be cleared within 30s when a system is halted.
Steps
1. Start the key manager setup:
Set cc-mode-enabled=yes to require that users enter the key manager passphrase after
a reboot. For NVE, if you set cc-mode-enabled=yes, volumes you create with the
volume create and volume move start commands are automatically encrypted. The
- cc-mode-enabled option is not supported in MetroCluster configurations. The
security key-manager onboard enable command replaces the security key-
manager setup command.
The following example starts the key manager setup command on cluster1 without requiring that the
passphrase be entered after every reboot:
227
cluster1::> security key-manager onboard enable
2. At the passphrase prompt, enter a passphrase between 32 and 256 characters, or for “cc-mode”, a
passphrase between 64 and 256 characters.
The security key-manager key query command replaces the security key-
manager query key command.
The following example verifies that authentication keys have been created for cluster1:
Learn more about security key-manager key query in the ONTAP command reference.
228
5. Optionally, convert plain text volumes to encrypted volumes.
The Onboard Key Manager must be fully configured before you convert the volumes. In a MetroCluster
environment, the Onboard Key Manager must be configured on both sites.
Whenever you configure the Onboard Key Manager passphrase, you should also back up the information
manually to a secure location outside the storage system for use in case of a disaster. See Back up onboard
key management information manually.
Related information
• security key-manager setup
Enable onboard key management for NVE in ONTAP 9.5 and earlier
You can use the Onboard Key Manager to secure the keys that the cluster uses to access
encrypted data. You must enable Onboard Key Manager on each cluster that accesses
an encrypted volume or a self-encrypting disk.
About this task
You must run the security key-manager setup command each time you add a node to the cluster.
• In ONTAP 9.5, you must run security key-manager setup on the local cluster and security key-
manager setup -sync-metrocluster-config yes on the remote cluster, using the same
passphrase on each.
• Prior to ONTAP 9.5, you must run security key-manager setup on the local cluster, wait
approximately 20 seconds, and then run security key-manager setup on the remote cluster, using
the same passphrase on each.
By default, you are not required to enter the key manager passphrase when a node is rebooted. Beginning with
ONTAP 9.4, you can use the -enable-cc-mode yes option to require that users enter the passphrase after
a reboot.
For NVE, if you set -enable-cc-mode yes, volumes you create with the volume create and volume
move start commands are automatically encrypted. For volume create, you need not specify -encrypt
true. For volume move start, you need not specify -encrypt-destination true.
After a failed passphrase attempt, you must reboot the node again.
229
• You must be a cluster administrator to perform this task.
• You must configure the MetroCluster environment before you configure the Onboard Key Manager.
Steps
1. Start the key manager setup:
Beginning with ONTAP 9.4, you can use the -enable-cc-mode yes option to require that
users enter the key manager passphrase after a reboot. For NVE, if you set -enable-cc
-mode yes, volumes you create with the volume create and volume move start
commands are automatically encrypted.
The following example starts setting up the key manager on cluster1 without requiring that the passphrase
be entered after every reboot:
...
230
cluster1::> security key-manager key show
Node: node1
Key Store: onboard
Key ID Used By
----------------------------------------------------------------
--------
<id_value> NSE-AK
<id_value> NSE-AK
Node: node2
Key Store: onboard
Key ID Used By
----------------------------------------------------------------
--------
<id_value> NSE-AK
<id_value> NSE-AK
Learn more about security key-manager key show in the ONTAP command reference.
The Onboard Key Manager must be fully configured before you convert the volumes. In a MetroCluster
environment, the Onboard Key Manager must be configured on both sites.
Whenever you configure the Onboard Key Manager passphrase, you should also back up the information
manually to a secure location outside the storage system for use in case of a disaster. See Back up onboard
key management information manually.
Related information
• security key-manager setup
You can use the Onboard Key Manager to secure the keys that the cluster uses to access
encrypted data. You must enable Onboard Key Manager on each cluster that accesses
an encrypted volume or a self-encrypting disk.
231
For ONTAP 9.5 and earlier, you must run the security key-manager setup command
each time you add a node to the cluster.
For ONTAP 9.6 and later, you must run the security key-manager sync command each
time you add a node to the cluster.
If you add a node to a cluster that has onboard key management configured, you will run this
command to refresh the missing keys.
• Beginning with ONTAP 9.6, you must run security key-manager onboard enable on the local
cluster first, then run security key-manager onboard sync on the remote cluster, using the same
passphrase on each.
Learn more about security key-manager onboard enable and security key-manager
onboard sync in the ONTAP command reference.
• In ONTAP 9.5, you must run security key-manager setup on the local cluster and security key-
manager setup -sync-metrocluster-config yes on the remote cluster, using the same
passphrase on each.
• Prior to ONTAP 9.5, you must run security key-manager setup on the local cluster, wait
approximately 20 seconds, and then run security key-manager setup on the remote cluster, using
the same passphrase on each.
By default, you are not required to enter the key manager passphrase when a node is rebooted. Beginning with
ONTAP 9.4, you can use the -enable-cc-mode yes option to require that users enter the passphrase after
a reboot.
For NVE, if you set -enable-cc-mode yes, volumes you create with the volume create and volume
move start commands are automatically encrypted. For volume create, you need not specify -encrypt
true. For volume move start, you need not specify -encrypt-destination true.
After a failed passphrase attempt, you must reboot the node again.
Related information
• security key-manager setup
Beginning with ONTAP 9.7, aggregate and volume encryption is enabled by default when
you have the VE license and onboard or external key management. For ONTAP 9.6 and
earlier, you can enable encryption on a new volume or on an existing volume. You must
have installed the VE license and enabled key management before you can enable
volume encryption. NVE is FIPS-140-2 level 1 compliant.
Beginning with ONTAP 9.7, newly created aggregates and volumes are encrypted by
232
default when you have the VE license and onboard or external key management.
Beginning with ONTAP 9.6, you can use aggregate-level encryption to assign keys to the
containing aggregate for the volumes to be encrypted.
About this task
You must use aggregate-level encryption if you plan to perform inline or background aggregate-level
deduplication. Aggregate-level deduplication is otherwise not supported by NVE.
An aggregate enabled for aggregate-level encryption is called an NAE aggregate (for NetApp Aggregate
Encryption). All volumes in an NAE aggregate must be encrypted with NAE or NVE encryption. With
aggregate-level encryption, volumes you create in the aggregate are encrypted with NAE encryption by default.
You can override the default to use NVE encryption instead.
Steps
1. Enable or disable aggregate-level encryption:
Learn more about storage aggregate modify in the ONTAP command reference.
233
cluster1::> storage aggregate create -aggregate aggr1 -encrypt-with
-aggr-key true
Learn more about storage aggregate create in the ONTAP command reference.
Learn more about storage aggregate show in the ONTAP command reference.
If you are using a KMIP server to store the encryption keys for a node, ONTAP automatically “pushes” an
encryption key to the server when you encrypt a volume.
You can use the volume create command to enable encryption on a new volume.
Learn more about the commands described in this procedure in the ONTAP command reference.
The procedure to enable encryption on a new volume in ONTAP varies based on the version of ONTAP you
are using and your specific configuration:
• Beginning with ONTAP 9.4, if you enable cc-mode when you set up the Onboard Key Manager, volumes
you create with the volume create command are automatically encrypted, whether or not you specify
-encrypt true.
• In ONTAP 9.6 and earlier releases, you must use -encrypt true with volume create commands to
enable encryption (provided you did not enable cc-mode).
• If you want to create an NAE volume in ONTAP 9.6, you must enable NAE at the aggregate level. Refer to
Enable aggregate-level encryption with the VE license for more details on this task.
234
• Beginning with ONTAP 9.7, newly created volumes are encrypted by default when you have the VE license
and onboard or external key management. By default, new volumes created in an NAE aggregate will be of
type NAE rather than NVE.
◦ In ONTAP 9.7 and later releases, if you add -encrypt true to the volume create command to
create a volume in an NAE aggregate, the volume will have NVE encryption instead of NAE. All
volumes in an NAE aggregate must be encrypted with either NVE or NAE.
Steps
1. Create a new volume and specify whether encryption is enabled on the volume. If the new volume is in an
NAE aggregate, by default the volume will be an NAE volume:
Result
If you are using a KMIP server to store the encryption keys for a node, ONTAP automatically "pushes" an
encryption key to the server when you encrypt a volume.
You can use either the volume move start or the volume encryption
conversion start command to enable encryption on an existing volume.
235
You can use the volume encryption conversion start command to enable encryption of an existing
volume "in place," without having to move the volume to a different location. Alternatively, you can use the
volume move start command.
Enable encryption on an existing volume with the volume encryption conversion start command
You can use the volume encryption conversion start command to enable encryption of an existing
volume "in place," without having to move the volume to a different location.
After you start a conversion operation, it must be completed. If you encounter a performance issue during the
operation, you can run the volume encryption conversion pause command to pause the operation,
and the volume encryption conversion resume command to resume the operation.
You cannot use volume encryption conversion start to convert a SnapLock volume.
Steps
1. Enable encryption on an existing volume:
Learn more about volume encryption conversion start in the ONTAP command reference.
The system creates an encryption key for the volume. The data on the volume is encrypted.
Learn more about volume encryption conversion show in the ONTAP command reference.
3. When the conversion operation is completed, verify that the volume is enabled for encryption:
236
cluster1::> volume show -is-encrypted true
Result
If you are using a KMIP server to store the encryption keys for a node, ONTAP automatically “pushes” an
encryption key to the server when you encrypt a volume.
Enable encryption on an existing volume with the volume move start command
You can use the volume move start command to enable encryption by moving an existing volume. You can
use the same aggregate or a different aggregate.
Steps
1. Move an existing volume and specify whether encryption is enabled on the volume:
237
An NAE volume to an NVE volume volume move start -vserver SVM_name -volume
volume_name -destination-aggregate aggregate_name
-encrypt-with-aggr-key false
Learn more about volume move start in the ONTAP command reference.
The following command converts a plaintext volume named vol1 to an NVE volume:
Assuming aggregate-level encryption is enabled on the destination, the following command converts an
NVE or plaintext volume named vol1 to an NAE volume:
The following command converts an NAE volume named vol2 to an NVE volume:
The following command converts an NAE volume named vol2 to a plaintext volume:
The following command converts an NVE volume named vol2 to a plaintext volume:
238
2. View the encryption type of cluster volumes:
Result
If you are using a KMIP server to store the encryption keys for a node, ONTAP automatically pushes an
encryption key to the server when you encrypt a volume.
Beginning with ONTAP 9.14.1, you can enable NetApp Volume Encryption (NVE) on a
storage VM (SVM) root volume. With NVE, the root volume is encrypted with a unique
key, enabling greater security on the SVM.
About this task
NVE on an SVM root volume can only be enabled after the SVM has been created.
239
• You must have enabled encryption with the Onboard Key Manager or an external key manager.
• You must be running ONTAP 9.14.1 or later.
• To migrate an SVM containing a root volume encrypted with NVE, you must convert the SVM root volume
to a plain text volume after the migration completes then re-encrypt the SVM root volume.
◦ If the destination aggregate of the SVM migration uses NAE, the root volume inherits NAE by default.
• If the SVM is in an SVM disaster recovery relationship:
◦ Encryption settings on a mirrored SVM are not copied to the destination. If you enable NVE on the
source or destination, you must separately enable NVE on the mirrored SVM root volume.
◦ If all aggregates in the destination cluster use NAE, the SVM root volume will use NAE.
Steps
You can enable NVE on an SVM root volume with the ONTAP CLI or System Manager.
CLI
You can enable NVE on the SVM root volume in-place or by moving the volume between aggregates.
2. Confirm the encryption succeeded. The volume show -encryption-type volume displays a list
of all volumes using NVE.
2. Confirm the volume move operation succeeded with the volume move show command. The
volume show -encryption-type volume displays a list of all volumes using NVE.
System Manager
1. Navigate to Storage > Volumes.
2. Next to the name of the SVM root volume you want to encrypt, select then Edit.
3. Under the Storage and Optimization heading, select Enable encryption.
4. Select Save.
Beginning with ONTAP 9.8, you can use NetApp Volume Encryption to protect the root
volume of your node.
240
About this task
This procedure applies to the node root volume. It does not apply to SVM root volumes. SVM
root volumes can be protected through aggregate-level encryption and, beginning with ONTAP
9.14.1, NVE.
Once root volume encryption begins, it must complete. You cannot pause the operation. Once encryption is
complete, you cannot assign a new key to the root volume and you cannot perform a secure-purge operation.
Steps
1. Encrypt the root volume:
3. When the conversion operation is complete, verify that the volume is encrypted:
A node authenticates itself to a self-encrypting drive using an authentication key retrieved from an external key
management server or Onboard Key Manager:
• The external key management server is a third-party system in your storage environment that serves keys
to nodes using the Key Management Interoperability Protocol (KMIP). It is a best practice to configure
241
external key management servers on a different storage system from your data.
• The Onboard Key Manager is a built-in tool that serves authentication keys to nodes from the same
storage system as your data.
You can use NetApp Volume Encryption with hardware-based encryption to “double encrypt” data on self-
encrypting drives.
When self-encrypting drives are enabled, the core dump is also encrypted.
If an HA pair is using encrypting SAS or NVMe drives (SED, NSE, FIPS), you must follow the
instructions in the topic Returning a FIPS drive or SED to unprotected mode for all drives within
the HA pair prior to initializing the system (boot options 4 or 9). Failure to do this may result in
future data loss if the drives are repurposed.
• Self-encrypting FIPS-certified SAS or NVMe drives are supported on all FAS and AFF systems. These
drives, called FIPS drives, conform to the requirements of Federal Information Processing Standard
Publication 140-2, level 2. The certified capabilities enable protections in addition to encryption, such as
preventing denial-of-service attacks on the drive. FIPS drives cannot be mixed with other types of drives on
the same node or HA pair.
• Beginning with ONTAP 9.6, self-encrypting NVMe drives that have not undergone FIPS testing are
supported on AFF A800, A320, and later systems. These drives, called SEDs, offer the same encryption
capabilities as FIPS drives, but can be mixed with non-encrypting drives on the same node or HA pair.
• All FIPS validated drives use a firmware cryptographic module that has been through FIPS validation. The
FIPS drive cryptographic module does not use any keys that are generated outside of the drive (the
authentication passphrase that is input to the drive is used by the drive’s firmware cryptographic module to
obtain a key encryption key).
Non-encrypting drives are drives that are not SEDs or FIPS drives.
If you are using NSE on a system with a Flash Cache module, you should also enable NVE or
NAE. NSE does not encrypt data that resides on the Flash Cache module.
Although it is less expensive and typically more convenient to use the onboard key manager, you should use
external key management if any of the following are true:
• Your organization’s policy requires a key management solution that uses a FIPS 140-2 Level 2 (or higher)
cryptographic module.
• You need a multi-cluster solution, with centralized management of encryption keys.
• Your business requires the added security of storing authentication keys on a system or in a location
different from the data.
Support details
The following table shows important hardware encryption support details. See the Interoperability Matrix for the
latest information about supported KMIP servers, storage systems, and disk shelves.
242
Resource or feature Support details
Non-homogeneous disk sets • FIPS drives cannot be mixed with other types of drives on the same
node or HA pair. Conforming HA pairs can coexist with non-conforming
HA pairs in the same cluster.
• SEDs can be mixed with non-encrypting drives on the same node or HA
pair.
10 Gb network interfaces Beginning with ONTAP 9.3, KMIP key management configurations support
10 Gb network interfaces for communications with external key
management servers.
Ports for communication with Beginning with ONTAP 9.3, you can use any storage controller port for
the key management server communication with the key management server. Otherwise, you should use
port e0M for communication with key management servers. Depending on
the storage controller model, certain network interfaces might not be
available during the boot process for communication with key management
servers.
You must configure key management services before the cluster can authenticate itself to the self-encrypting
drive. You can use an external key management server or an onboard key manager.
243
Related information
• NetApp Hardware Universe
• NetApp Volume Encryption and NetApp Aggregate Encryption
You can use one or more external key management servers to secure the keys that the
cluster uses to access encrypted data. An external key management server is a third-
party system in your storage environment that serves keys to nodes using the Key
Management Interoperability Protocol (KMIP).
NetApp Volume Encryption (NVE) can be implemented with Onboard Key Manager. In ONTAP 9.3 and later,
NVE can be implemented with external key management (KMIP) and Onboard Key Manager. Beginning with
ONTAP 9.11.1, you can configure multiple external key managers in a cluster. See Configure clustered key
servers.
The cluster and KMIP server use KMIP SSL certificates to verify each other’s identity and
establish an SSL connection. Before configuring the SSL connection with the KMIP
server, you must install the KMIP client SSL certificates for the cluster, and the SSL public
certificate for the root certificate authority (CA) of the KMIP server.
244
About this task
In an HA pair, both nodes must use the same public and private KMIP SSL certificates. If you connect multiple
HA pairs to the same KMIP server, all nodes in the HA pairs must use the same public and private KMIP SSL
certificates.
You can install the client and server certificates on the KMIP server before or after installing the
certificates on the cluster.
Steps
1. Install the SSL KMIP client certificates for the cluster:
You are prompted to enter the SSL KMIP public and private certificates.
2. Install the SSL public certificate for the root certificate authority (CA) of the KMIP server:
Related information
• security certificate install
Enable external key management for hardware-based encryption in ONTAP 9.6 and later
You can use one or more KMIP servers to secure the keys the cluster uses to access
encrypted data. You can connect up to four KMIP servers to a node. A minimum of two
servers is recommended for redundancy and disaster recovery.
Beginning with ONTAP 9.11.1, you can add up to 3 secondary key servers per primary key server to create a
clustered key server. For more information, see Configure clustered external key servers.
245
Steps
1. Configure key manager connectivity for the cluster:
The following command enables external key management for cluster1 with three external key servers.
The first key server is specified using its hostname and port, the second is specified using an IP address
and the default port, and the third is specified using an IPv6 address and port:
246
cluster1::> security key-manager external show-status
Related information
• security key-manager setup
• security key-manager external
Enable external key management for hardware-based encryption in ONTAP 9.5 and earlier
You can use one or more KMIP servers to secure the keys the cluster uses to access
encrypted data. You can connect up to four KMIP servers to a node. A minimum of two
servers is recommended for redundancy and disaster recovery.
About this task
ONTAP configures KMIP server connectivity for all nodes in the cluster.
Steps
1. Configure key manager connectivity for cluster nodes:
247
In a MetroCluster environment, you must run this command on both clusters. Learn more
about security key-manager setup in the ONTAP command reference.
Learn more about the commands described in this procedure in the ONTAP command reference.
An external key manager must be fully configured before you convert the volumes. In a MetroCluster
environment, an external key manager must be configured on both sites.
Beginning with ONTAP 9.11.1, you can configure connectivity to clustered external key
248
management servers on an SVM. With clustered key servers, you can designate primary
and secondary key servers on a SVM. When registering keys, ONTAP will first attempt to
access a primary key server before sequentially attempting to access secondary servers
until the operation completes successfully, preventing duplication of keys.
External key servers can be used for NSE, NVE, NAE, and SED keys. An SVM can support up to four primary
external KMIP servers. Each primary server can support up to three secondary key servers.
The configuration procedure depends on whether or not you have configured a primary key server.
You can modify external key servers clusters by changing the status (primary or secondary) of particular key
servers, add and removing secondary key servers, or by changing the access order of secondary key servers.
249
Convert primary and secondary key servers
To convert a primary key server into a secondary key server, you must first remove it from the SVM with the
security key-manager external remove-servers command.
To convert a secondary key server into a primary key server, you must first remove the secondary key server
from its existing primary key server. See Modify secondary key servers. If you convert a secondary key server
to a primary server while removing an existing key, attempting to add a new server before completing the
removal and conversion can result in the the duplication of keys.
Secondary key servers are managed with the -secondary-key-servers parameter of the security
key-manager external modify-server command. The -secondary-key-servers parameter
accepts a comma-separated list. The specified order of the secondary key servers in the list determines the
access sequence for the secondary key servers. The access order can be modified by running the command
security key-manager external modify-server with the secondary key servers entered in a
different sequence.
To remove a secondary key server, the -secondary-key-servers arguments should include the key
servers you want to keep while omitting the one to be removed. To remove all secondary key servers, use the
argument -, signifying none.
Related information
• security key-manager external
You can use the security key-manager key create command to create the
authentication keys for a node and store them on the configured KMIP servers.
About this task
If your security setup requires you to use different keys for data authentication and FIPS 140-2 authentication,
you should create a separate key for each. If that’s not the case, you can use the same authentication key for
FIPS compliance that you use for data access.
• This command is not supported when Onboard Key Manager is enabled. However, two authentication keys
are created automatically when Onboard Key Manager is enabled. The keys can be viewed with the
following command:
• You receive a warning if the configured key management servers are already storing more than 128
authentication keys.
• You can use the security key-manager key delete command to delete any unused keys. The
security key-manager key delete command fails if the given key is currently in use by ONTAP.
(You must have privileges greater than admin to use this command.)
250
In a MetroCluster environment, before you delete a key, you must make sure that the key is
not in use on the partner cluster. You can use the following commands on the partner cluster
to check that the key is not in use:
Steps
1. Create the authentication keys for cluster nodes:
Setting prompt-for-key=true causes the system to prompt the cluster administrator for
the passphrase to use when authenticating encrypted drives. Otherwise, the system
automatically generates a 32-byte passphrase. The security key-manager key
create command replaces the security key-manager create-key command.
Learn more about security key-manager key create in the ONTAP command
reference.
The following example creates the authentication keys for cluster1, automatically generating a 32-byte
passphrase:
The security key-manager key query command replaces the security key-
manager query key command.
The key ID displayed in the output is an identifier used to refer to the authentication key. It is
not the actual authentication key or the data encryption key.
The following example verifies that authentication keys have been created for cluster1:
251
cluster1::> security key-manager key query
Vserver: cluster1
Key Manager: external
Node: node1
Vserver: cluster1
Key Manager: external
Node: node2
Learn more about security key-manager key query in the ONTAP command reference.
You can use the security key-manager create-key command to create the
authentication keys for a node and store them on the configured KMIP servers.
About this task
If your security setup requires you to use different keys for data authentication and FIPS 140-2 authentication,
you should create a separate key for each. If that is not the case, you can use the same authentication key for
FIPS compliance that you use for data access.
You can use the key management server software to delete any unused keys, then run the command
again.
252
Steps
1. Create the authentication keys for cluster nodes:
Learn more about security key-manager create-key in the ONTAP command reference.
The key ID displayed in the output is an identifier used to refer to the authentication key. It is
not the actual authentication key or the data encryption key.
Node: cluster1-01
Creating authentication key...
Authentication key creation successful.
Key ID: <id_value>
Node: cluster1-01
Key manager restore operation initialized.
Successfully restored key information.
Node: cluster1-02
Key manager restore operation initialized.
Successfully restored key information.
Learn more about security key-manager query in the ONTAP command reference.
The following example verifies that authentication keys have been created for cluster1:
253
cluster1::> security key-manager query
Node: cluster1-01
Key Manager: [Link]
Server Status: available
Node: cluster1-02
Key Manager: [Link]
Server Status: available
Assign a data authentication key to a FIPS drive or SED with ONTAP external key management
You can use the storage encryption disk modify command to assign a data
authentication key to a FIPS drive or SED. Cluster nodes use this key to lock or unlock
encrypted data on the drive.
About this task
A self-encrypting drive is protected from unauthorized access only if its authentication key ID is set to a non-
default value. The manufacturer secure ID (MSID), which has key ID 0x0, is the standard default value for SAS
drives. For NVMe drives, the standard default value is a null key, represented as a blank key ID. When you
assign the key ID to a self-encrypting drive, the system changes its authentication key ID to a non-default
value.
Steps
1. Assign a data authentication key to a FIPS drive or SED:
Learn more about storage encryption disk modify in the ONTAP command reference.
254
You can use the security key-manager query -key-type NSE-AK command to
view key IDs.
Learn more about storage encryption disk show in the ONTAP command reference.
You can use the Onboard Key Manager to authenticate cluster nodes to a FIPS drive or
SED. The Onboard Key Manager is a built-in tool that serves authentication keys to
nodes from the same storage system as your data. The Onboard Key Manager is FIPS-
140-2 level 1 compliant.
You can use the Onboard Key Manager to secure the keys that the cluster uses to access encrypted data. You
must enable Onboard Key Manager on each cluster that accesses an encrypted volume or a self-encrypting
disk.
Learn more about security key-manager onboard enable and security key-manager onboard
sync in the ONTAP command reference.
255
By default, you are not required to enter the key manager passphrase when a node is rebooted. Except in
MetroCluster, you can use the cc-mode-enabled=yes option to require that users enter the passphrase after
a reboot.
When the Onboard Key Manager is enabled in Common Criteria mode (cc-mode-
enabled=yes), system behavior is changed in the following ways:
• The system monitors for consecutive failed cluster passphrase attempts when operating in
Common Criteria mode.
If NetApp Storage Encryption (NSE) is enabled and you fail to enter the correct cluster
passphrase at boot, the system cannot authenticate to its drives and automatically reboots.
To correct this, you must enter the correct cluster passphrase at the boot prompt. Once
booted, the system allows up to 5 consecutive attempts to correctly enter the cluster
passphrase in a 24-hour period for any command that requires the cluster passphrase as a
parameter. If the limit is reached (for example, you have failed to correctly enter the cluster
passphrase 5 times in a row) then you must either wait for the 24-hour timeout period to
elapse, or you must reboot the node, in order to reset the limit.
• System image updates use the NetApp RSA-3072 code signing certificate together with
SHA-384 code signed digests to check the image integrity instead of the usual NetApp RSA-
2048 code signing certificate and SHA-256 code signed digests.
The upgrade command verifies that the image contents have not been altered or corrupted
by checking various digital signatures. The image update process proceeds to the next step
if validation succeeds; otherwise, the image update fails. Learn more about cluster
image in the ONTAP command reference.
The Onboard Key Manager stores keys in volatile memory. Volatile memory contents are
cleared when the system is rebooted or halted. Under normal operating conditions, volatile
memory contents will be cleared within 30s when a system is halted.
Steps
1. Start the key manager setup command:
Set cc-mode-enabled=yes to require that users enter the key manager passphrase after
a reboot. The - cc-mode-enabled option is not supported in MetroCluster configurations.
The security key-manager onboard enable command replaces the security
key-manager setup command.
256
The following example starts the key manager setup command on cluster1 without requiring that the
passphrase be entered after every reboot:
2. At the passphrase prompt, enter a passphrase between 32 and 256 characters, or for “cc-mode”, a
passphrase between 64 and 256 characters.
The security key-manager key query command replaces the security key-
manager query key command.
The following example verifies that authentication keys have been created for cluster1:
257
cluster1::> security key-manager key query
Vserver: cluster1
Key Manager: onboard
Node: node1
Vserver: cluster1
Key Manager: onboard
Node: node2
Learn more about security key-manager key query in the ONTAP command reference.
All key management information is automatically backed up to the replicated database (RDB) for the cluster.
You should also back up the information manually for use in case of a disaster.
Related information
• security key-manager setup
You can use the Onboard Key Manager to authenticate cluster nodes to a FIPS drive or
SED. The Onboard Key Manager is a built-in tool that serves authentication keys to
nodes from the same storage system as your data. The Onboard Key Manager is FIPS-
140-2 level 1 compliant.
You can use the Onboard Key Manager to secure the keys that the cluster uses to access encrypted data. You
must enable Onboard Key Manager on each cluster that accesses an encrypted volume or a self-encrypting
disk.
258
If you have a MetroCluster configuration, review these guidelines:
• In ONTAP 9.5, you must run security key-manager setup on the local cluster and security key-
manager setup -sync-metrocluster-config yes on the remote cluster, using the same
passphrase on each.
• Prior to ONTAP 9.5, you must run security key-manager setup on the local cluster, wait
approximately 20 seconds, and then run security key-manager setup on the remote cluster, using
the same passphrase on each.
By default, you are not required to enter the key manager passphrase when a node is rebooted. Beginning with
ONTAP 9.4, you can use the -enable-cc-mode yes option to require that users enter the passphrase after
a reboot.
For NVE, if you set -enable-cc-mode yes, volumes you create with the volume create and volume
move start commands are automatically encrypted. For volume create, you need not specify -encrypt
true. For volume move start, you need not specify -encrypt-destination true.
After a failed passphrase attempt, you must reboot the node again.
Steps
1. Start the key manager setup:
Beginning with ONTAP 9.4, you can use the -enable-cc-mode yes option to require that
users enter the key manager passphrase after a reboot. For NVE, if you set -enable-cc
-mode yes, volumes you create with the volume create and volume move start
commands are automatically encrypted.
The following example starts setting up the key manager on cluster1 without requiring that the passphrase
be entered after every reboot:
259
cluster1::> security key-manager setup
Welcome to the key manager setup wizard, which will lead you through
the steps to add boot information.
...
Learn more about security key-manager key show in the ONTAP command reference.
Node: node1
Key Store: onboard
Key ID Used By
----------------------------------------------------------------
--------
<id_value> NSE-AK
<id_value> NSE-AK
Node: node2
Key Store: onboard
Key ID Used By
----------------------------------------------------------------
--------
<id_value> NSE-AK
<id_value> NSE-AK
260
After you finish
All key management information is automatically backed up to the replicated database (RDB) for the cluster.
Whenever you configure the Onboard Key Manager passphrase, you should also back up the information
manually to a secure location outside the storage system for use in case of a disaster. See Back up onboard
key management information manually.
Related information
• security key-manager setup
Assign a data authentication key to a FIPS drive or SED with ONTAP onboard key management
You can use the storage encryption disk modify command to assign a data
authentication key to a FIPS drive or SED. Cluster nodes use this key to access data on
the drive.
About this task
A self-encrypting drive is protected from unauthorized access only if its authentication key ID is set to a non-
default value. The manufacturer secure ID (MSID), which has key ID 0x0, is the standard default value for SAS
drives. For NVMe drives, the standard default value is a null key, represented as a blank key ID. When you
assign the key ID to a self-encrypting drive, the system changes its authentication key ID to a non-default
value.
Steps
1. Assign a data authentication key to a FIPS drive or SED:
Learn more about storage encryption disk modify in the ONTAP command reference.
You can use the security key-manager key query -key-type NSE-AK command
to view key IDs.
Learn more about security key-manager key query in the ONTAP command reference.
261
Learn more about storage encryption disk show in the ONTAP command reference.
You can use the storage encryption disk modify command with the -fips-key
-id option to assign a FIPS 140-2 authentication key to a FIPS drive. Cluster nodes use
this key for drive operations other than data access, such as preventing denial-of-service
attacks on the drive.
About this task
Your security setup may require you to use different keys for data authentication and FIPS 140-2
authentication. If that is not the case, you can use the same authentication key for FIPS compliance that you
use for data access.
Steps
1. You must first ensure you have assigned a data authentication key. This can be done with using an
external key manager or an onboard key manager. Verify the key is assigned with the command storage
encryption disk show.
2. Assign a FIPS 140-2 authentication key to SEDs:
You can use the security key-manager query command to view key IDs.
262
3. Verify that the authentication key has been assigned:
Learn more about storage encryption disk show in the ONTAP command reference.
You can use the security config modify command with the -is-fips-enabled
option to enable cluster-wide FIPS-compliant mode for data in flight. Doing so forces the
cluster to use OpenSSL in FIPS mode when connecting to KMIP servers.
About this task
When you enable cluster-wide FIPS-compliant mode, the cluster will automatically use only TLS1.2 and FIPS-
validated cipher suites. Cluster-wide FIPS-compliant mode is disabled by default.
You must reboot cluster nodes manually after modifying the cluster-wide security configuration.
Steps
1. Set the privilege level to advanced:
Learn more about security config show in the ONTAP command reference.
263
cluster1::> security config show
Cluster Cluster
Security
Interface FIPS Mode Supported Protocols Supported Ciphers Config
Ready
--------- ---------- ----------------------- -----------------
----------------
SSL false TLSv1.2, TLSv1.1, TLSv1 ALL:!LOW: yes
!aNULL:!EXP:
!eNULL
Learn more about security config modify in the ONTAP command reference.
You can use the volume move start command to move and unencrypt volume data.
Steps
264
1. Move an existing encrypted volume and unencrypt the data on the volume:
Learn more about volume move start in the ONTAP command reference.
The following command moves an existing volume named vol1 to the destination aggregate aggr3 and
unencrypts the data on the volume:
The system deletes the encryption key for the volume. The data on the volume is unencrypted.
You can use the volume move start command to move an encrypted volume. The
moved volume can reside on the same aggregate or a different aggregate.
About this task
The move will fail if the destination node or destination volume does not support volume encryption.
The -encrypt-destination option for volume move start defaults to true for encrypted volumes. The
requirement to specify you do not want the destination volume encrypted ensures that you do not inadvertently
unencrypt the data on the volume.
Steps
1. Move an existing encrypted volume and leave the data on the volume encrypted:
265
volume move start -vserver SVM_name -volume volume_name -destination-aggregate
aggregate_name
Learn more about volume move start in the ONTAP command reference.
The following command moves an existing volume named vol1 to the destination aggregate aggr3 and
leaves the data on the volume encrypted:
You can use the volume move command to encrypt an existing volume, move an
encrypted volume, or unencrypt a volume. Cluster administrators can run volume move
command themselves, or they can delegate the authority to run the command to SVM
administrators.
About this task
By default, SVM administrators are assigned the vsadmin role, which does not include the authority to move
volumes. You must assign the vsadmin-volume role to SVM administrators to enable them to run the
volume move command.
Step
1. Delegate authority to run the volume move command:
The following command grants the SVM administrator authority to run the volume move command.
266
cluster1::>security login modify -vserver engData -user-or-group-name
SVM-admin -application ssh -authmethod domain -role vsadmin-volume
Learn more about security login modify in the ONTAP command reference.
Change the encryption key for a volume with the volume encryption rekey start command in ONTAP
It is a security best practice to change the encryption key for a volume periodically.
Beginning with ONTAP 9.3, you can use the volume encryption rekey start
command to change the encryption key.
About this task
Once you start a rekey operation, it must complete. There is no returning to the old key. If you encounter a
performance issue during the operation, you can run the volume encryption rekey pause command to
pause the operation, and the volume encryption rekey resume command to resume the operation.
Until the rekey operation finishes, the volume will have two keys. New writes and their corresponding reads will
use the new key. Otherwise, reads will use the old key.
You cannot use volume encryption rekey start to rekey a SnapLock volume.
Steps
1. Change an encryption key:
The following command changes the encryption key for vol1 on SVMvs1:
Learn more about volume encryption rekey show in the ONTAP command reference.
3. When the rekey operation is complete, verify that the volume is enabled for encryption:
267
volume show -is-encrypted true
Change the encryption key for a volume with the ONTAP volume move start command
It is a security best practice to change the encryption key for a volume periodically. You
can use the volume move start command to change the encryption key. The moved
volume can reside on the same aggregate or a different aggregate.
About this task
You cannot use volume move start to rekey a SnapLock or FlexGroup volume.
Steps
1. Move an existing volume and change the encryption key:
Learn more about volume move start in the ONTAP command reference.
The following command moves an existing volume named vol1 to the destination aggregate aggr2 and
changes the encryption key:
A new encryption key is created for the volume. The data on the volume remains encrypted.
268
The following command displays the encrypted volumes on cluster1:
You can rotate authentication keys when using NetApp Storage Encryption (NSE).
About this task
Rotating authentication keys in an NSE environment is supported if you are using External Key Manager
(KMIP).
Rotating authentication keys in an NSE environment is not supported for Onboard Key Manager
(OKM).
Steps
1. Use the security key-manager create-key command to generate new authentication keys.
You need to generate new authentication keys before you can change the authentication keys.
2. Use the storage encryption disk modify -disk * -data-key-id command to change the
authentication keys.
You can use the volume delete command to delete an encrypted volume.
Step
1. Delete an encrypted volume:
269
Enter yes when you are prompted to confirm deletion.
The system deletes the encryption key for the volume after 24 hours.
Use volume delete with the -force true option to delete a volume and destroy the corresponding
encryption key immediately. This command requires advanced privileges.
Learn more about volume delete in the ONTAP command reference.
Beginning with ONTAP 9.4, you can use secure purge to non-disruptively scrub data on
NVE-enabled volumes. Scrubbing data on an encrypted volume ensures that it cannot be
recovered from the physical media, for example, in cases of “spillage,” where data traces
may have been left behind when blocks were overwritten, or for securely deleting a
vacating tenant’s data.
Secure purge works only for previously deleted files on NVE-enabled volumes. You cannot scrub an
unencrypted volume. You must use KMIP servers to serve keys, not the onboard key manager.
• Volumes created in an aggregate enabled for NetApp Aggregate Encryption (NAE) do not support secure
purge.
• Secure purge works only for previously deleted files on NVE-enabled volumes.
• You cannot scrub an unencrypted volume.
• You must use KMIP servers to serve keys, not the onboard key manager.
270
ONTAP 9.8 and later
• Secure purge is supported by MetroCluster and FlexGroup.
• If the volume being purged is the source of a SnapMirror relationship, you do not have to break the
SnapMirror relationship to perform a secure purge.
• The re-encryption method is different for volumes using SnapMirror data protection versus volumes
not using SnapMirror data protection (DP) or those using SnapMirror extended data protection..
◦ By default, volumes using SnapMirror data protection (DP) mode re-encrypt data using the
volume move re-encryption method.
◦ By default, volumes not using SnapMirror data protection or volumes using SnapMirror extended
data protection (XDP) mode use the in-place re-encryption method.
◦ These defaults can be changed using the secure purge re-encryption-method
[volume-move|in-place-rekey] command.
• By default, all snapshots in FlexVol volumes are automatically deleted during the secure purge
operation. By default, Snapshots in FlexGroup volumes and volumes using SnapMirror data
protection are not automatically deleted during the secure purge operation. These defaults can be
changed using the secure purge delete-all-snapshots [true|false] command.
If there are busy snapshots in the volume, you must release the snapshots before you can purge the
volume. For example, you may need to split a FlexClone volume from its parent.
• Successfully invoking the secure-purge feature triggers a volume move that re-encrypts the
remaining, unpurged data with a new key.
The moved volume remains on the current aggregate. The old key is automatically destroyed,
ensuring that purged data cannot be recovered from the storage media.
Beginning with ONTAP 9.4, you can use secure-purge to non-disruptively “scrub” data on
NVE-enabled volumes.
About this task
Secure-purge may take from several minutes to many hours to complete, depending on the amount of data in
the deleted files. You can use the volume encryption secure-purge show command to view the status
of the operation. You can use the volume encryption secure-purge abort command to terminate the
operation.
271
In order to do a secure purge on a SAN host, you must delete the entire LUN containing the files
you want to purge, or you must be able to punch holes in the LUN for the blocks that belong to
the files you want purge. If you cannot delete the LUN or your host operating system does not
support punching holes in the LUN, you cannot perform a secure purge.
Steps
1. Delete the files or the LUN you want to securely purge.
◦ On a NAS client, delete the files you want to securely purge.
◦ On a SAN host, delete the LUN you want to securely purge or punch holes in the LUN for the blocks
that belong to the files you want to purge.
2. On the storage system, change to advanced privilege level:
3. If the files you want to securely purge are in snapshots, delete the snapshots:
The following command securely purges the deleted files on vol1 on SVMvs1:
Scrub data from an encrypted ONTAP volume with an SnapMirror asynchronous relationship
Beginning with ONTAP 9.8, you can use a secure purge to non-disruptively “scrub” data
on NVE-enabled volumes with an SnapMirror asynchronous relationship.
Before you begin
• You must be a cluster administrator to perform this task.
• Advanced privileges are required for this task.
272
of the operation. You can use the volume encryption secure-purge abort command to terminate the
operation.
In order to do a secure purge on a SAN host, you must delete the entire LUN containing the files
you want to purge, or you must be able to punch holes in the LUN for the blocks that belong to
the files you want purge. If you cannot delete the LUN or your host operating system does not
support punching holes in the LUN, you cannot perform a secure purge.
Steps
1. On the storage system, switch to the advanced privilege level:
4. If the files you want to securely purge are in snapshots, delete the snapshots:
5. If the files you want to securely purge are in the base snapshots, do the following:
a. Create a snapshot on the destination volume in the SnapMirror asynchronous relationship:
Repeat this step for each volume in the SnapMirror asynchronous relationship.
c. Repeat steps (a) and (b) equal to the number of base snapshots plus one.
For example, if you have two base snapshots, you should repeat steps (a) and (b) three times.
273
6. Securely purge the deleted files:
The following command securely purges the deleted files on “vol1” on SVM “vs1”:
Related information
• snapmirror update
Scrub data from an encrypted ONTAP volume with a SnapMirror synchronous relationship
Beginning with ONTAP 9.8, you can use a secure purge to non-disruptively "scrub" data
on NVE-enabled volumes with a SnapMirror synchronous relationship.
About this task
A secure purge might take from several minutes to many hours to complete, depending on the amount of data
in the deleted files. You can use the volume encryption secure-purge show command to view the
status of the operation. You can use the volume encryption secure-purge abort command to
terminate the operation.
In order to do a secure purge on a SAN host, you must delete the entire LUN containing the files
you want to purge, or you must be able to punch holes in the LUN for the blocks that belong to
the files you want purge. If you cannot delete the LUN or your host operating system does not
support punching holes in the LUN, you cannot perform a secure purge.
Steps
1. On the storage system, change to advanced privilege level:
274
volume encryption secure-purge start -vserver <SVM_name> -volume <volume_name>
-prepare true
Repeat this step for the other volume in your SnapMirror synchronous relationship.
4. If the files you want to securely purge are in snapshots, delete the snapshots:
5. If the secure purge file is in the base or common snapshots, update the SnapMirror to move the common
snapshot forward:
There are two common snapshots, so this command must be issued twice.
6. If the secure purge file is in the application-consistent snapshot, delete the snapshot on both volumes in
the SnapMirror synchronous relationship:
The following command securely purges the deleted files on “vol1” on SVM “vs1”.
Related information
• snapmirror update
275
• Advanced privileges are required for this task.
Steps
1. Change to advanced privilege level:
The following ONTAP 9.6 command lets you change the onboard key management passphrase for
cluster1:
If the specified “cc-mode” passphrase is less than 64 characters, there is a five-second delay before the
key manager setup operation displays the passphrase prompt again.
• In ONTAP 9.5 and earlier, you must run security key-manager update-passphrase with the same
passphrase on the partner cluster.
• In ONTAP 9.6 and later, you are prompted to run security key-manager onboard sync with the
same passphrase on the partner cluster.
You should copy the onboard key management passphrase to a secure location outside the storage system for
future use.
You should back up key management information manually whenever you change the onboard key
276
management passphrase.
Related information
• Backing up onboard key management information manually
• security key-manager onboard update-passphrase
• security key-manager update-passphrase
You should copy onboard key management information to a secure location outside the
storage system whenever you configure the Onboard Key Manager passphrase.
Before you begin
• You must be a cluster administrator to perform this task.
• Advanced privileges are required for this task.
Steps
1. Change to advanced privilege level:
The following 9.6 command displays the key management backup information for cluster1:
277
cluster1::> security key-manager onboard show-backup
--------------------------BEGIN BACKUP--------------------------
TmV0QXBwIEtleSBCbG9iAAEAAAAEAAAAcAEAAAAAAADuD+byAAAAACEAAAAAAAAA
QAAAAAAAAABvOlH0AAAAAMh7qDLRyH1DBz12piVdy9ATSFMT0C0TlYFss4PDjTaV
dzRYkLd1PhQLxAWJwOIyqSr8qY1SEBgm1IWgE5DLRqkiAAAAAAAAACgAAAAAAAAA
3WTh7gAAAAAAAAAAAAAAAAIAAAAAAAgAZJEIWvdeHr5RCAvHGclo+wAAAAAAAAAA
IgAAAAAAAAAoAAAAAAAAAEOTcR0AAAAAAAAAAAAAAAACAAAAAAAJAGr3tJA/LRzU
QRHwv+1aWvAAAAAAAAAAACQAAAAAAAAAgAAAAAAAAACdhTcvAAAAAJ1PXeBfml4N
BsSyV1B4jc4A7cvWEFY6lLG6hc6tbKLAHZuvfQ4rIbYAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABOZXRBcHAgS2V5IEJsb2IA
AQAAAAMAAAAYAQAAAAAAADA5/ccAAAAAIgAAAAAAAAAoAAAAAAAAAEOTcR0AAAAA
AAAAAAAAAAACAAAAAAAJAGr3tJA/LRzUQRHwv+1aWvAAAAAAAAAAACIAAAAAAAAA
KAAAAAAAAACI8z/bAAAAAAAAAAAAAAAAAgAAAAAAAQAbxMcI4qiaMS4Uts5tTUnU
AAAAAAAAAAAkAAAAAAAAAIAAAAAAAAAAqwxTcwAAAACkiwBAI3YeeV3jMFg5Smyj
LSgoK/qc8FAmMMcrRXY6uriulnL0WPB/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAE5ldEFwcCBLZXkgQmxvYgABAAAAAwAAABgBAAAAAAAA
1cNLLwAAAAAiAAAAAAAAACgAAAAAAAAAQ5NxHQAAAAAAAAAAAAAAAAIAAAAAAAkA
ave0kD8tHNRBEfC/7Vpa8AAAAAAAAAAAIgAAAAAAAAAoAAAAAAAAAJ4/cQsAAAAA
AAAAAAAAAAACAAAAAAABAF6JCZch+IF+ZeOutovhv8oAAAAAAAAAACQAAAAAAAAA
gAAAAAAAAAAN3Zq7AAAAALO7qD20+H8TuGgSauEHoqAyWcLv4uA0m2rrH4nPQM0n
rDRYRa9SCv8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
---------------------------END BACKUP---------------------------
3. Copy the backup information to a secure location outside the storage system for use in case of a disaster.
Related information
• security key-manager onboard show-backup
• security key-manager backup show
The procedure you follow to restore your onboard key management encryption keys
varies based on your version of ONTAP.
Before you begin
278
• If you are using NSE with an external key management (KMIP) server, you must have deleted the external
key manager database. For more information, see Transition from external key management to ONTAP
onboard key management.
• You must be a cluster administrator to perform this task.
If you are using NSE on a system with a Flash Cache module, you should also enable NVE or
NAE. NSE does not encrypt data that resides on the Flash Cache module.
If you are running ONTAP 9.8 or later and your root volume is encrypted, follow the procedure
for ONTAP 9.8 or later with encrypted root volume.
Learn more about security key-manager key query in the ONTAP command reference.
The following ONTAP 9.6 command synchronize the keys in the onboard key hierarchy:
Learn more about security key-manager onboard sync in the ONTAP command reference.
3. At the passphrase prompt, enter the onboard key management passphrase for the cluster.
If you are running ONTAP 9.8 and later, and your root volume is encrypted, you must set an onboard key
management recovery passphrase with the boot menu. This process is also necessary if you do a boot media
replacement.
1. Boot the node to the boot menu and select option (10) Set onboard key management recovery
secrets.
2. Enter y to use this option.
3. At the prompt, enter the onboard key management passphrase for the cluster.
4. At the prompt, enter the backup key data.
279
ONTAP 9.5 and earlier
If you are running ONTAP 9.6 or 9.7, or if you are running ONTAP 9.8 or later and your root volume is not
encrypted, skip this step.
Learn more about security key-manager setup in the ONTAP command reference.
4. At the passphrase prompt, enter the onboard key management passphrase for the cluster.
You can manually restore external key management encryption keys and push them to a
different node. You might want to do this if you are restarting a node that was down
temporarily when you created the keys for the cluster.
About this task
In ONTAP 9.6 and later, you can use the security key-manager key query -node node_name
command to verify if your key needs to be restored.
In ONTAP 9.5 and earlier, you can use the security key-manager key show command to verify if your
key needs to be restored.
If you are using NSE on a system with a Flash Cache module, you should also enable NVE or
NAE. NSE does not encrypt data that resides on the Flash Cache module.
Learn more about security key-manager key query in the ONTAP command reference.
Steps
1. If you are running ONTAP 9.8 or later and your root volume is encrypted, do the following:
If you are running ONTAP 9.7 or earlier, or if you are running ONTAP 9.8 or later and your root volume is
not encrypted, skip this step.
280
boot_ontap
b. Boot the node to the boot menu and select option (11) Configure node for external key
management.
c. Follow prompts to enter management certificate.
After all management certificate information is entered, the system returns to the boot menu.
ONTAP 9.5 and earlier security key-manager restore -node node -address
IP_address -key-id key_id -key-tag key_tag
The following ONTAP 9.6 command restores external key management authentication keys to all nodes in
cluster1:
Related information
• security key-manager external restore
All SSL certificates have an expiration date. You must update your certificates before they
expire to prevent loss of access to authentication keys.
Before you begin
• You must have obtained the replacement public certificate and private key for the cluster (KMIP client
certificate).
• You must have obtained the replacement public certificate for the KMIP server (KMIP server-ca certificate).
• You must be a cluster or SVM administrator to perform this task.
• If you are replacing the KMIP SSL certificates in a MetroCluster environment, you must install the same
replacement KMIP SSL certificate on both clusters.
281
You can install the replacement client and server certificates on the KMIP server before or after
installing the certificates on the cluster.
Steps
1. Install the new KMIP server-ca certificate:
3. Update the key manager configuration to use the newly installed certificates:
If you are running ONTAP 9.6 or later in a MetroCluster environment, and you want to modify the key
manager configuration on the admin SVM, you must run the command on both clusters in the
configuration.
Updating the key manager configuration to use the newly installed certificates will return an error
if the public/private keys of the new client certificate are different from the keys previously
installed. See the Knowledge Base article The new client certificate public or private keys are
different from the existing client certificate for instructions on how to override this error.
Related information
• security certificate install
• security key-manager external modify
You can replace a FIPS drive or SED the same way you replace an ordinary disk. Make
sure to assign new data authentication keys to the replacement drive. For a FIPS drive,
you may also want to assign a new FIPS 140-2 authentication key.
If an HA pair is using encrypting SAS or NVMe drives (SED, NSE, FIPS), you must follow the
instructions in the topic Returning a FIPS drive or SED to unprotected mode for all drives within
the HA pair prior to initializing the system (boot options 4 or 9). Failure to do this may result in
future data loss if the drives are repurposed.
Steps
1. Ensure that the disk has been marked as failed:
282
Learn more about storage disk show in the ONTAP command reference.
2. Remove the failed disk and replace it with a new FIPS drive or SED, following the instructions in the
hardware guide for your disk shelf model.
3. Assign ownership of the newly replaced disk:
Learn more about storage disk assign in the ONTAP command reference.
Learn more about storage encryption disk show in the ONTAP command reference.
283
5. Assign the data authentication keys to the FIPS drive or SED.
Assigning a data authentication key to a FIPS drive or SED (external key management)
If you want to make data on a FIPS drive or SED permanently inaccessible, but keep the
drive’s unused space available for new data, you can sanitize the disk. If you want to
make data permanently inaccessible and you do not need to reuse the drive, you can
destroy it.
• Disk sanitization
When you sanitize a self-encrypting drive, the system changes the disk encryption key to a new random
value, resets the power-on lock state to false, and sets the key ID to a default value, either the
manufacturer secure ID 0x0 (SAS drives) or a null key (NVMe drives). Doing so renders the data on the
disk inaccessible and impossible to retrieve. You can reuse sanitized disks as non-zeroed spare disks.
• Disk destroy
When you destroy a FIPS drive or SED, the system sets the disk encryption key to an unknown random
value and locks the disk irreversibly. Doing so renders the disk permanently unusable and the data on it
permanently inaccessible.
You can sanitize or destroy individual self-encrypting drives, or all the self-encrypting drives for a node.
If you want to make data on a FIPS drive or SED permanently inaccessible, and use the
drive for new data, you can use the storage encryption disk sanitize
command to sanitize the drive.
About this task
When you sanitize a self-encrypting drive, the system changes the disk encryption key to a new random value,
resets the power-on lock state to false, and sets the key ID to a default value, either the manufacturer secure
ID 0x0 (SAS drives) or a null key (NVMe drives). Doing so renders the data on the disk inaccessible and
impossible to retrieve. You can reuse sanitized disks as non-zeroed spare disks.
Steps
1. Migrate any data that needs to be preserved to an aggregate on another disk.
2. Delete the aggregate on the FIPS drive or SED to be sanitized:
284
storage aggregate delete -aggregate aggregate_name
Learn more about storage aggregate delete in the ONTAP command reference.
Learn more about storage encryption disk show in the ONTAP command reference.
4. If a FIPS drive is running in FIPS-compliance mode, set the FIPS authentication key ID for the node back
to the default MSID 0x0:
You can use the security key-manager query command to view key IDs.
You can use this command to sanitize hot spare or broken disks only. To sanitize all disks regardless of
type, use the -force-all-state option.
Learn more about storage encryption disk sanitize in the ONTAP command reference.
ONTAP will prompt you to enter a confirmation phrase before continuing. Enter the phrase
exactly as shown on the screen.
285
cluster1::> storage encryption disk sanitize -disk 1.10.2
If you want to make data on a FIPS drive or SED permanently inaccessible and you do
not need to reuse the drive, you can use the storage encryption disk destroy
command to destroy the disk.
About this task
When you destroy a FIPS drive or SED, the system sets the disk encryption key to an unknown random value
and locks the drive irreversibly. Doing so renders the disk virtually unusable and the data on it permanently
inaccessible. However, you can reset the disk to its factory-configured settings using the physical secure ID
(PSID) printed on the disk’s label. For more information, see Returning a FIPS drive or SED to service when
authentication keys are lost.
You should not destroy a FIPS drive or SED unless you have the Non-Returnable Disk Plus
service (NRD Plus). Destroying a disk voids its warranty.
286
Steps
1. Migrate any data that needs to be preserved to an aggregate on another different disk.
2. Delete the aggregate on the FIPS drive or SED to be destroyed:
Learn more about storage aggregate delete in the ONTAP command reference.
Learn more about storage encryption disk show in the ONTAP command reference.
Learn more about storage encryption disk destroy in the ONTAP command reference.
You are prompted to enter a confirmation phrase before continuing. Enter the phrase exactly
as shown on the screen.
287
cluster1::> storage encryption disk destroy -disk 1.10.2
In case of a security emergency, you can instantly prevent access to a FIPS drive or
SED, even if power is not available to the storage system or the KMIP server.
Before you begin
• If you are using a KMIP server that has no available power, the KMIP server must be configured with an
easily destroyed authentication item (for example, a smart card or USB drive).
• You must be a cluster administrator to perform this task.
Step
1. Perform emergency shredding of data on a FIPS drive or SED:
If… Then…
288
Power is available to the storage a. If the storage system is configured as an HA pair, disable
system and you have time to take takeover.
the storage system offline
b. Take all aggregates offline and delete them.
gracefully
c. Set the privilege level to advanced:
◦ If you want to make the data on the disks inaccessible and still
be able to reuse the disks, sanitize the disks:
289
Power is available to the storage a. If you want to make the data a. If you want to make the data
system and you must shred the on the disks inaccessible on the disks inaccessible
data immediately and still be able to reuse the and you do not need to save
disks, sanitize the disks: the disks, destroy the disks:
b. If the storage system is b. If the storage system is
configured as an HA pair, configured as an HA pair,
disable takeover. disable takeover.
c. Set the privilege level to c. Set the privilege level to
advanced: advanced:
storage encryption
disk modify -disk *
-fips-key-id 0x0
storage encryption
disk sanitize -disk *
-force-all-states true
Power is not available to the KMIP Destroy the authentication item for the KMIP server (for example, the
server or the storage system smart card). This prevents access to disk encryption keys by the
storage system.
Learn more about the commands described in this procedure in the ONTAP command reference.
Return a FIPS drive or SED to service when authentication keys are lost in ONTAP
The system treats a FIPS drive or SED as broken if you lose the authentication keys for it
permanently and cannot retrieve them from the KMIP server. Although you cannot access
290
or recover the data on the disk, you can take steps to make the SED’s unused space
available again for data.
Before you begin
You must be a cluster administrator to perform this task.
If the disks are partitioned, they must first be unpartitioned before you can start this process.
The command to unpartition a disk is only available at the diag level and should be performed
only under NetApp Support supervision. It is highly recommended that you contact NetApp
Support before you proceed. You can also refer to the Knowledge Base article How to
unpartition a spare drive in ONTAP.
Steps
1. Return a FIPS drive or SED to service:
291
Not in FIPS-compliance a. Set the privilege level to advanced:
mode, or in FIPS- set -privilege advanced
compliance mode and
the FIPS key is available b. Reset the FIPS key to the default manufacture secure ID 0x0:
storage encryption disk modify -fips-key-id 0x0 -disk
disk_id
c. Verify the operation succeeded:
storage encryption disk show-status
If the operation failed, use the PSID process in this topic.
d. Sanitize the broken disk:
storage encryption disk sanitize -disk disk_id
Verify the operation succeeded with the command storage encryption
disk show-status before proceeding to the next step.
e. Unfail the sanitized disk:
storage disk unfail -spare true -disk disk_id
f. Check whether the disk has an owner:
storage disk show -disk disk_id
292
In FIPS-compliance a. Obtain the PSID of the disk from the disk label.
mode, the FIPS key is
b. Set the privilege level to advanced:
not available, and the
SEDs have a PSID set -privilege advanced
printed on the label c. Reset the disk to its factory-configured settings:
storage encryption disk revert-to-original-state -disk
disk_id -psid disk_physical_secure_id
Verify the operation succeeded with the command storage encryption
disk show-status before proceeding to the next step.
d. If you are running ONTAP 9.8P5 or earlier, skip to the next step. If you are
running ONTAP 9.8P6 or later, unfail the sanitized disk.
storage disk unfail -disk disk_id
e. Check whether the disk has an owner:
storage disk show -disk disk_id
Learn more about the commands described in this procedure in the ONTAP command reference.
A FIPS drive or SED is protected from unauthorized access only if the authentication key
ID for the node is set to a value other than the default. You can return a FIPS drive or
SED to unprotected mode by using the storage encryption disk modify
command to set the key ID to the default. A FIPS drive or SED in unprotected mode uses
the default encryption keys, while a FIPS drive or SED in protected mode uses supplied,
secret encryption keys. If there is encrypted data on the drive and the drive is reset to
unprotected mode, the data is still encrypted and is not exposed.
Follow this procedure to ensure that any encrypted data becomes inaccessible after the FIPS
drive or SED is returned to unprotected mode. Once the FIPS and data key IDs are reset, any
existing data can not be decrypted and becomes inaccessible.
If an HA pair is using encrypting SAS or NVMe drives (SED, NSE, FIPS), you must follow this process for all
drives within the HA pair prior to initializing the system (boot options 4 or 9). Failure to do this may result in
293
future data loss if the drives are repurposed.
Steps
1. Set the privilege level to advanced:
2. If a FIPS drive is running in FIPS-compliance mode, set the FIPS authentication key ID for the node back
to the default MSID 0x0:
You can use the security key-manager query command to view key IDs.
Repeat the show-status command until the numbers in “Disks Begun” and “Disks Done” are the same.
3. Set the data authentication key ID for the node back to the default MSID 0x0:
The value of -data-key-id should be set to 0x0 whether you are returning a SAS or NVMe drive to
unprotected mode.
294
You can use the security key-manager query command to view key IDs.
Repeat the show-status command until the numbers are the same. The operation is complete when the
numbers in “disks begun” and “disks done” are the same.
Maintenance mode
Beginning with ONTAP 9.7, you can rekey a FIPS drive from maintenance mode. You should only use
maintenance mode if you cannot use the ONTAP CLI instructions in the earlier section.
Steps
1. Set the FIPS authentication key ID for the node back to the default MSID 0x0:
2. Set the data authentication key ID for the node back to the default MSID 0x0:
Your output will likely display either the default MSID 0x0 key ID or the 64-character value held by the key
server. The Locked? field refers to data-locking.
You can disconnect a KMIP server from a node when you no longer need the server. For
295
example, you might disconnect a KMIP server when you are transitioning to volume
encryption.
About this task
When you disconnect a KMIP server from one node in an HA pair, the system automatically disconnects the
server from all cluster nodes.
If you plan to continue using external key management after disconnecting a KMIP server, make
sure another KMIP server is available to serve authentication keys.
Step
1. Disconnect a KMIP server from the current node:
In a MetroCluster environment, you must repeat these commands on both clusters for the admin SVM.
The following ONTAP 9.6 command disables the connections to two external key management servers for
cluster1, the first named ks1, listening on the default port 5696, the second with the IP address
[Link], listening on port 24482:
Learn more about security key-manager external remove-servers and security key-
manager delete in the ONTAP command reference.
Beginning with ONTAP 9.6, you can use the security key-manager external
modify-server command to change the I/O timeout and user name of an external key
management server.
Before you begin
• You must be a cluster or SVM administrator to perform this task.
• Advanced privileges are required for this task.
• In a MetroCluster environment, you must repeat these steps on both clusters for the admin SVM.
296
Steps
1. On the storage system, change to advanced privilege level:
The timeout value is expressed in seconds. If you modify the user name, you are prompted
to enter a new password. If you run the command at the cluster login prompt, admin_SVM
defaults to the admin SVM of the current cluster. You must be the cluster administrator to
modify external key manager server properties.
The following command changes the timeout value to 45 seconds for the cluster1 external key
management server listening on the default port 5696:
3. Modify external key manager server properties for an SVM (NVE only):
The timeout value is expressed in seconds. If you modify the user name, you are prompted
to enter a new password. If you run the command at the SVM login prompt, SVM defaults to
the current SVM. You must be the cluster or SVM administrator to modify external key
manager server properties.
The following command changes the username and password of the svm1 external key management
server listening on the default port 5696:
Related information
• security key-manager external modify-server
If you want to switch to external key management from onboard key management, you
must delete the onboard key management configuration before you can enable external
297
key management.
Before you begin
• For hardware-based encryption, you must reset the data keys of all FIPS drives or SEDs to the default
value.
Step
1. Delete the onboard key management configuration for a cluster:
Learn more about security key-manager onboard disable and security key-manager
delete-key-database in the ONTAP command reference.
If you want to switch to onboard key management from external key management, you
must delete the external key management configuration before you can enable onboard
key management.
Before you begin
• For hardware-based encryption, you must reset the data keys of all FIPS drives or SEDs to the default
value.
Steps
The steps to transition your key management depend on the version of ONTAP you are using.
298
ONTAP 9.6 and later
1. Change to the advanced privilege level:
In a MetroCluster environment, you must repeat the command on both clusters for the
admin SVM.
Related information
• security key-manager external
What happens when key management servers are not reachable during the ONTAP boot process
ONTAP takes certain precautions to avoid undesired behavior in the event that a storage
system configured for NSE cannot reach any of the specified key management servers
during the boot process.
If the storage system is configured for NSE, the SEDs are rekeyed and locked, and the SEDs are powered on,
the storage system must retrieve the required authentication keys from the key management servers to
authenticate itself to the SEDs before it can access the data.
The storage system attempts to contact the specified key management servers for up to three hours. If the
storage system cannot reach any of them after that time, the boot process stops and the storage system halts.
If the storage system successfully contacts any specified key management server, it then attempts to establish
an SSL connection for up to 15 minutes. If the storage system cannot establish an SSL connection with any
specified key management server, the boot process stops and the storage system halts.
While the storage system attempts to contact and connect to key management servers, it displays detailed
information about the failed contact attempts at the CLI. You can interrupt the contact attempts at any time by
pressing Ctrl-C.
As a security measure, SEDs allow only a limited number of unauthorized access attempts, after which they
disable access to the existing data. If the storage system cannot contact any specified key management
servers to obtain the proper authentication keys, it can only attempt to authenticate with the default key which
leads to a failed attempt and a panic. If the storage system is configured to automatically reboot in case of a
panic, it enters a boot loop which results in continuous failed authentication attempts on the SEDs.
Halting the storage system in these scenarios is by design to prevent the storage system from entering a boot
299
loop and possible unintended data loss as a result of the SEDs locked permanently due to exceeding the
safety limit of a certain number of consecutive failed authentication attempts. The limit and the type of lockout
protection depends on the manufacturing specifications and type of SED:
SED type Number of Lockout protection type when safety limit is reached
consecutive
failed
authentication
attempts
resulting in
lockout
HDD 1024 Permanent. Data cannot be recovered, even when the
proper authentication key becomes available again.
X440_PHM2800MCTO 800GB 1024 Permanent. Data cannot be recovered, even when the
NSE SSDs with higher firmware proper authentication key becomes available again.
revisions
X577_PHM2800MCTO 800GB 1024 Permanent. Data cannot be recovered, even when the
NSE SSDs with higher firmware proper authentication key becomes available again.
revisions
All other SSD models 1024 Permanent. Data cannot be recovered, even when the
proper authentication key becomes available again.
For all SED types, a successful authentication resets the try count to zero.
If you encounter this scenario where the storage system is halted due to failure to reach any specified key
management servers, you must first identify and correct the cause for the communication failure before you
attempt to continue booting the storage system.
Beginning with ONTAP 9.7, aggregate and volume encryption is enabled by default if you
have a volume encryption (VE) license and use an onboard or external key manager. If
necessary, you can disable encryption by default for the entire cluster.
Before you begin
You must be a cluster administrator to perform this task, or an SVM administrator to whom the cluster
administrator has delegated authority.
Step
300
1. To disable encryption by default for the entire cluster in ONTAP 9.7 or later, run the following command:
301
Copyright information
Copyright © 2025 NetApp, Inc. All Rights Reserved. Printed in the U.S. No part of this document covered by
copyright may be reproduced in any form or by any means—graphic, electronic, or mechanical, including
photocopying, recording, taping, or storage in an electronic retrieval system—without prior written permission
of the copyright owner.
Software derived from copyrighted NetApp material is subject to the following license and disclaimer:
THIS SOFTWARE IS PROVIDED BY NETAPP “AS IS” AND WITHOUT ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE, WHICH ARE HEREBY DISCLAIMED. IN NO EVENT SHALL
NETAPP BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
NetApp reserves the right to change any products described herein at any time, and without notice. NetApp
assumes no responsibility or liability arising from the use of products described herein, except as expressly
agreed to in writing by NetApp. The use or purchase of this product does not convey a license under any
patent rights, trademark rights, or any other intellectual property rights of NetApp.
The product described in this manual may be protected by one or more U.S. patents, foreign patents, or
pending applications.
LIMITED RIGHTS LEGEND: Use, duplication, or disclosure by the government is subject to restrictions as set
forth in subparagraph (b)(3) of the Rights in Technical Data -Noncommercial Items at DFARS 252.227-7013
(FEB 2014) and FAR 52.227-19 (DEC 2007).
Data contained herein pertains to a commercial product and/or commercial service (as defined in FAR 2.101)
and is proprietary to NetApp, Inc. All NetApp technical data and computer software provided under this
Agreement is commercial in nature and developed solely at private expense. The U.S. Government has a non-
exclusive, non-transferrable, nonsublicensable, worldwide, limited irrevocable license to use the Data only in
connection with and in support of the U.S. Government contract under which the Data was delivered. Except
as provided herein, the Data may not be used, disclosed, reproduced, modified, performed, or displayed
without the prior written approval of NetApp, Inc. United States Government license rights for the Department
of Defense are limited to those rights identified in DFARS clause 252.227-7015(b) (FEB 2014).
Trademark information
NETAPP, the NETAPP logo, and the marks listed at [Link] are trademarks of NetApp, Inc.
Other company and product names may be trademarks of their respective owners.
302