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

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

Re: Custom attribute

Post by Gostev »

Hi, no this is not possible at this time (hard coded). Thanks.
skayser
Enthusiast
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: Spex and 145 guests