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.

Software Development Kit (SDK) and API Discussions

Cmdlet to assign schedule policy

FrancoWolf
3,150 Views

Hi,

 

I'm searching for a cmdlet to assign a snapshot schedule policy to specified volumes over WFA.

 

 

Does anybody knows the cmdlet for this task?

 

 

Kind regards

 

 

Franco

1 ACCEPTED SOLUTION

asulliva
3,129 Views

From a PowerShell perspective, you'll want to use the "Update-NcVol" cmdlet to change the snapshot policy assigned to a volume:

 

Update-NcVol -Query @{ Name = $volName } -Attributes @{ VolumeSnapshotAttributes = @{ SnapshotPolicy = $snapPolicy } }

Hope that helps.

 

Andrew

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

View solution in original post

2 REPLIES 2

asulliva
3,130 Views

From a PowerShell perspective, you'll want to use the "Update-NcVol" cmdlet to change the snapshot policy assigned to a volume:

 

Update-NcVol -Query @{ Name = $volName } -Attributes @{ VolumeSnapshotAttributes = @{ SnapshotPolicy = $snapPolicy } }

Hope that helps.

 

Andrew

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

FrancoWolf
3,109 Views

Hi Andrew,

 

this sounds good. I will try this and give you a feedback.

 

Thank you so far!

 

 

Franco

Public