Get-DPMJob

Get-DPMJob

Retrieves a list of current and previous jobs on a DPM server.

構文

Parameter Set: GetJobsDPM
Get-DPMJob [[-DPMServerName] <String> ] [[-Type] <DPMJobType[]> ] [[-Status] <GetDpmJobCmdlet+JobStatusType[]> ] [[-From] <DateTime> ] [[-To] <DateTime> ] [[-Newest]] [[-AdhocJobs]] [ <CommonParameters>]

Parameter Set: GetJobsDS
Get-DPMJob [-Datasource] <Datasource[]> [[-Type] <DPMJobType[]> ] [[-Status] <GetDpmJobCmdlet+JobStatusType[]> ] [[-From] <DateTime> ] [[-To] <DateTime> ] [[-Newest]] [[-AdhocJobs]] [ <CommonParameters>]

Parameter Set: GetJobsDSName
Get-DPMJob [-DatasourceName] <String[]> [[-DPMServerName] <String> ] [[-Type] <DPMJobType[]> ] [[-Status] <GetDpmJobCmdlet+JobStatusType[]> ] [[-From] <DateTime> ] [[-To] <DateTime> ] [[-Newest]] [[-AdhocJobs]] [ <CommonParameters>]

Parameter Set: GetJobsPG
Get-DPMJob [-ProtectionGroup] <ProtectionGroup[]> [[-Type] <DPMJobType[]> ] [[-Status] <GetDpmJobCmdlet+JobStatusType[]> ] [[-From] <DateTime> ] [[-To] <DateTime> ] [[-Newest]] [[-AdhocJobs]] [ <CommonParameters>]

Parameter Set: GetJobsPS
Get-DPMJob [-ProductionServer] <ProductionServer[]> [[-Type] <DPMJobType[]> ] [[-Status] <GetDpmJobCmdlet+JobStatusType[]> ] [[-From] <DateTime> ] [[-To] <DateTime> ] [[-Newest]] [[-AdhocJobs]] [ <CommonParameters>]

Parameter Set: GetJobsPSName
Get-DPMJob [-ProductionServerName] <String[]> [[-DPMServerName] <String> ] [[-Type] <DPMJobType[]> ] [[-Status] <GetDpmJobCmdlet+JobStatusType[]> ] [[-From] <DateTime> ] [[-To] <DateTime> ] [[-Newest]] [[-AdhocJobs]] [ <CommonParameters>]

Parameter Set: UpdateJobsDPM
Get-DPMJob [-Job] <Job[]> [ <CommonParameters>]

詳細説明

The Get-DPMJob cmdlet retrieves a list of current and previous jobs on a System Center 2012 – Data Protection Manager (DPM) server.

パラメーター

-AdhocJobs

Indicates that the cmdlet retrieves only ad hoc jobs, not scheduled jobs.

エイリアス

none

必須?

false

位置は?

7

既定値

none

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

false

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

false

-Datasource<Datasource[]>

Specifies an array of data source objects.

エイリアス

none

必須?

true

位置は?

1

既定値

none

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

True (ByValue)

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

false

-DatasourceName<String[]>

Specifies an array of names of data sources.

エイリアス

none

必須?

true

位置は?

1

既定値

none

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

True (ByValue)

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

false

-DPMServerName<String>

Specifies the name of a DPM server.

エイリアス

ComputerName,CN

必須?

false

位置は?

1

既定値

none

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

false

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

false

-From<DateTime>

Specifies the starting time in a range. The cmdlet retrieves jobs that fall into this range. Use the To parameter to specify the ending time in the range.

エイリアス

none

必須?

false

位置は?

4

既定値

none

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

false

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

false

-Job<Job[]>

Specifies a list of jobs.

エイリアス

none

必須?

true

位置は?

1

既定値

none

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

True (ByValue)

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

false

-Newest

Indicates the last job that ran on the filter objects.

エイリアス

none

必須?

false

位置は?

6

既定値

none

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

false

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

false

-ProductionServer<ProductionServer[]>

Specifies an array of protected computer objects.

エイリアス

none

必須?

true

位置は?

1

既定値

none

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

True (ByValue)

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

false

-ProductionServerName<String[]>

Specifies an array of names of protected computers.

エイリアス

none

必須?

true

位置は?

1

既定値

none

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

True (ByValue)

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

false

-ProtectionGroup<ProtectionGroup[]>

Specifies an array of protection group objects.

エイリアス

none

必須?

true

位置は?

1

既定値

none

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

True (ByValue)

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

false

-Status<GetDpmJobCmdlet+JobStatusType[]>

Specifies an array of job status types.

エイリアス

none

必須?

false

位置は?

4

既定値

none

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

false

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

false

-To<DateTime>

Specifies the ending time in a range. The cmdlet retrieves jobs that fall into this range. Use the From parameter to specify the starting time in the range.

エイリアス

none

必須?

false

位置は?

5

既定値

none

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

false

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

false

-Type<DPMJobType[]>

Specifies an array of DPM job types. Acceptable values for this parameter are:
-- Recovery
-- InitialReplication
-- Validation
-- ShadowCopy
-- Replication
-- MediaErase
-- DriveCleaning
-- DetailedInventory
-- Verification
-- DatasetCopy
-- ArchiveFromSC
-- RecoveryTape
-- LibraryRescan
-- DumpMedia
-- MediaRecatalog
-- OnlineRecatalog
-- FastInventory
-- CopyDataFromVolume
-- StagingAreaRestore
-- SharePointImportAndExport
-- SharePointCatalog
-- CloudBackup
-- CloudToStagingAreaRestore
-- StagingAreaToPsRecovery
-- StagingAreaToPsRestore

エイリアス

JobCategory,JobType

必須?

false

位置は?

2

既定値

none

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

false

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

false

<CommonParameters>

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

入力

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

出力

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

Example 1: Retrieve recent jobs

This command returns the latest jobs run on the DPM server named Contoso-DPMServer.

PS C:\> Get-DPMJob -DPMServerName "Contoso-DPMServer" -Newest

Example 2: Retrieve recent jobs for a protection group

This example returns a list of recent jobs run on protection groups on the DPM server named Contoso-DPMServer.

The first command uses the Get-ProtectionGroup cmdlet to retrieve the protection group, and then stores the result in the variable named $PGroup.

The second command uses the Get-DPMJob cmdlet to retrieve the list of recent jobs for the protection group stored in $PGroup.

PS C:\> $PGroup = Get-ProtectionGroup –DPMServerName "Contoso-DPMServer"PS C:\> Get-DPMJob -ProtectionGroup $PGroup

関連トピック

Restart-DPMJob

Stop-DPMJob