Active IQ Unified Manager Discussions

seeking wf to set options on all filer volumes?

stephen2
2,466 Views

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

1 REPLY 1

bdave
2,466 Views

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

Public