Get tape content via powershell

PowerShell script exchange

Re: Get tape content via powershell

Veeam Logoby v.Eremin » Thu Jun 02, 2016 12:59 pm

No, currently there are no substitutions for the mentioned cmdlet. Do you have Veeam ONE deployed, by the way? Thanks.
v.Eremin
Veeam Software
 
Posts: 13255
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

[MERGED] Tape Content

Veeam Logoby spgeblg » Thu Sep 08, 2016 11:12 am

Hello Guys,

Is there any command I can get the objects stored on a tape medium ?

Thank you.
spgeblg
Influencer
 
Posts: 10
Liked: never
Joined: Tue Jul 05, 2016 8:34 am
Full Name: Blago Blagoev

Re: Get tape content via powershell

Veeam Logoby v.Eremin » Thu Sep 08, 2016 12:14 pm 1 person likes this post

Veeam ONE with its predefined report might be exactly what you're looking for. Thanks.
v.Eremin
Veeam Software
 
Posts: 13255
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Get tape content via powershell

Veeam Logoby McClane » Mon Sep 12, 2016 8:44 am 2 people like this post

Buying the expensive Veeam One just for the purpose of knowing what's on your backup tapes is just wrong.
If I hadn't B&R already I would buy another backup product. What might be the case if Veeam keeps raising the price tag with every other major release which has always "The next big thing" that I never use.
McClane
Enthusiast
 
Posts: 91
Liked: 10 times
Joined: Sat Jun 20, 2009 12:47 pm

Re: Get tape content via powershell

Veeam Logoby v.Eremin » Mon Sep 12, 2016 11:46 am

Buying the expensive Veeam One just for the purpose of knowing what's on your backup tapes is just wrong.

Actually, the said product has much more than just tape backup advanced reporting. Anyway, I was just trying to propose the easiest option in case you have the given solution.

Is there any command I can get the objects stored on a tape medium ?

You can try to modify the script provided in this thread and see whether it meets your expectations. Below, kindly, find a rough example:

Code: Select all
Asnp VeeamPSSnapin

$table = New-Object system.Data.DataTable “Tape content”
$col1 = New-Object system.Data.DataColumn FilePath,([string])
$col2 = New-Object system.Data.DataColumn FileName,([string])
$col3 = New-Object system.Data.DataColumn Barcode,([string])

$table.columns.add($col1)
$table.columns.add($col2)
$table.columns.add($col3)

Foreach ($TapeCatalog in Find-VBRTapeCatalog)
    {
    $row = $table.NewRow()         
    $row.FilePath = $TapeCatalog.Parent.Path.Parent.Link
    $row.FileName = $TapeCatalog.name
    $row.Barcode = $TapeCatalog.Versions.parts.GetTapeMedium().barcode
    $table.Rows.Add($row)
    }

$table


Thanks.
v.Eremin
Veeam Software
 
Posts: 13255
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Get tape content via powershell

Veeam Logoby McClane » Mon Sep 19, 2016 1:06 pm 1 person likes this post

v.Eremin wrote:Actually, the said product has much more than just tape backup advanced reporting. Anyway, I was just trying to propose the easiest option in case you have the given solution.

Thanks.


That I know. But many companies already have products for monitoring so I could never justify the expenses for another product with the same functionalities only to get what is on my tapes. I know that all software developers want everyone to just use their products, but that is an unrealistic appeal. The per head licence costs for all products we use are getting higher and higher every year with literally no additional use. Even worse, even without changing the hardware you have to pay more because some companies will charge you per core nowadays from one version to the next. It gets harder every year to calculate the financial risks. Maybe next year Microsoft will charge for every bit you send over the virtual network cards, who knows.
McClane
Enthusiast
 
Posts: 91
Liked: 10 times
Joined: Sat Jun 20, 2009 12:47 pm

Re: Get tape content via powershell

Veeam Logoby bevair » Wed Dec 07, 2016 10:48 pm 1 person likes this post

v.Eremin wrote:"Buying the expensive Veeam One just for the purpose of knowing what's on your backup tapes is just wrong."
Actually, the said product has much more than just tape backup advanced reporting. Anyway, I was just trying to propose the easiest option in case you have the given solution.



The fundamental issue is that tape media information cmdlets have been deprecated without an amiable replacement. The fact that you keep pushing Veeam One for information that had always been accessible, but now has been officially taken away, is a bitter pill to swallow.
bevair
Lurker
 
Posts: 2
Liked: 1 time
Joined: Wed Dec 07, 2016 10:29 pm
Full Name: Warren

Re: Get tape content via powershell

Veeam Logoby v.Eremin » Fri Dec 09, 2016 2:44 pm

The fundamental issue is that tape media information cmdlets have been deprecated without an amiable replacement.

Which cmdlet are you talking about? The modified version of my original script still makes use of Find-VBRTapeCatalog cmdlet.

The fact that you keep pushing Veeam One for information that had always been accessible, but now has been officially taken away, is a bitter pill to swallow.

Again, I'm not pushing Veeam ONE. If I were, I would not have provided an original script in the first place.

It's just easier to check at the beginning whether a customer happens to have solution that have all of the said issues addressed, before writing a script (which might be a time-consuming process).

Thanks.
v.Eremin
Veeam Software
 
Posts: 13255
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Get tape content via powershell

Veeam Logoby bevair » Fri Dec 09, 2016 2:58 pm

v.Eremin wrote:The modified version of my original script still makes use of Find-VBRTapeCatalog cmdlet.


That cmdlet is deprecated, which means that the example script you graciously provided, won't be supported past B&R 8.0

I'm seeking, in earnest, a legitimate means to create a custom report via powershell which charts a full backup map of all VMs, their location in repository/tape, and the backup type.

If a viable means to do so doesn't come about, then I suppose I'll have to pursue writing some SQL queries against the Veeam database to get the information we want to see. I was just hoping I wouldn't have to spend even more time on understanding the table/key relationships to make that happen.
bevair
Lurker
 
Posts: 2
Liked: 1 time
Joined: Wed Dec 07, 2016 10:29 pm
Full Name: Warren

Re: Get tape content via powershell

Veeam Logoby v.Eremin » Fri Dec 09, 2016 3:35 pm

It still works, though. It's been marked deprecated due to it lacking the so-called wrapper. Since it operates with product db (changes to which might be introduced with every product update/release) directly , we cannot guarantee its reliable work any longer. Thus, the "deprecated" status.

I encourage you to still try it out and see whether it meets your expectations. The last time I played with it, it worked more or less OK, however, I had to change the original script slightly.

Thanks.
v.Eremin
Veeam Software
 
Posts: 13255
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Get tape content via powershell

Veeam Logoby ober72 » Sat Dec 10, 2016 6:08 pm

Hi folks,

I just tried it and it won't work. Also We have Veeam One but the report does not seem to give Tape content, unless I am missing something.

thanks
Geoff Burke
VMCE V9
ober72
Service Provider
 
Posts: 263
Liked: 38 times
Joined: Fri Jan 24, 2014 4:10 pm
Location: CANADA
Full Name: Geoff Burke

Re: Get tape content via powershell

Veeam Logoby ober72 » Sat Dec 10, 2016 6:09 pm

Wait I retract that, read the output, says no files found in the output... something. I will investigate. That might explain why Veeam one report not putting out much info either.

Thanks
Geoff Burke
VMCE V9
ober72
Service Provider
 
Posts: 263
Liked: 38 times
Joined: Fri Jan 24, 2014 4:10 pm
Location: CANADA
Full Name: Geoff Burke

Re: Get tape content via powershell

Veeam Logoby v.Eremin » Mon Dec 12, 2016 10:56 am

Just to be on the same page - which script and report did you try? I was talking about this script and this report. Thanks.
v.Eremin
Veeam Software
 
Posts: 13255
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Get tape content via powershell

Veeam Logoby ober72 » Mon Dec 12, 2016 7:39 pm

Yes both of those ones.

Thanks
Geoff Burke
VMCE V9
ober72
Service Provider
 
Posts: 263
Liked: 38 times
Joined: Fri Jan 24, 2014 4:10 pm
Location: CANADA
Full Name: Geoff Burke

Re: Get tape content via powershell

Veeam Logoby ober72 » Mon Dec 12, 2016 7:40 pm

The Veeam one version looks like it only reports VM backups and not file to tape.

thanks
Geoff Burke
VMCE V9
ober72
Service Provider
 
Posts: 263
Liked: 38 times
Joined: Fri Jan 24, 2014 4:10 pm
Location: CANADA
Full Name: Geoff Burke

PreviousNext

Return to PowerShell



Who is online

Users browsing this forum: No registered users and 3 guests