Get-DPMDatasetStatus
Get-DPMDatasetStatus
Gets the 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 for which this cmdlet gets dataset status. To obtain a Tape object, use the Get-DPMTape 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.
Examples
Example 1: Get dataset status for an archive tape
The first command gets the protection groups from the System Center 2012 – Data Protection Manager (DPM) server named TestingServer. The command stores these protection groups in the $PGroup variable.
The second command gets the tapes associated with the protection groups in $PGroup, and then stores them in the $PTape variable.
The third command returns the status of datasets on the tapes associated with the protection groups in $PGroup.
PS C:\> $PGroup = Get-DPMProtectionGroup -DPMServerName "TestingServer"
PS C:\> $PTape = Get-DPMTape -ProtectionGroup $PGroup
PS C:\> Get-DPMDatasetStatus -Tape $PTape