doing a Grouping Expression

Business categorization for your virtual environment

doing a Grouping Expression

Veeam Logoby sknano » Tue Apr 30, 2013 10:33 am

Hello world,

I'm french, so excuse my english.
I have this architecture on my esxi server.

I would like to create 3 folders in "Grouping Expression" like:

Code: Select all
Case
When (foldername) = "TEST" THEN "TEST"
When (foldername) = "PROD" THEN "PROD"
When (foldername) = "MODELES" THEN "MODELES"
When (foldername) = "BACKUP" THEN "BACKUP"
Else "Other"
End


What is the issue for me, please? Where can i found all options of "Grouping Expression" ?

Thanks a lot.
sknano
Lurker
 
Posts: 2
Liked: never
Joined: Tue Apr 30, 2013 10:21 am
Full Name: sknano

Re: doing a Grouping Expression

Veeam Logoby v.Eremin » Tue Apr 30, 2013 11:25 am 1 person likes this post

Unfortunately, nowadays there is no such VM property, like a folder name, in the Group Expression.

So, in order to achieve what you’re after you have to:

1. Create four different BW groups. (Test, Prod, Modeles, Backup)
2. Create four different rules. (Test, Prod, Modeles, Backup)
3. In Rule Wizard select corresponding folders to which these rules should be applied. (Rule "Test" should be applied to folder "Test", etc.)
4. Assign rules to corresponding BW groups. (Rule "Test" should be assigned to group "Test", etc.)

That’s all.

Additionally, the abovementioned parameter (foldername) will be added to the VM Group Expression in VeeamOne v7.

Hope this helps.
Thanks.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: doing a Grouping Expression

Veeam Logoby sknano » Tue Apr 30, 2013 1:55 pm

Thanks a lot
it is perfect
sknano
Lurker
 
Posts: 2
Liked: never
Joined: Tue Apr 30, 2013 10:21 am
Full Name: sknano

Re: doing a Grouping Expression

Veeam Logoby marc0castr0 » Tue Nov 25, 2014 9:54 pm

How would I achieve the same results in veeamone v8?

Something like this?

Case
When (folder) = "TEST" THEN "TEST"
When (folder) = "PROD" THEN "PROD"
When (folder) = "MODELES" THEN "MODELES"
When (folder) = "BACKUP" THEN "BACKUP"
Else "Other"
End
marc0castr0
Influencer
 
Posts: 17
Liked: 1 time
Joined: Tue Nov 25, 2014 9:48 pm
Full Name: Marco Castro

Re: doing a Grouping Expression

Veeam Logoby Vitaliy S. » Wed Nov 26, 2014 9:07 am

Marco, do you want to tag your VMs based on their folder location?
Vitaliy S.
Veeam Software
 
Posts: 19545
Liked: 1099 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

Re: doing a Grouping Expression

Veeam Logoby marc0castr0 » Wed Nov 26, 2014 2:39 pm

Only by folder. However, nothing is set in stone. Therefore I can tag any which way that would help achieve the result i need.
marc0castr0
Influencer
 
Posts: 17
Liked: 1 time
Joined: Tue Nov 25, 2014 9:48 pm
Full Name: Marco Castro

Re: doing a Grouping Expression

Veeam Logoby Vitaliy S. » Wed Nov 26, 2014 2:52 pm

Try to use this expression:

Case
When ToUpperCase(folder) = "TEST" THEN "TEST"
When ToUpperCase(folder) = "PROD" THEN "PROD"
When ToUpperCase(folder) = "MODELES" THEN "MODELES"
When ToUpperCase(folder) = "BACKUP" THEN "BACKUP"
Else "Other"
End
Vitaliy S.
Veeam Software
 
Posts: 19545
Liked: 1099 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

Re: doing a Grouping Expression

Veeam Logoby marc0castr0 » Wed Nov 26, 2014 3:43 pm

Vitaliy, thanks for your response.

The below expression gave me the results in the screenshot...
Additionally, i am also providing a screenshot of my vcenter folder structure

Case
When ToUpperCase(folder) = "AD" THEN "AD"
When ToUpperCase(folder) = "CUST AD" THEN "CUST AD"
Else "Other"
End


===

Image
Image
Image
marc0castr0
Influencer
 
Posts: 17
Liked: 1 time
Joined: Tue Nov 25, 2014 9:48 pm
Full Name: Marco Castro

Re: doing a Grouping Expression

Veeam Logoby Vitaliy S. » Wed Nov 26, 2014 4:08 pm

Can you tell me what is returned as a value when you select just "Folder" in the grouping expression? Also are there any other subfolders in AD, CUST AD folder?

P.S. btw, can you try to run the same query, but in version 8?
Vitaliy S.
Veeam Software
 
Posts: 19545
Liked: 1099 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

Re: doing a Grouping Expression

Veeam Logoby marc0castr0 » Wed Nov 26, 2014 4:25 pm

Hi, this is version 8 and there are no subfolders inside of "cust ad"

I changed the expressions to below and still no luck.


Case
When Folder = "TEAM_SERVER" THEN "TEAM_SERVER"
When Folder = "CUST AD" THEN "CUST AD"
Else "Other"
End

Let me ask, is there a easier way to get same results? Like Tagging the VM?
marc0castr0
Influencer
 
Posts: 17
Liked: 1 time
Joined: Tue Nov 25, 2014 9:48 pm
Full Name: Marco Castro

Re: doing a Grouping Expression

Veeam Logoby Vitaliy S. » Wed Nov 26, 2014 4:34 pm

This is not version 8, at least it is not the RTM code of v8. In the GA version we have a different icon for grouping expression wizard. Could this be a beta version by any chance? What is the build number of your installation?
Vitaliy S.
Veeam Software
 
Posts: 19545
Liked: 1099 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

Re: doing a Grouping Expression

Veeam Logoby marc0castr0 » Wed Nov 26, 2014 4:39 pm

Hmmm... odd. see screenshot below


Image
marc0castr0
Influencer
 
Posts: 17
Liked: 1 time
Joined: Tue Nov 25, 2014 9:48 pm
Full Name: Marco Castro

Re: doing a Grouping Expression

Veeam Logoby Vitaliy S. » Wed Nov 26, 2014 4:42 pm

Hmm... let's open the case and see why you have a different UI in Business View, maybe issues with categorization via folders is related to this one. In my lab, I have no problems with the expression above. Can you please let me know your case ID once you contact our technical team?
Vitaliy S.
Veeam Software
 
Posts: 19545
Liked: 1099 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

Re: doing a Grouping Expression

Veeam Logoby marc0castr0 » Wed Nov 26, 2014 4:52 pm 1 person likes this post

Done!

Here is the id: 00688863
marc0castr0
Influencer
 
Posts: 17
Liked: 1 time
Joined: Tue Nov 25, 2014 9:48 pm
Full Name: Marco Castro

Re: doing a Grouping Expression

Veeam Logoby marc0castr0 » Wed Nov 26, 2014 4:57 pm

Vitaliy, THANK YOU VERY MUCH!
marc0castr0
Influencer
 
Posts: 17
Liked: 1 time
Joined: Tue Nov 25, 2014 9:48 pm
Full Name: Marco Castro

Next

Return to Business View



Who is online

Users browsing this forum: No registered users and 2 guests