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

Finding all volumes that have Snapshots turned off (nosnap=on)

BRIANCLARK
7,755 Views

As the subject line states, I am looking for a way (CLI, Powershell Toolkit, etc.. ) that would show me all of my volumes that have snapshots turned off.

Does anyone have a quick method of pulling this information, or is this purely a manual process?

thanks,

Brian

1 ACCEPTED SOLUTION

spence
7,755 Views

7-Mode I assume:  get-navol | get-nasnapshotschedule

View solution in original post

6 REPLIES 6

spence
7,756 Views

7-Mode I assume:  get-navol | get-nasnapshotschedule

BRIANCLARK
7,755 Views

That was exactly what I was looking for, and it seems pretty obvious now that I am looking at it.

thanks for your help.

spence
7,755 Views

So there is also an option on each FlexVol that can disable automated storage side snapshots from being taken, regardless of the schedule.  I had to phone a friend, but in addition to running the above, you might also want to run this one liner to see if the option is enabled:

Get-NaVol | ForEach-Object {$volName = $_.Name;Get-NaVolOption -Name $volName | Where-Object {$_.Name -eq 'nosnap'} | Select-Object -Property @{Name='VolumeName';Expression={$volName}}, Name, Value}

:Thanks Jason Cole!

BRIANCLARK
7,755 Views

That is even better.

Thanks again. 

SERVIMATICA_MIKEL
7,755 Views

What is the equivalent in c#?

Thanks

SERVIMATICA_MIKEL
7,755 Views

OK

volume-options-list-info

Thanks

Public