Get-DPMDatasetStatus
Get-DPMDatasetStatus
Returns status of datasets on an archive tape.
Syntax
Parameter Set: Default
Get-DPMDatasetStatus [-Tape] <Media> [ <CommonParameters>]
Detailed Description
The Get-DPMDatasetStatus cmdlet returns the status of datasets on an archive tape.
Parameters
-Tape<Media>
Specifies a Tape object. To obtain a Tape object, use the Get-Tape cmdlet.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
true (ByValue) |
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 Get-DPMDatasetStatus -detailed
".
Examples
Example 1: Get dataset status for an archive tape
This example returns the status of datasets on an archive tape.
The first command gets the protection groups from the System Center 2012 – Data Protection Manager (DPM) server named TestingServer and stores these protection groups in the variable named $Pg.
The second command gets the tapes associated with the protection groups in $Pg and stores the result in the variable named $Pt.
The third command returns the status of datasets on the tapes associated with the protection groups in $Pg.
PS C:\> $Pg = Get-ProtectionGroup -DPMServerName "TestingServer"
PS C:\> $Pt = Get-Tape -ProtectionGroup $Pg
PS C:\> Get-DPMDatasetStatus -Tape $Pt