Operational Defect Database

BugZero found this defect 2617 days ago.

Veeam | kb2270

Veeam ONE and Automation Services

Last update date:

3/31/2021

Affected products:

Veeam ONE

Affected releases:

8.0

Fixed releases:

No fixed releases provided.

Description:

Challenge

The suggestions below leverage the functionality of Veeam ONE in order to automate some administration tasks.

Cause

To be able to use the steps below, make sure you are using Veeam Availability Suite 8 or newer version.

Solution

VM with no backup1. Create VM backup alarm in Veeam ONE via Alarms Management tab. 2. Define the required RPO and assign the alarm. 3. In the Post alarm actions specify a batch file to trigger a backup PowerShell script. 4. When the alarm is triggered, the corresponding PowerShell script will create a quick backup of the VM.If you don't have any VMs added to the backup jobs, then you can write a PowerShell script that will create a job for the VM and then run it.Terminate job after X hours1. Create backup alarm and select jobs you want to monitor. 2. Define the maximum duration. 3. In the post alarm actions specify a batch file to trigger a backup PowerShell script. 4. The PowerShell script can be configured to perform one of the following actions: • Stop the required backup job. • Run a script to check for orphaned VM snapshots and then try to consolidate them. Delete orphaned VM snapshots1. Use one of the predefined VM snapshot alarms (snapshot size or snapshot age). 2. In the post alarm actions specify a batch file to trigger a backup PowerCLI script which will try to consolidate all VM snapshots.You can even specify the name of the snapshots you want to consolidate in the PowerCLI script. Automated VM failover1. Detect failed VMs/hosts/datastores via one of the predefined alarms in Veeam ONE (for example, VM power state, VM Tools state etc.). 2. In the post alarm actions specify a batch file to trigger a backup PowerShell script. 3. To make sure it is not a network glitch run additional verifications within the PowerCLI/PowerShell script. 4. Once all verifications are performed create a failover plan in Veeam backup console and then run it. 4a. As an alternative, you can create a PowerShell script to initiate VM failover operation without using failover plans. 4b. Additionally, you can start VM replicas manually via PowerCLI script. VM tags in Veeam ONE and Veeam B&R1. Open Veeam ONE Business View and create the required categories/groups for automatic categorization rules. 2. Create categorization rule or dynamic group via Business View. See the online help center web page for more info > Configuring Categorization Rules for v.8 and v.9. 3. Configure Veeam ONE to write VM Tags to the vCenter Server > Configuring Options for v.8 and v.9. 4. Verify Veeam ONE Reporter collection job schedule (this job is responsible for writing VM tags) > Scheduling Data Collection for v.8 and v.9. 5. Open Veeam Backup console and start using VM tags as a source for your backup and replication jobs.Receive alarms via text message1. Navigate to any alarm you would like to configure this action for. 2. Set Send email notifications as post alarm action. 3. Specify your cell phone number in the format described below. The 10-digit number should be your cell phone number.   Alltel[10-digit phone number]@message.alltel.com Example: 1234567890@message.alltel.com AT&T (formerly Cingular)[10-digit phone number]@txt.att.net [10-digit phone number]@mms.att.net (MMS) [10-digit phone number]@cingularme.com Example: 1234567890@txt.att.net Boost Mobile[10-digit phone number]@myboostmobile.com Example: 1234567890@myboostmobile.com Nextel (now Sprint Nextel)[10-digit telephone number]@messaging.nextel.com Example: 1234567890@messaging.nextel.com Sprint PCS (now Sprint Nextel)[10-digit phone number]@messaging.sprintpcs.com [10-digit phone number]@pm.sprint.com (MMS) Example: 1234567890@messaging.sprintpcs.com T-Mobile[10-digit phone number]@tmomail.net Example: 1234567890@tmomail.net US Cellular[10-digit phone number]email.uscc.net (SMS) [10-digit phone number]@mms.uscc.net (MMS) Example: 1234567890@email.uscc.net Verizon[10-digit phone number]@vtext.com [10-digit phone number]@vzwpix.com (MMS) Example: 1234567890@vtext.com Virgin Mobile USA[10-digit phone number]@vmobl.com Example: 1234567890@vmobl.com Audible alarms1. Set a batch script as an action item for the alarm  2. Use “psexec” to execute another *.bat file to play an audio file on any serverCreate your OWN alarms for Veeam B&R1. Navigate to Alarm Management tab. 2. Select Veeam B&R node as the alarm type. 3. Click to create new alarm and select Event as an alarm trigger. 4. Choose any alarm from the list below triggered by Veeam B&R.   Event IDEvent Name 23010Job created 23050Job modified 23090Job deleted 23110Job objects added 32120Job objects deleted 23130Job objects modified 23210SureBackup job created 23220SureBackup job modified 23230SureBackup job deleted 23310SureBackup objects added 23320SureBackup objects deleted 23330SureBackup objects modified 110Backup job started 190Backup job finished 150Backup task finished 114Tape backup job started 194Tape backup job finished 210Restore session started 250Restore vSphere task finished 251Restore Hyper-V task finished 290Restore session finished 310SureBackup job started 350SureBackup vSphere verification task finished 351SureBackup vSpherevalidation task finished 360SureBackup Hyper-V verification task finished 361SureBackup Hyper-V validation task finished 390SureBackup job finished 410Backup copy job started 450Backup copy task finished 490Backup copy job finished 510File copy job started 590File copy job finished 512VM copy job started 592VM copy job finished 10010Restore point created 10050Restore point removed 10090Restore point updated 10014Tape restore point created 20114Tape updated 21210Proxy server established connection 21214Proxy server lost connection 21220Repository server established connection 21224Repository server lost connection 21230WAN accelerator established connection 21234WAN accelerator lost connection 24010License installed 24020License expiring 24022License evaluation expiring 24030License expired 24040License support expiring 24050License support expired 23410Second destination job has been assigned 23420Second destination job has been removed 610Quick migration job has been finished

More Information

Before you implement any of the suggested solution in production, use these script examples in your test environment and make sure you adapt them to your needs.

Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Solved

Learn More

Search:

...