The community will be undergoing maintenance soon, requiring Read-Only mode. Click to learn more.

Microsoft Virtualization Discussions

Powershell command for changing tiering policy.

NwkThd_04

Hello Team,

Could you please help me to find out the power shell command for changing netpp volume tiering policy.

Currently it is configured with "auto" and I need to change it to "all"  for  quite a bit of volumes. It works fine from cli but looking for powershell option to script it.  The firmware is 9.7 P12.

 

Thank you so much.

Kind regards,

 

Shyju.

1 ACCEPTED SOLUTION

pedro_rocha

Hi!

 

This post may help you: https://community.netapp.com/t5/ONTAP-Discussions/change-tiering-minimal-cooling-days-with-powershell-toolkit/m-p/155880

 

Would it be $volume.VolumeCompAggrAttributes.TieringPolicy ?

 

Regards,

Pedro

View solution in original post

2 REPLIES 2

pedro_rocha

Hi!

 

This post may help you: https://community.netapp.com/t5/ONTAP-Discussions/change-tiering-minimal-cooling-days-with-powershell-toolkit/m-p/155880

 

Would it be $volume.VolumeCompAggrAttributes.TieringPolicy ?

 

Regards,

Pedro

View solution in original post

NwkThd_04

That worked. Thank you so much Pedro.

=========================================

$query = @{
Name = "volume name"
}
$attributes = @{
VolumeCompAggrAttributes = @{
tieringpolicy = "all"
}
}
Update-NcVol -Query $query -Attributes $attributes

================================================

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public