New-SnapshotPolicy
SYNOPSIS
Creates a snapshot policy.
SYNTAX
New-SnapshotPolicy [-Unisphere] <UnisphereServer> [-ArrayId] <String> [-Id] <String> [-Interval] <String>
[-OffsetMins <Int32>] [-ComplianceCountWarning <Int32>] [-ComplianceCountCritical <Int32>]
-SnapshotCount <Int32> [-Secure] [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
Creates a snapshot policy.
This command is only supported on systems running Unisphere 9.2.0 or greater.
EXAMPLES
Example 1
PS C:\> New-SnapshotPolicy -Unisphere $unisphere -ArrayId 000123456789 -Id policy1 -Interval 1Hour -SnapshotCount 100
Where $unisphere is a Unisphere server instance. Creates a new snapshot policy named policy1 with an interval of one hour and retaining up to 100 snapshots.
Example 2
PS C:\> New-SnapshotPolicy -Unisphere $unisphere -ArrayId 000123456789 -Id policy1 -Interval 1Hour -OffsetMins 30 -SnapshotCount 100
Where $unisphere is a Unisphere server instance. Creates a new snapshot policy named policy1 with an interval of one hour and retaining up to 100 snapshots. The offset of 30 minutes will create the snapshot at 30 minutes past the hour.
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
-Interval
The snapshot interval in minutes.
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: 10Minutes, 12Minutes, 15Minutes, 20Minutes, 30Minutes, 1Hour, 2Hours, 3Hours, 4Hours, 6Hours, 1Day, 7Days
Required: True
Position: 3
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: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-SnapshotCount
The number of snapshots to keep.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: True
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: (All)
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: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-Secure
Create secure snapshots.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
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.