PowerShell script exchange
Post Reply
stuartmacgreen
Expert
Posts: 149
Liked: 34 times
Joined: May 01, 2012 11:56 am
Full Name: Stuart Green
Contact:

Powershell to Get list of tapes in I/E slots

Post by stuartmacgreen »

Is there a command to check for tapes in the I/E slot of a tape library. I can run import powershell command but reports not-successful if no tapes found. Want to do logic check - possible?
veremin
Product Manager
Posts: 20283
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Powershell to Get list of tapes in I/E slots

Post by veremin »

I don't think it's possible to somehow implement the said logic check via PS. Tapes located in I/O port are treated as offline, and don't contain any information about whether or not they are present inside I/O slot.
stuartmacgreen
Expert
Posts: 149
Liked: 34 times
Joined: May 01, 2012 11:56 am
Full Name: Stuart Green
Contact:

Re: Powershell to Get list of tapes in I/E slots

Post by stuartmacgreen »

Understand, but Veeam must query the library at 4:00 PM as from the Import Tapes job detail the second line returns it has found tapes.

Code: Select all

3/9/2015 4:00:02 PM          Job started at 3/9/2015 4:00:02 PM
[b]3/9/2015 4:00:05 PM          Found 10 tapes for import in I/E ports[/b]
3/9/2015 4:00:32 PM          Importing tape from I/E port 1 to Slot 3
3/9/2015 4:00:59 PM          Importing tape from I/E port 2 to Slot 25
3/9/2015 4:01:26 PM          Importing tape from I/E port 3 to Slot 26
3/9/2015 4:01:54 PM          Importing tape from I/E port 4 to Slot 33
3/9/2015 4:02:22 PM          Importing tape from I/E port 5 to Slot 34
3/9/2015 4:02:52 PM          Importing tape from I/E port 6 to Slot 35
3/9/2015 4:03:21 PM          Importing tape from I/E port 7 to Slot 36
3/9/2015 4:03:49 PM          Importing tape from I/E port 8 to Slot 37
3/9/2015 4:04:18 PM          Importing tape from I/E port 9 to Slot 38
3/9/2015 4:04:46 PM          Importing tape from I/E port 10 to Slot 45
3/9/2015 4:04:46 PM          Starting tape library discovery job
3/9/2015 4:04:46 PM          Job finished at 3/9/2015 4:04:46 PM
I was just wanting that info.
pvr2002
Influencer
Posts: 10
Liked: never
Joined: Feb 27, 2017 8:50 pm
Contact:

Re: Powershell to Get list of tapes in I/E slots

Post by pvr2002 »

I know this is an old thread, but I'm looking for the same information. Were you ever able to figure out how to query the I/E slots?
Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests