Subscribe

seeking wf to set options on all filer volumes?

IHAC that wants to select a filer and set options on every volume (except vol0)

Anyone have anything like that? I know it involves looping which I have not used yet

Re: seeking wf to set options on all filer volumes?

Here's a command you could throw in a workflow...

It's identical to the one in the Day-0 example workflow I posted here:

https://communities.netapp.com/docs/DOC-20088

but it avoids vol0 as your customer is looking for.

(

Using

Get-NaVol | Where-Object { $_.Name -ne "vol0" } | Set-NaVolOption -key "$OptionName" -value "$OptionValue"

instead of just

Get-NaVol | Set-NaVolOption -key "$OptionName" -value "$OptionValue"

)

Hope this helps,

Dave