-
- Expert
- Posts: 165
- Liked: 37 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
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
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
-
- Veeam Software
- Posts: 762
- Liked: 200 times
- Joined: Nov 01, 2016 11:26 am
- Contact:
Re: Business view - group vm based on name of ESX host
Hello Jóhannes,
I probably missed something, but there is a host name property.
Add category > Type: Virtual Machine > Multiple conditions > Add...

Thanks
I probably missed something, but there is a host name property.
Add category > Type: Virtual Machine > Multiple conditions > Add...

Thanks
-
- Expert
- Posts: 165
- Liked: 37 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
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.
-
- Veeam Software
- Posts: 1516
- Liked: 660 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
Hello Johannes,
I found a simple way, using expression, as I can not see a visual way of doing it:


Result

Code itself, tune it for your needs:
That worked for me, please let us know.
I found a simple way, using expression, as I can not see a visual way of doing it:


Result

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
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
Senior Product Manager | Veeam ONE @ Veeam Software
@jorgedlcruz
https://www.jorgedelacruz.es / https://jorgedelacruz.uk
vExpert 2014-2024 / InfluxAce / Grafana Champion
-
- Veeam Software
- Posts: 762
- Liked: 200 times
- Joined: Nov 01, 2016 11:26 am
- Contact:
Re: Business view - group vm based on name of ESX host
Hello Jóhannes,
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
I've checked this with the Devs and QA teams and this property must filter by ESXi name. No bugs recorded so far.it's the hostname of the vm not the ESX hostname.
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
-
- Expert
- Posts: 165
- Liked: 37 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
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.
A apologize for the mixup on my behalf.
Who is online
Users browsing this forum: No registered users and 1 guest