Business categorization for your virtual environment
Post Reply
johannesk
Expert
Posts: 148
Liked: 32 times
Joined: Jan 19, 2016 1:28 pm
Full Name: Jóhannes Karl Karlsson
Contact:

Business view - group vm based on name of ESX host

Post by johannesk »

Hi,

We want to group vm's with business view and create groups based on part of the name of ESX server (containing = DC1). We indicate in the ESX hostname what datacenter it's located in. This would help us populate backups jobs based on datacenter location.

In the grouping conditions for vm's it's possible to pickup some vcenter properties such as datacenter name and datastore name. But name of the ESX host is not in the list.

Does anyone have a clever way to accomplish this. Preferably a way that has been used successfully already.

regards,
Jóhannes
RomanK
Veeam Software
Posts: 641
Liked: 168 times
Joined: Nov 01, 2016 11:26 am
Contact:

Re: Business view - group vm based on name of ESX host

Post by RomanK » 1 person likes this post

Hello Jóhannes,

I probably missed something, but there is a host name property.

Add category > Type: Virtual Machine > Multiple conditions > Add...

Image

Thanks
johannesk
Expert
Posts: 148
Liked: 32 times
Joined: Jan 19, 2016 1:28 pm
Full Name: Jóhannes Karl Karlsson
Contact:

Re: Business view - group vm based on name of ESX host

Post by johannesk »

yes I did try the Hostname property, and it's the hostname of the vm not the ESX hostname. At least that how it works in our environment running the newest V12.
jorgedlcruz
Veeam Software
Posts: 1372
Liked: 619 times
Joined: Jul 17, 2015 6:54 pm
Full Name: Jorge de la Cruz
Contact:

Re: Business view - group vm based on name of ESX host

Post by jorgedlcruz » 1 person likes this post

Hello Johannes,
I found a simple way, using expression, as I can not see a visual way of doing it:
Image
Image
Result
Image

Code itself, tune it for your needs:

Code: Select all

CASE
    WHEN (Host = "esxi-zlon-002.jorgedelacruz.es") THEN "VMs in Host 2"
    ELSE "Other"
END
That worked for me, please let us know.
Jorge de la Cruz
Senior Product Manager | Veeam ONE @ Veeam Software

@jorgedlcruz
https://www.jorgedelacruz.es / https://jorgedelacruz.uk
vExpert 2014-2024 / InfluxAce / Grafana Champion
RomanK
Veeam Software
Posts: 641
Liked: 168 times
Joined: Nov 01, 2016 11:26 am
Contact:

Re: Business view - group vm based on name of ESX host

Post by RomanK »

Hello Jóhannes,
it's the hostname of the vm not the ESX hostname.
I've checked this with the Devs and QA teams and this property must filter by ESXi name. No bugs recorded so far.

In the expressions we are using the short word "Host = " as Jorge mentioned in his code, which must do the same as the drop-down "Host name"

Thanks
johannesk
Expert
Posts: 148
Liked: 32 times
Joined: Jan 19, 2016 1:28 pm
Full Name: Jóhannes Karl Karlsson
Contact:

Re: Business view - group vm based on name of ESX host

Post by johannesk »

Thanks for checking this and confirming. I must have done something wrong when I tried this with the hostname property earlier. I see now this is just what we need.

A apologize for the mixup on my behalf.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests