New-DPMServerScope
DPM サーバー スコープ オブジェクトを作成します。
構文
New-DPMServerScope
[[-DPMServerName] <String>]
[-ObjectType] <ScopedObjectType>
[-ObjectId] <String[]>
[-AlertType <AlertEnum>]
[-ErrorId <Int32>]
[-DetailedErrorId <Int32>]
[<CommonParameters>]
説明
New-DPMServerScope コマンドレットは、System Center - Data Protection Manager (DPM) サーバー スコープ オブジェクトを作成します。 スコープ オブジェクトと共にコマンドレットを使用して、スコープ付き DPM サーバー接続を作成できます。
例
例 1: 接続のサーバー スコープを作成する
PS C:\>$ServerScope = New-DPMServerScope -DPMServerName "DPMServer07" -ObjectType ProtectionGroup -ObjectID "Protection Group 01"
PS C:\> $DpmServer = Connect-DPMServer -DPMServerScope $ServerScope
最初のコマンドは、DPMServer07 という名前の DPM サーバーのサーバー スコープを作成し、そのスコープを$ServerScope変数に格納します。 このコマンドは、ProtectionGroup をオブジェクトの種類として指定し、保護グループ 01 のオブジェクト ID を指定します。
2 番目のコマンドでは、 Connect-DPMServer コマンドレットを使用して、$ServerScopeのサーバー スコープを使用する接続を作成します。
例 2: アラートが指定されたサーバー スコープを作成する
PS C:\>$ServerScope = New-DPMServerScope -DPMServerName "DPMServer07" -ObjectType Datasource -ObjectID "00a000aa-00a0-00aa-00aa-0a0aa000aa00" -AlertType BackupToTapeFailedAlert -DetailedErrorID 910 -ErrorID 3113
PS C:\> $DpmServer = Connect-DPMServer -DPMServerScope $ServerScope
最初のコマンドは、DPMServer07 という名前の DPM サーバーのサーバー スコープを作成し、そのスコープを$ServerScope変数に格納します。 このコマンドは、オブジェクトの種類としてデータソースを指定し、オブジェクト ID を指定します。 このコマンドでは、アラートの種類と、詳細なエラー ID とエラー ID の両方も指定します。
2 番目のコマンドでは、 Connect-DPMServer コマンドレットを使用して、$ServerScopeにサーバー スコープを持つ接続を作成します。
パラメーター
-AlertType
接続スコープのアラートの種類を指定します。
このパラメーターに使用できる値は次のとおりです。
- RestoreDBAlert
- NullType
- AgentIncompatibleAlert
- AgentUnreachableAlert
- MediaVerificationFailedAlert
- MediaEraseFailedAlert
- DetailedInventoryFailedAlert
- MediaDecommissionedAlert
- MediaDataEraseAlert
- FreeMediaThresholdAlert
- DataSetCopyFailedAlert
- BackupToTapeFailedAlert
- BackupToTapeCatalogFailedAlert
- LibraryDriveAlert
- LibraryNotAvailableAlert
- LibraryNotWorkingEfficientlyAlert
- MediaRequiredAlert
- ReplicaInitializationInProgressAlert
- SynchronizationFailedAlert
- StopProtectionFailedAlert
- RecoveryInProgressAlert
- RecoveryPartiallySuccessfulAlert
- RecoverySuccessfulAlert
- RecoveryFailedAlert
- ShadowCopyFailedAlert
- ReplicaInMissingStateAlert
- ReplicaInInvalidStateAlert
- PartialDeployedClusterAlert
- AgentTaskFailAlert
- SqmOptInAlert
- DiskThresholdCrossedAlert
- VerificationInProgressAlert
- DiskMissingAlert
- CatalogThresholdCrossedAlert
- DatasetDataVerificationFailed
- SCDiskThresholdCrossedAlert
- ConfigureProtectionFailedAlert
- ReplicaManualLoadPendingAlert
- ReplicaInitializationPendingAlert
- CertificateExpiringAlert
- EvalShareInquiryAlert
- ShadowCopyConsolidationRequired
- PathChangedForShareAlert
- BackupMetadataEnumerationFailedAlert
- DuplicateDisksDetectedAlert
- DataCorruptionDetectedAlert
- DataCorruptionDetectedDuringReadAlert
- StagingAreaRestoreInProgressAlert
- StagingAreaRestorePartiallySuccessfulAlert
- StagingAreaRestoreSuccessfulAlert
- StagingAreaRestoreFailedAlert
- AgentOwnershipRequiredAlert
- AutoInstanceProtectionFailedAlert
- AgentAttachFailedAlert
- BackupSLAFailedAlert
- DpmoRPCreationFailureAlert
- DOCVolumeMissing
- SharepointROAddedAlert
- SharepointRORemovedAlert
- PartialBackupSuccessAlert
- GlobalDbNotAvailable
- LibraryDevicesDisabledAlert
- LdmWarningThresholdReachedAlert
- LdmErrorThresholdReachedAlert
- CertificateExpiryWarningAlert
- CertificateExpiryErrorAlert
- RecoveryFailedWarningAlert
- ExternalAlert
- OnlineBackupServiceUnreachableAlert
- OnlineBackupPoliciesInconsistentAlert
- CloudBackupFailedAlert
- PartialCloudBackupSuccessAlert
型: | AlertEnum |
指定可能な値: | NullType, AgentIncompatibleAlert, AgentUnreachableAlert, MediaVerificationFailedAlert, MediaEraseFailedAlert, DetailedInventoryFailedAlert, MediaDecommissionedAlert, MediaDataEraseAlert, FreeMediaThresholdAlert, DataSetCopyFailedAlert, BackupToTapeFailedAlert, BackupToTapeCatalogFailedAlert, LibraryDriveAlert, LibraryNotAvailableAlert, LibraryNotWorkingEfficientlyAlert, MediaRequiredAlert, ReplicaInitializationInProgressAlert, SynchronizationFailedAlert, StopProtectionFailedAlert, RecoveryInProgressAlert, RecoveryPartiallySuccessfulAlert, RecoverySuccessfulAlert, RecoveryFailedAlert, ShadowCopyFailedAlert, ReplicaInMissingStateAlert, ReplicaInInvalidStateAlert, PartialDeployedClusterAlert, AgentTaskFailAlert, SqmOptInAlert, DiskThresholdCrossedAlert, VerificationInProgressAlert, DiskMissingAlert, CatalogThresholdCrossedAlert, DatasetDataVerificationFailed, SCDiskThresholdCrossedAlert, ConfigureProtectionFailedAlert, ReplicaManualLoadPendingAlert, ReplicaInitializationPendingAlert, CertificateExpiringAlert, EvalShareInquiryAlert, ShadowCopyConsolidationRequired, PathChangedForShareAlert, BackupMetadataEnumerationFailedAlert, DuplicateDisksDetectedAlert, DataCorruptionDetectedAlert, DataCorruptionDetectedDuringReadAlert, StagingAreaRestoreInProgressAlert, StagingAreaRestorePartiallySuccessfulAlert, StagingAreaRestoreSuccessfulAlert, StagingAreaRestoreFailedAlert, AgentOwnershipRequiredAlert, AutoInstanceProtectionFailedAlert, AgentAttachFailedAlert, BackupSLAFailedAlert, DpmoRPCreationFailureAlert, DOCVolumeMissing, SharepointROAddedAlert, SharepointRORemovedAlert, PartialBackupSuccessAlert, GlobalDbNotAvailable, LibraryDevicesDisabledAlert, LdmWarningThresholdReachedAlert, LdmErrorThresholdReachedAlert, CertificateExpiryWarningAlert, CertificateExpiryErrorAlert, RecoveryFailedWarningAlert, ExternalAlert, OnlineBackupServiceUnreachableAlert, OnlineBackupPoliciesInconsistentAlert, CloudBackupFailedAlert, PartialCloudBackupSuccessAlert, SLAMissedAlert, OfflineInitialCloudBackupPendingAlert, RestoreDBAlert |
配置: | Named |
規定値: | None |
必須: | False |
パイプライン入力を受け取る: | False |
ワイルドカード文字を受け取る: | False |
-DetailedErrorId
詳細なエラーの ID を指定します。
型: | Int32 |
配置: | Named |
規定値: | None |
必須: | False |
パイプライン入力を受け取る: | False |
ワイルドカード文字を受け取る: | False |
-DPMServerName
このコマンドレットでサーバー スコープを作成する DPM サーバーの名前を指定します。
型: | String |
配置: | 1 |
規定値: | None |
必須: | False |
パイプライン入力を受け取る: | False |
ワイルドカード文字を受け取る: | False |
-ErrorId
エラーの ID を指定します。
型: | Int32 |
配置: | Named |
規定値: | None |
必須: | False |
パイプライン入力を受け取る: | False |
ワイルドカード文字を受け取る: | False |
-ObjectId
接続をスコープとするオブジェクトの ID の配列を指定します。
型: | String[] |
配置: | 3 |
規定値: | None |
必須: | True |
パイプライン入力を受け取る: | False |
ワイルドカード文字を受け取る: | False |
-ObjectType
ObjectId パラメーターで定義されているオブジェクトの型を指定します。
このパラメーターに使用できる値は次のとおりです。
- データソース。 DatasourceID。
- ProtectionGroup。 ProtectionGroupID/ProtectionGroupName。
- ProductionServer。 ProductionServerID/ProductionServerName。
- ディスク。 DiskID。
- ボリューム。 VolumeID。
- 図書館。 LibraryID。
- ドライブ。 DriveID。
- AdhocAction。 ActionID。
- DPMServer。 DPMServerName。
型: | ScopedObjectType |
指定可能な値: | DpmServer, Datasource, ProtectionGroup, ProductionServer, Disk, Volume, Library, Drive, AdhocAction |
配置: | 2 |
規定値: | None |
必須: | True |
パイプライン入力を受け取る: | False |
ワイルドカード文字を受け取る: | False |