Code: Select all
Get-VBRTapeLibrary -Name "ScalarName" | Import-VBRTapeMedium -Wait
Code: Select all
Get-VBRTapeLibrary -Name "ScalarName" | Import-VBRTapeMedium -Wait
Code: Select all
$ImportSession.logger.getlog().updatedrecords.title
Code: Select all
$ImportSession = (Get-VBRTapeLibrary -Name "ScalarName" | Import-VBRTapeMedium -Wait)
write $ImportSession
$ImportSession.logger.getlog().updatedrecords.title
Code: Select all
asnp VeeamPSSnapin
$Library = Get-VBRTapeLibrary -Name "Name of your tape library"
$Session = $Library | Import-VBRTapeMedium -Wait
$Session.Log | select title
Code: Select all
Get-VBRTapeLibrary -Name "Library name" | Import-VBRTapeMedium -Wait
Code: Select all
# Get unrecognized media pool along with the tapes within
$unrecognized = Get-VBRTapeMediaPool -Name 'Unrecognized'
$unrecognizedTapes = Get-VBRTapeMedium -MediaPool $unrecognized
# Import new tapes added to an existing library
$import = Import-VBRTapeMedium -Library $library -Wait
# Wait until DB is populated with new tapes records
Start-Sleep -Seconds 10
# Get the list of tapes from Unrecognized Media Pool once again
$unrecognizedTapesNew = Get-VBRTapeMedium -MediaPool $unrecognized
# Compare old list with a new one
PS C:\Users\Administrator> Compare-Object -ReferenceObject $unrecognizedTapes -DifferenceObject $unrecognizedTapesNew
InputObject SideIndicator
----------- -------------
BAR6C94CA =>
BAR6F94C9 =>
Users browsing this forum: No registered users and 7 guests