PowerShell script exchange
Post Reply
govi
Enthusiast
Posts: 95
Liked: 7 times
Joined: Sep 26, 2017 11:38 am
Full Name: Govinda Naik
Contact:

script to check backup success and failure

Post by govi »

Hi All,

Could you please help me with simple script to check if Veeam Agent for Windows backup is success or failure using local computer event viewer?

Idea is to use this success or failure code during patch installation. Using third party patch management tool( not SSCM). We can run pre-deployment task which will check if Veeam Agent backup is successful and then start patching the system. If failure, then system wait until it see success code on system.

Thanks

Govi
Mildur
Product Manager
Posts: 8735
Liked: 2294 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: script to check backup success and failure

Post by Mildur » 2 people like this post

Hi Govi

Do you have Veeam Backup & Replication for Agent management? Or those all standalone agents?
Veeam Backup & Replication would allow you to use our own PowerShell command lets to check if the backup was successful.

For standalone agents, you can check for those events:
https://helpcenter.veeam.com/docs/agent ... tml?ver=60

For a start, check out this blog and then build your own script:
https://adamtheautomator.com/get-eventlog/

One example was also written by one of our forum members. The script is older, but reads windows event logs to send out a mail. That should give you an idea in which direction you need to develop your script:
post160402.html#p160402

Best,
Fabian
Product Management Analyst @ Veeam Software
govi
Enthusiast
Posts: 95
Liked: 7 times
Joined: Sep 26, 2017 11:38 am
Full Name: Govinda Naik
Contact:

Re: script to check backup success and failure

Post by govi »

Hi Fabian,

All agents are Standalone agents.

I will go through article and follow the direction.

Thanks

Govi
Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests