Monitoring and reporting for Veeam Data Platform
Post Reply
Crashinit
Influencer
Posts: 17
Liked: 1 time
Joined: Nov 10, 2016 9:58 pm
Full Name: Craig Connoll
Contact:

Veeam One Group Expression for Datacenter Tagging

Post by Crashinit »

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.
Shestakov
Veteran
Posts: 7328
Liked: 781 times
Joined: May 21, 2014 11:03 am
Full Name: Nikita Shestakov
Location: Prague
Contact:

Re: Veeam One Group Expression for Datacenter Tagging

Post by Shestakov »

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!
Crashinit
Influencer
Posts: 17
Liked: 1 time
Joined: Nov 10, 2016 9:58 pm
Full Name: Craig Connoll
Contact:

Re: Veeam One Group Expression for Datacenter Tagging

Post by Crashinit »

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
Shestakov
Veteran
Posts: 7328
Liked: 781 times
Joined: May 21, 2014 11:03 am
Full Name: Nikita Shestakov
Location: Prague
Contact:

Re: Veeam One Group Expression for Datacenter Tagging

Post by Shestakov »

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!
Crashinit
Influencer
Posts: 17
Liked: 1 time
Joined: Nov 10, 2016 9:58 pm
Full Name: Craig Connoll
Contact:

Re: Veeam One Group Expression for Datacenter Tagging

Post by Crashinit »

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
Shestakov
Veteran
Posts: 7328
Liked: 781 times
Joined: May 21, 2014 11:03 am
Full Name: Nikita Shestakov
Location: Prague
Contact:

Re: Veeam One Group Expression for Datacenter Tagging

Post by Shestakov »

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
Veteran
Posts: 7328
Liked: 781 times
Joined: May 21, 2014 11:03 am
Full Name: Nikita Shestakov
Location: Prague
Contact:

Re: Veeam One Group Expression for Datacenter Tagging

Post by Shestakov »

Unfortunately there is no such an option in current version. We will try to add it in future releases. Thanks!
Crashinit
Influencer
Posts: 17
Liked: 1 time
Joined: Nov 10, 2016 9:58 pm
Full Name: Craig Connoll
Contact:

Re: Veeam One Group Expression for Datacenter Tagging

Post by Crashinit »

Thank you Shestakov for your quick response and help.

Craig
Shestakov
Veteran
Posts: 7328
Liked: 781 times
Joined: May 21, 2014 11:03 am
Full Name: Nikita Shestakov
Location: Prague
Contact:

Re: Veeam One Group Expression for Datacenter Tagging

Post by Shestakov »

You are welcome Craig, once you have a question, don`t hesitate asking.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests