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> {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} ] [-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. The acceptable values for this parameter 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 an integer detailed error ID.
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.
Aliases |
none |
Required? |
false |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-ErrorId<Int32>
Specifies an integer error ID.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-ObjectId<String[]>
Specifies an array of identifiers 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 the following:
-- 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.
Notes
- For more information, type "
Get-Help New-DPMServerScope -detailed
".
Examples
Example 1: Create server scope for a connection
This example creates a connection to a DPM server.
The first command creates a server scope for the DPM server named DPMServer07, and 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 stored in the $ServerScope variable.
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
This example creates a connection to a DPM server.
The first command creates a server scope for the DPM server named DPMServer07, and stores that scope in the $ServerScope variable. The command specifies Datasource as the object type, with the specified 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 stored in the $ServerScope variable.
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