Set-DPMProtectionGroupSla

Set-DPMProtectionGroupSla

Sets an SLA for a protection group.

構文

Parameter Set: ProtectionGroup
Set-DPMProtectionGroupSla [-ProtectionGroup] <ProtectionGroup> [-SLAInHours] <Int32> [ <CommonParameters>]

Parameter Set: ProtectionGroupId
Set-DPMProtectionGroupSla [-ProtectionGroupId] <Guid> [-SLAInHours] <Int32> [ <CommonParameters>]




詳細説明

The Set-DPMProtectionGroupSla cmdlet sets a service level agreement (SLA) for a protection group. An SLA defines the period, in hours, during which System Center 2012 – Data Protection Manager (DPM) should create at least one recovery point of each data source in the protection group. An SLA of 24 for a protection group means that each data source in that protection group should have at least one recovery point per day. If a source does not have a recovery point within that time, DPM raises an SLA violation alert for the data source. If you configured a backup window by using the Set-DPMBackupWindow cmdlet, the calculation of the time window for checking SLA violation starts at the start of the backup window. If you have not configured a backup window, the calculation of the time window for checking SLA violation starts at midnight.

パラメーター

-ProtectionGroup<ProtectionGroup>

Specifies a ProtectionGroup object. To obtain a ProtectionGroup object, use the Get-DPMProtectionGroup cmdlet.


エイリアス

none

必須?

true

位置は?

1

既定値

none

パイプライン入力を許可する

True (ByValue)

ワイルドカード文字を許可する

false

-ProtectionGroupId<Guid>

Specifies the unique identifier for a protection group. This cmdlet sets the SLA for the protection group that this parameter specifies.


エイリアス

none

必須?

true

位置は?

1

既定値

none

パイプライン入力を許可する

True (ByValue)

ワイルドカード文字を許可する

false

-SLAInHours<Int32>

Specifies the period, in hours, during which DPM should create at least one recovery point of each data source in the protection group.


エイリアス

none

必須?

true

位置は?

2

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

Example 1: Set an SLA for a protection group object

The first command gets protection groups on the DPM server named DPMServer02. This command passes the results to the Where-Object cmdlet. That cmdlet drops all except ones that match the specified friendly name. For more information, type Get-Help Where-Object. The command stores the protection group in the $ProtectionGroup variable.

The second command sets an SLA of 12 hours for the protection group stored in $ProtectionGroup.


PS C:\> $ProtectionGroup = Get-DPMProtectionGroup -DPMServerName "DPMServer02" | Where {$_.FriendlyName -like "*ContosoPG02*"}
PS C:\> Set-DPMProtectionGroupSla -ProtectionGroup $ProtectionGroup -SLAInHours 12

Example 2: Set an SLA for a protection group specified by ID

The first command gets protection groups on the DPM server named DPMServer02. This command passes the results to the Where-Object cmdlet. The command stores the protection group in the $ProtectionGroup variable.

The second command sets an SLA of 12 hours for the protection group that has the GUID specified by the ProtectionGroupId property of $ProtectionGroup.


PS C:\> $ProtectionGroup = Get-DPMProtectionGroup -DPMServerName "DPMServer02" | Where {$_.FriendlyName -like "*ContosoPG02*"}
PS C:\> Set-DPMProtectionGroupSla -ProtectionGroupId $ProtectionGroup.ProtectionGroupId -SLAInHours 12

関連トピック

コミュニティの追加

追加
表示: