PowerShell script exchange
Post Reply
stevenahmet
Lurker
Posts: 2
Liked: 1 time
Joined: Nov 20, 2018 2:32 am
Full Name: Steven Ahmet
Contact:

Reporting via PowerShell

Post by stevenahmet »

Hi,

I'm looking for a way to grab a monthly report for a particular backup job. I guess it would just need to show the status of the job and I could input a time range.
What we're doing at the moment is right-clicking on a job and selecting "Report". I'm then just printing to PDF a subset of that HTML report to send to our head of security.

I'm trying to find a way to automate this process either via PowerShell or via Restful API.

Thanks.

Steve
falkob
Veeam Vanguard
Posts: 86
Liked: 31 times
Joined: Sep 28, 2017 7:47 am
Full Name: Falko Banaszak
Contact:

Re: Reporting via PowerShell

Post by falkob » 2 people like this post

Hi Steve,

first of all you could achieve this with Veeam ONE. There are plenty of predefined reports which will help you with receiving a monthly report.

I.e. this one -> Backup Job Historical Information

You can adjust those reports for particular jobs and schedule it for receiveing the report monthly. This would be the "fastest way" to automate this.

Another method would be to have a look at this PowerShell Report:
Veeam v9 – My Veeam Report 9.5.3

You can adjust the script for your needs and also schedule it in any desired way.

Hope this helps !

Best Regards

Falko
VCP6.5-DCV, VCP6-DCV, VMCE, VMCA, Veeam Vanguard, VMware vExpert
https://www.virtualhome.blog
stevenahmet
Lurker
Posts: 2
Liked: 1 time
Joined: Nov 20, 2018 2:32 am
Full Name: Steven Ahmet
Contact:

Re: Reporting via PowerShell

Post by stevenahmet » 1 person likes this post

Hi Falko,

I'd looked at that PS Report before, but obviously not closely enough. I've got it to do a monthly report, and only include the Backup Copy job that I require.
Thanks for the info.

Steve
falkob
Veeam Vanguard
Posts: 86
Liked: 31 times
Joined: Sep 28, 2017 7:47 am
Full Name: Falko Banaszak
Contact:

Re: Reporting via PowerShell

Post by falkob »

I'm happy it worked for you !
Have Fun :)

Regards
Falko
VCP6.5-DCV, VCP6-DCV, VMCE, VMCA, Veeam Vanguard, VMware vExpert
https://www.virtualhome.blog
pangal
Novice
Posts: 5
Liked: never
Joined: May 22, 2018 2:56 pm
Full Name: Sachin Pangal
Contact:

[MERGED] 7 days backup status of each client through powershell . Columns required 1) Client Name 2) Next seven column

Post by pangal »

Need 7 days backup status of each client through powershell/veeam one .
Columns required 1) Client Name 2) Next seven columns will be backup status of each day
veremin
Product Manager
Posts: 20283
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Reporting via PowerShell

Post by veremin »

Check report provided above and see whether it meets your expectations. Thanks!
pangal
Novice
Posts: 5
Liked: never
Joined: May 22, 2018 2:56 pm
Full Name: Sachin Pangal
Contact:

Re: Reporting via PowerShell

Post by pangal »

i need client name status for last 7 days
veremin
Product Manager
Posts: 20283
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Reporting via PowerShell

Post by veremin »

Then, you need to re-write the script, so that it analyzes not only the latest job session, but also six previous ones (assuming you're on daily schedule). Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests