Microsoft Virtualization Discussions

Powershell command for changing tiering policy.

NwkThd_04
2,531 Views

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
2,478 Views

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
2,479 Views

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

NwkThd_04
2,439 Views

That worked. Thank you so much Pedro.

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

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

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

Public