Powershell to Get list of tapes in I/E slots

PowerShell script exchange

Powershell to Get list of tapes in I/E slots

Veeam Logoby stuartmacgreen » Mon Mar 09, 2015 8:12 pm

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?
Backup Infrastructure: Veeam B&R 9.5 • vSphere 5.5 U3e • HP MSA 2040 [FC] (Backup Storage) • HP MSL6480 LTO-6 (Tape Storage)
(Veeam Endpoint Backup protecting Veeam Proxy / Tape / Repository servers)
stuartmacgreen
Enthusiast
 
Posts: 87
Liked: 16 times
Joined: Tue May 01, 2012 11:56 am
Full Name: Stuart Green

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

Veeam Logoby v.Eremin » Tue Mar 10, 2015 2:04 pm

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.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

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

Veeam Logoby stuartmacgreen » Tue Mar 10, 2015 3:39 pm

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.
Backup Infrastructure: Veeam B&R 9.5 • vSphere 5.5 U3e • HP MSA 2040 [FC] (Backup Storage) • HP MSL6480 LTO-6 (Tape Storage)
(Veeam Endpoint Backup protecting Veeam Proxy / Tape / Repository servers)
stuartmacgreen
Enthusiast
 
Posts: 87
Liked: 16 times
Joined: Tue May 01, 2012 11:56 am
Full Name: Stuart Green

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

Veeam Logoby pvr2002 » Mon Feb 27, 2017 9:43 pm

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?
pvr2002
Novice
 
Posts: 7
Liked: never
Joined: Mon Feb 27, 2017 8:50 pm


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 4 guests