Ask The Experts

Highlighted

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

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
Highlighted

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

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
Check out the KB!
Knowledge Base
All Community Forums
Public