Wildcard in Expressions

Monitoring and reporting for Veeam Backup & Replication, VMware vSphere and Microsoft Hyper-V

Wildcard in Expressions

Veeam Logoby JWilliams » Tue Jul 22, 2014 5:03 pm

Is it possible to use wildcards in expressions such as:

CASE
WHEN CustomAttribute("Backup") = "Veeam Backup: Job name: [03c. UNI Monthly Active Directory Backup]*" THEN "03c. UNI Monthly Active Directory Backup"
etc, etc, etc for all relevant backup jobs
End

I am using veeam backup and replication to populate a custom attribute in VCenter named backup with backup info which changes, such as time and date stamp. Therefore I cannot look for a static string but I want to provide the backup info business view to others
JWilliams
Influencer
 
Posts: 10
Liked: never
Joined: Tue Sep 17, 2013 1:48 pm
Full Name: Jayme Williams

Re: Wildcard in Expressions

Veeam Logoby Vitaliy S. » Tue Jul 22, 2014 8:50 pm

Hi Jayme,

These kind of wildcards are not possible in the dynamic grouping expression, however you can try to use "left" method to parse VM custom attribute. Let me talk to the dev team tomorrow about possible ways to solve this.

Thanks!
Vitaliy S.
Veeam Software
 
Posts: 19558
Liked: 1102 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

Re: Wildcard in Expressions

Veeam Logoby JWilliams » Wed Jul 23, 2014 12:59 pm

Vitaliy S. wrote:Hi Jayme,

These kind of wildcards are not possible in the dynamic grouping expression, however you can try to use "left" method to parse VM custom attribute. Let me talk to the dev team tomorrow about possible ways to solve this.

Thanks!



Thank You
JWilliams
Influencer
 
Posts: 10
Liked: never
Joined: Tue Sep 17, 2013 1:48 pm
Full Name: Jayme Williams

Re: Wildcard in Expressions

Veeam Logoby Vitaliy S. » Wed Jul 23, 2014 1:29 pm

You can try to create this expression that would parse the name of the attribute and categorize VMs accordingly. Here is an example of how can "left" method be used:
Code: Select all
CASE WHEN Left(CustomAttribute("CAName"),6)  = "Backup" THEN "e2" ELSE "e4" END
Vitaliy S.
Veeam Software
 
Posts: 19558
Liked: 1102 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov


Return to Veeam ONE



Who is online

Users browsing this forum: No registered users and 4 guests