Comprehensive data protection for all workloads
Post Reply
Posts: 10
Liked: never
Joined: Jun 16, 2009 8:17 pm
Full Name: Ivo Beerens

Custom attribute

Post by ibeerens » Jun 22, 2011 10:13 am

In the backup it is possible to fill in the custom attribute for the VM with the backup status in vCenter after the backup is completed. Is it possible to adjust the message displayed in the custom attribute per VM for example in two separate custom attributes for data and time?

SVP, Product Management
Posts: 24304
Liked: 3335 times
Joined: Jan 01, 2006 1:01 am
Location: Baar, Switzerland

Re: Custom attribute

Post by Gostev » Jun 22, 2011 10:35 am

Hi, no this is not possible at this time (hard coded). Thanks.

Posts: 27
Liked: never
Joined: Jul 13, 2010 8:28 am
Full Name: Sebastian Kayser

Re: Custom attribute

Post by skayser » Sep 13, 2011 10:42 am

Ivo, as long as the field value is hardcoded in Veeam, you could use PowerCLI to extract the date and time. It's rather easy. Simplified example snippet:

Code: Select all

$date_regex = 'Veeam Backup: Time \[([^\]]+)\]'
$cf_status = 'Veeam Status'

$vm = get-vm FooBar

if (($vm.CustomFields[$cf_status] -match $date_regex)) {
    $date = [DateTime]::Parse($matches[1]);
    # now you have  a date time object to play with
} else {
    # error: no backup information found in $cf_status
We use this approach to check for current backups with Nagios. You could also use it to populate extra custom fields of your own if you want to. HTH

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 66 guests