Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
