Microsoft Virtualization Discussions

How to use new-ncsnapmirrorpolicy to create a vault type policy

AllenChang
1,318 Views

I want use powershell to create a snapvault

but when I use new-ncsnapmirrorpolicy command to create the policy,

I use -type vault parameter,

but it response me a error

 

PS C:\File> New-NcSnapmirrorPolicy -Name mysmpolicy1 -VserverContext svm2 -Type vault
New-NcSnapmirrorPolicy : [400]: "vault" is an invalid value for field "type" (<async|sync|continuous>)

 

It tell me just can use async ,sync and continuouse

not vault option

 

How to create a snapmirrorpolicy for vault ?

Thanks

1 ACCEPTED SOLUTION

Sergey_Osipov
1,046 Views

I'm not sure which exact PS module version you are using

Check up the including documentation

Usually it is in ~\Documentation\WindowsPowershel\Modules\.....

I've checked for 9.12.1.2302

 -Type <String>
The type of the Snapmirror policy. Possible values: 'vault',
'async_mirror', 'mirror_vault', 'sync_mirror'

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

View solution in original post

1 REPLY 1

Sergey_Osipov
1,047 Views

I'm not sure which exact PS module version you are using

Check up the including documentation

Usually it is in ~\Documentation\WindowsPowershel\Modules\.....

I've checked for 9.12.1.2302

 -Type <String>
The type of the Snapmirror policy. Possible values: 'vault',
'async_mirror', 'mirror_vault', 'sync_mirror'

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
Public