The transition to NetApp MS Azure AD B2C is complete. If you missed the pre-registration, you will be invited to register at next log in.
Please note that access to your NetApp data may take up to 1 hour.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

Software Development Kit (SDK) and API Discussions

Snapcenter Policy via powershell

moonman2013

Hello,

 

When I run this command from powershell

get-smpolicy | Select-Object SnapVaultLabel, PolicyType, SqlBackupType

 

My results return the SQLBackupType field as empty for all my policies.  Is that good or bad?

 

I'm trying to modify a policy via powershell like this, but it fails.

set-smpolicy -PolicyName "tier 1 daily sql full and log backup-servername" -SnapVaultLabel "scv_daily_servername"

 

Does anyone have an example on how I can set the -snapvaultlabel via powershell?

 

Thanks,

-n00b-

1 REPLY 1

donny_lang

It looks like the property that contains the backup type is actually called "SmSqlBackupType" and not "SqlBackupType", so that could explain why that property is empty (because it doesn't exist).

 

What error is generated when you try to run the "Set-SmPolicy" cmdlet to try to specify the SnapVault label?  

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