NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

ONTAP Discussions

Enable anti-ransomware for multiple volumes

LimorK
2,538 Views

Ontap 12.1.

Is there a way (probably cli or powershell) to pipe all volumes with a status of dry-run and change them to enable?

2 REPLIES 2

Abeltran
2,376 Views

Hi Limork,

 

From cli you can execute the command to change from dry-run to enable.

 

First you need to get all the volumenes on dry-run:

 

security anti-ransomware volume show -state dry-run

 

And then enable them:

 

security anti-ransomware volume enable -vserver vserver_name -volume volume_name

 

Is recommened 30 days on dry-run of the volumes before enable them.

 

Kind regards,

 

Albert

LimorK
2,373 Views

Thanks Albert. What I had in mind was if I could do it in a single command. Something like
security anti-ransomware volume show -state dry-run | .... enable
I understand that I have to do it one by one.

Public