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.

Active IQ Unified Manager Discussions

seeking wf to set options on all filer volumes?

stephen2
3,071 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
3,071 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