Ask The Experts

set-smpolicy -PolicyName "my policy" -SnapVaultLabel"scv_servername"

moonman2013

Hello,

 

I have a Snapcenter (4.1.1) policy and I want to modify the snapvault label via powershell

I thought I could do this, but it fails

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

Then I tried this,
set-smpolicy -PolicyName "tier 1 daily sql full and log backup-servername" -PluginPolicyType SMSQL -SnapVaultLabel "scv_daily_servername"

I also tried this,
set-smpolicy -PolicyName "tier 1 daily sql full and log backup-servername" -PluginPolicyType SCSQL -SnapVaultLabel "scv_daily_servername"


Whats the difference between SMSQL and SCSQL?

Anyone know the correct syntax to modify the -SnapVaultLabel?

 

Thanks in advance,

-n00b-

1 REPLY 1

GidonMarcus

Hi

 

Can you try

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

The difference according to the help command  is that PluginPolicyType contains the different plugins the policy associated with.

Gidi Marcus (Linkedin) - Storage and Microsoft technologies consultant - Hydro IT LTD - UK
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