Monitoring and reporting for Veeam Backup & Replication, VMware vSphere and Microsoft Hyper-V
Post Reply
JWilliams
Influencer
Posts: 10
Liked: never
Joined: Sep 17, 2013 1:48 pm
Full Name: Jayme Williams
Contact:

Wildcard in Expressions

Post by JWilliams » 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

Vitaliy S.
Product Manager
Posts: 22127
Liked: 1381 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Wildcard in Expressions

Post by Vitaliy S. » 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!

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

Re: Wildcard in Expressions

Post by JWilliams » 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

Vitaliy S.
Product Manager
Posts: 22127
Liked: 1381 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Wildcard in Expressions

Post by Vitaliy S. » 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

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests