Set-SnapshotPolicy
SYNOPSIS
Modifies a snapshot policy.
SYNTAX
Set (Default)
Set-SnapshotPolicy [-Unisphere] <UnisphereServer> [-ArrayId] <String> [-Id] <String> [-NewId <String>]
[-IntervalMins <Int64>] [-OffsetMins <Int32>] [-SnapshotCount <Int32>] [-ComplianceCountWarning <Int32>]
[-ComplianceCountCritical <Int32>] [<CommonParameters>]
Add
Set-SnapshotPolicy [-Unisphere] <UnisphereServer> [-ArrayId] <String> [-Id] <String>
-AddStorageGroupId <String[]> [<CommonParameters>]
Remove
Set-SnapshotPolicy [-Unisphere] <UnisphereServer> [-ArrayId] <String> [-Id] <String>
-RemoveStorageGroupId <String[]> [-Force] [<CommonParameters>]
DESCRIPTION
Modifies a snapshot policy. Associates with or disassociates storage groups from the policy.
This command is only supported on systems running Unisphere 9.2.0 or greater.
EXAMPLES
Example 1
PS C:\> Set-SnapshotPolicy -Unisphere $unisphere -ArrayId 000123456789 -Id policy1 -NewId NewPolicy1
Where $unisphere is a Unisphere server instance. Renames snapshot policy policy1 to NewPolicy1.
Example 2
PS C:\> Set-SnapshotPolicy -Unisphere $unisphere -ArrayId 000123456789 -Id policy1 -IntervalMins 10080 -OffsetMins 10073
Where $unisphere is a Unisphere server instance. Changes the interval to every Sunday at 23:53pm.
Example 3
PS C:\> Set-SnapshotPolicy -Unisphere $unisphere -ArrayId 000123456789 -Id policy1 -AddStorageGroupId sg1,sg2,sg3
Where $unisphere is a Unisphere server instance. Associates storage groups sg1, sg2, and sg3 to the policy.
Example 4
PS C:\> Set-SnapshotPolicy -Unisphere $unisphere -ArrayId 000123456789 -Id policy1 -RemoveStorageGroupId sg2,sg3
Where $unisphere is a Unisphere server instance. Disassociates storage groups sg2 and sg3 from the policy.
PARAMETERS
-Unisphere
The Unisphere server object.
Type: UnisphereServer
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-ArrayId
The PowerMax array ID.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-Id
The snapshot policy ID.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-NewId
The new policy ID.
Type: String
Parameter Sets: Set
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-SnapshotCount
The new snapshot count.
Type: Int32
Parameter Sets: Set
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-IntervalMins
The new interval in minutes.
Type: Int64
Parameter Sets: Set
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-OffsetMins
The offset in minutes within the interval.
Type: Int32
Parameter Sets: Set
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-ComplianceCountCritical
The compliance count before the critical state is reached.
Type: Int32
Parameter Sets: Set
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-ComplianceCountWarning
The compliance count before the warning state is reached.
Type: Int32
Parameter Sets: Set
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-AddStorageGroupId
The list of storage groups to associate with the policy.
Type: String[]
Parameter Sets: Add
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-RemoveStorageGroupId
The list of storage groups to disassociate from the policy.
Type: String[]
Parameter Sets: Remove
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-Force
Skips confirmation before performing the operation.
Type: SwitchParameter
Parameter Sets: Remove
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.