I need to write a report about tapes that currently in my library that are FULL. This command, unfortunately, is monumentally slow:
$TapesToBeEjected = Get-VBRTapeMedium -Library $LibraryName | Where {{$_.IsFull -eq $TRUE}} | Select Name, LastWriteTime, MediaPoolID, IsFull, Location | Sort -Property MediaPoolID, Name
So rather than querying the all the tapes (I have over 1300), I figure it will be faster to just query the library for the tapes currently in the slots and drives (that will be about 80). Then I can do the $_.IsFull on just those.
But I am not seeing a command that seems to do that. Is there one, that queries the library and returns tapes in slots and drives?
Otherwise I would have to loop though Get-VBRTapeMedium -Library $LibraryName , select only $_.Location = Slot or Drive, and then re-select for $_.IsFull.
And I don't think that would be materially faster.
Is there a better way to get the info I need?
-
MikeLeone
- Enthusiast
- Posts: 26
- Liked: 2 times
- Joined: Sep 21, 2022 3:03 pm
- Full Name: Michael Leone
- Contact:
Who is online
Users browsing this forum: No registered users and 7 guests