Veeam One Group Expression for Datacenter Tagging

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

Veeam One Group Expression for Datacenter Tagging

Veeam Logoby Crashinit » Tue Mar 21, 2017 12:08 am

Hi All.

I have vCenter 6.0 and have many sites created as Datacenters.
I need to be able to Tag VM's in each datacenter with the Name of the Datacenter it is in.

Is there a way to do this with Dynamic Categories?
I see it is possible to do it with Static Categories and Rules but I would prefer it to be Dynamic if possible.

When I use the following Expression it lists the full path to the folder in which the VM resides.

Code: Select all
CASE
WHEN Location = "" THEN "No Datacenter" ELSE Location
END


Any Ideas would be appreciated.
Crashinit
Novice
 
Posts: 8
Liked: never
Joined: Thu Nov 10, 2016 9:58 pm
Full Name: Craig Connoll

Re: Veeam One Group Expression for Datacenter Tagging

Veeam Logoby Shestakov » Tue Mar 21, 2017 11:01 am

Hi Craig and welcome to the community!
Try this expression:
Code: Select all
CASE
WHEN IndexOf(Location , "DCname")> 0 THEN "VC1" ELSE "Other"
END

Thanks!
Shestakov
Veeam Software
 
Posts: 4861
Liked: 396 times
Joined: Wed May 21, 2014 11:03 am
Location: Saint Petersburg
Full Name: Nikita Shestakov

Re: Veeam One Group Expression for Datacenter Tagging

Veeam Logoby Crashinit » Tue Mar 21, 2017 8:34 pm

Hi Shestakov,

Thanks for the reply.
I have used the code below but unfortunately the resulting Tag for the VM is created as "OTHER".

I can get it working with a static category and Rules, but this makes it hard to manage especially when new DC's are created.
Is there a way to view the expressions used in the Rules section? I am hoping to get a better understanding of group expressions for Dynamic Groups

Thanks,

Craig
Crashinit
Novice
 
Posts: 8
Liked: never
Joined: Thu Nov 10, 2016 9:58 pm
Full Name: Craig Connoll

Re: Veeam One Group Expression for Datacenter Tagging

Veeam Logoby Shestakov » Wed Mar 22, 2017 10:52 am

Hmm, that`s strange.
Translating static groups into dynamic, it should look like
Code: Select all
CASE
WHEN IndexOf(Location , "DCname1")> 0 THEN "BVgroup1"
WHEN IndexOf(Location , "DCname2")> 0 THEN "BVgroup2"
WHEN IndexOf(Location , "DCname3")> 0 THEN "BVgroup3"
END

write names of Datacenters instead of "Dcname".
Thanks!
Shestakov
Veeam Software
 
Posts: 4861
Liked: 396 times
Joined: Wed May 21, 2014 11:03 am
Location: Saint Petersburg
Full Name: Nikita Shestakov

Re: Veeam One Group Expression for Datacenter Tagging

Veeam Logoby Crashinit » Sun Mar 26, 2017 7:58 pm

Thanks for the reply Shestakov.

I see that your suggestion is to add every DC manually and link to a Group.
This can allow a scenario where a new datacenter is added and someone forgets to update the expression to include the new DC.
What I was hoping to get was an more automated expression where it will automatically pick up the DC name and create the TAG and associate that to the VM to that DC.
- This way I don't have to update the expression every time a DC is removed or Added.

As my example below, it will get the folder path of the VM and assign the TAG of the folder it resides in. If the VM is moved the TAG will change to the folder it was moved too automatically.
Is this something that is not supported for DC's?

Code: Select all
CASE
WHEN Location = "" THEN "No Folder" ELSE Location
END
Crashinit
Novice
 
Posts: 8
Liked: never
Joined: Thu Nov 10, 2016 9:58 pm
Full Name: Craig Connoll

Re: Veeam One Group Expression for Datacenter Tagging

Veeam Logoby Shestakov » Sun Mar 26, 2017 8:25 pm

You are right, Craig, my previous post answered your question about expression analog of static groups.
My version of expression for your case was in my first post. I`ll talk to Veeam ONE developers at the beginning of the week to find out if your request can be fulfilled in current version.
If no, that`s a great request for v10 feature.
Thanks!
Shestakov
Veeam Software
 
Posts: 4861
Liked: 396 times
Joined: Wed May 21, 2014 11:03 am
Location: Saint Petersburg
Full Name: Nikita Shestakov

Re: Veeam One Group Expression for Datacenter Tagging

Veeam Logoby Shestakov » Mon Mar 27, 2017 11:08 am

Unfortunately there is no such an option in current version. We will try to add it in future releases. Thanks!
Shestakov
Veeam Software
 
Posts: 4861
Liked: 396 times
Joined: Wed May 21, 2014 11:03 am
Location: Saint Petersburg
Full Name: Nikita Shestakov

Re: Veeam One Group Expression for Datacenter Tagging

Veeam Logoby Crashinit » Tue Mar 28, 2017 8:33 pm

Thank you Shestakov for your quick response and help.

Craig
Crashinit
Novice
 
Posts: 8
Liked: never
Joined: Thu Nov 10, 2016 9:58 pm
Full Name: Craig Connoll

Re: Veeam One Group Expression for Datacenter Tagging

Veeam Logoby Shestakov » Wed Mar 29, 2017 9:54 am

You are welcome Craig, once you have a question, don`t hesitate asking.
Shestakov
Veeam Software
 
Posts: 4861
Liked: 396 times
Joined: Wed May 21, 2014 11:03 am
Location: Saint Petersburg
Full Name: Nikita Shestakov


Return to Veeam ONE



Who is online

Users browsing this forum: No registered users and 6 guests