Generate Veeam Session Report (HTML) from Powershell

PowerShell script exchange

Generate Veeam Session Report (HTML) from Powershell

Veeam Logoby arno » Thu Jul 17, 2014 6:32 am

Hello,

After many searches in documentation and forums, I'm still looking for a way to generate HTML report from command line (Powershell or other way).

I don't want any specific or fancy report, I just want to click on this using CLI :
Image

Could you help me on this ?

Thanks in advance.
arno
Influencer
 
Posts: 12
Liked: 1 time
Joined: Thu Jun 18, 2009 9:21 am

Re: Generate Veeam Session Report (HTML) from Powershell

Veeam Logoby v.Eremin » Thu Jul 17, 2014 9:06 am

Hi,

Please, take a look at the existing report created by one of our users and see whether it meets your expectations.

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

Re: Generate Veeam Session Report (HTML) from Powershell

Veeam Logoby arno » Thu Jul 17, 2014 9:14 am

Hi,

Thanks a lot for your answer.

I've already seen this, it is a great report, but I don't have any use of this.

All I want is the official Veeam session report. I can't have it sent by Veeam Backup itself, as my jobs are launched and managed by an external tool.
arno
Influencer
 
Posts: 12
Liked: 1 time
Joined: Thu Jun 18, 2009 9:21 am

Re: Generate Veeam Session Report (HTML) from Powershell

Veeam Logoby v.Eremin » Thu Jul 17, 2014 9:25 am

It seems to contain everything you're after. Even the representation appears to be in HTML.

Anyway, the approach will be write something similar yourself. You'll have to find the last session of given job and get from it whatever parameters you want to. For instance,

Code: Select all
asnp VeeamPSSnapin
$Job = Get-VBRJob -Name "Name of your job"
$Session = $Job.FindLastSession()
$Session.State
$Session.CreationTime
$Session.EndTime
$Session.Info.BackupTotalSize
$Session.BackupStats.CompressRatio
$Session.BackupStats.DataSize
$Session.BackupStats.DedupRatio


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

Re: Generate Veeam Session Report (HTML) from Powershell

Veeam Logoby arno » Thu Jul 17, 2014 9:28 am

Thanks for your help.

So, it's not possible to use Veeam builtin reports from CLI ?
arno
Influencer
 
Posts: 12
Liked: 1 time
Joined: Thu Jun 18, 2009 9:21 am

Re: Generate Veeam Session Report (HTML) from Powershell

Veeam Logoby v.Eremin » Thu Jul 17, 2014 9:31 am

Yep, there is no such a thing like "generate report" method. However, with some efforts you can create similar report, using PS capabilities, since the given data is available and can be gotten via PowerShell smoothly. Thanks.
v.Eremin
Veeam Software
 
Posts: 13543
Liked: 1002 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Generate Veeam Session Report (HTML) from Powershell

Veeam Logoby arno » Thu Jul 17, 2014 9:37 am

Well, it seems a bit reinventing the wheel... When I click on the appropriate option in GUI, I even have the HTML report generated in C:\Users\username\AppData\Local\Temp.

I guess it's time to use AutoHotKey to achieve that...
arno
Influencer
 
Posts: 12
Liked: 1 time
Joined: Thu Jun 18, 2009 9:21 am

Re: Generate Veeam Session Report (HTML) from Powershell

Veeam Logoby v.Eremin » Thu Jul 17, 2014 9:48 am

Not sure whether the usage of AutoHotKey would be easier than implementing simple PS script or even taking existing PS report, but you should certainly use the approach that suites your needs and desires best. Thanks.
v.Eremin
Veeam Software
 
Posts: 13543
Liked: 1002 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

[MERGED] : Backup Job Details-Report extraction

Veeam Logoby khanahsan » Tue Sep 16, 2014 1:48 pm

Hello everyone,

I want to extract a report from Veeam B&R about the Backup job details,properties and schedules of all already created jobs in a report format.
how can I get it via Powershell ?
There's not too much filtering options in Veeam Enterprise Manager for reporting and Analysis.
Please guide me through .
khanahsan
Lurker
 
Posts: 1
Liked: never
Joined: Tue Sep 16, 2014 1:39 pm
Full Name: Khan Ahsan Masroor

Re: Generate Veeam Session Report (HTML) from Powershell

Veeam Logoby v.Eremin » Tue Sep 16, 2014 2:16 pm

Your post has been merged into existing discussion regarding similar matter. Please, check the answers provided above. Thanks.
v.Eremin
Veeam Software
 
Posts: 13543
Liked: 1002 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

[MERGED] : Retrieve Data Read and Transferred figures

Veeam Logoby OllyS » Wed Sep 17, 2014 10:43 am

Hi,

I know you can view the properties of the backup under 'Disks' and see stats like data size and backup size, but when comparing them to the job history, these aren't exactly the same.

I need a script the retrieve each the figures for 'Read' and 'Transferred' from each job every morning, is there an simple way to do this?

Thanks
OllyS
Lurker
 
Posts: 1
Liked: never
Joined: Wed Sep 17, 2014 10:34 am

Re: Generate Veeam Session Report (HTML) from Powershell

Veeam Logoby v.Eremin » Wed Sep 17, 2014 11:57 am

Hi, Olly, kindly check the answers provided above; should be helpful. Thanks.
v.Eremin
Veeam Software
 
Posts: 13543
Liked: 1002 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

[MERGED] : Export List of Transferred Data

Veeam Logoby Jack1874 » Tue Nov 10, 2015 11:13 pm

Hello, is it possible to report on \ export a list of Transferred data from each job... from the previous run?

TIA
Jack1874
Enthusiast
 
Posts: 89
Liked: 4 times
Joined: Sat Oct 17, 2015 3:32 pm
Location: Canada
Full Name: Stuart Little

Re: Generate Veeam Session Report (HTML) from Powershell

Veeam Logoby v.Eremin » Wed Nov 11, 2015 9:34 am

You need to modify the script provided above to get the desired information for all jobs. A simple cycle would be enough. Thanks.
v.Eremin
Veeam Software
 
Posts: 13543
Liked: 1002 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

[MERGED] Daily Report on a single job

Veeam Logoby gveat » Fri Sep 30, 2016 12:27 pm

How would I generate a report that mimics that of the gui? I want to have a report created daily that mimics what is seen in the gui if you click on report for a particular job.
gveat
Influencer
 
Posts: 17
Liked: 2 times
Joined: Thu Sep 29, 2016 6:21 pm
Full Name: Greg Veater

Next

Return to PowerShell



Who is online

Users browsing this forum: No registered users and 8 guests