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 »

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?
Chief Product Officer
Posts: 31023
Liked: 6428 times
Joined: Jan 01, 2006 1:01 am
Location: Baar, Switzerland

Re: Custom attribute

Post by Gostev »

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 »

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: balazs.nagy, pedro.cardoso and 37 guests