Поделиться через


New-DPMServerScope

New-DPMServerScope

Creates a DPM server scope object.

Syntax

Parameter Set: Default
New-DPMServerScope [[-DPMServerName] <String> ] [-ObjectType] <ScopedObjectType> {DpmServer | Datasource | ProtectionGroup | ProductionServer | Disk | Volume | Library | Drive | AdhocAction} [-ObjectId] <String[]> [-AlertType <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} ] [-DetailedErrorId <Int32> ] [-ErrorId <Int32> ] [ <CommonParameters>]

Detailed Description

The New-DPMServerScope cmdlet creates a System Center 2012 – Data Protection Manager (DPM) server scope object. You can create a scoped DPM server connection by using the Connect-DPMServer cmdlet with a scope object.

Parameters

-AlertType<AlertEnum>

Specifies the type of alert for the connection scope. Valid values are:

-- 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

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-DetailedErrorId<Int32>

Specifies the ID of a detailed error.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-DPMServerName<String>

Specifies the name of a DPM server for which this cmdlet creates a server scope.

Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ErrorId<Int32>

Specifies the ID of an error.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ObjectId<String[]>

Specifies an array of IDs for objects that scope a connection.

Aliases

none

Required?

true

Position?

3

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ObjectType<ScopedObjectType>

Specifies the type of objects defined in the ObjectId parameter. The object types and identifiers are as follows:

-- Datasource. DatasourceID.
-- ProtectionGroup. ProtectionGroupID/ProtectionGroupName.
-- ProductionServer. ProductionServerID/ProductionServerName.
-- Disk. DiskID.
-- Volume. VolumeID.
-- Library. LibraryID.
-- Drive. DriveID.
-- AdhocAction. ActionID.
-- DPMServer. DPMServerName.

Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Create server scope for a connection

The first command creates a server scope for the DPM server named DPMServer07, and then stores that scope in the $ServerScope variable. The command specifies ProtectionGroup as the object type, with an object ID of Protection Group 01.

The second command uses the Connect-DPMServer cmdlet to create a connection that uses the server scope in $ServerScope.

PS C:\> $ServerScope = New-DPMServerScope -DPMServerName "DPMServer07" -ObjectType ProtectionGroup -ObjectID "Protection Group 01"
PS C:\> $DpmServer = Connect-DPMServer -DPMServerScope $ServerScope

Example 2: Create server scope that has alerts specified

The first command creates a server scope for the DPM server named DPMServer07, and then stores that scope in the $ServerScope variable. The command specifies Datasource as the object type and specifies an object ID. The command also specifies an alert type and both detailed error ID and error ID.

The second command uses the Connect-DPMServer cmdlet to create a connection that has the server scope in $ServerScope.

PS C:\> $ServerScope = New-DPMServerScope -DPMServerName "DPMServer07" -ObjectType Datasource -ObjectID "70fd1133-1bab-4178-8e8c-24d928b6b16c" -AlertType BackupToTapeFailedAlert -DetailedErrorID 910 -ErrorID 3113 
PS C:\> $DpmServer = Connect-DPMServer -DPMServerScope $ServerScope

Connect-DPMServer