Software Development Kit (SDK) and API Discussions

Cmdlet to assign schedule policy

FrancoWolf

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

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

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

FrancoWolf

Hi Andrew,

 

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

 

Thank you so far!

 

 

Franco

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