VMware Cloud Community
mrhaegar
Contributor
Contributor
Jump to solution

How to search for VMs that are marked with a certain tag

Hi,

I am using vSphere Webclient 6.5 to manage certain VMs. But I am not VMWare admin, just a user. To easy searching for my 30 VMs out of our 200 over-all, my Vmware admin created a new Tag-Category with two tags and tagged my servers accordingly. But I can find no way to search for VMs that are tagged. Neither via the search field nor with the filter option.

Can anyone help?

Thanks

Michael

Tags (1)
Reply
0 Kudos
1 Solution

Accepted Solutions
Sreejesh_D
Virtuoso
Virtuoso
Jump to solution

You must have tried this , thought to confirm.

In vSphere client

Home > Tags & Custom Attributes > Tag > <Select you tag here> > Objects.

You can see all the VMs with the particular Tag in 'Objects' pane.

View solution in original post

Reply
0 Kudos
5 Replies
Marmotte94
Enthusiast
Enthusiast
Jump to solution

Hi,

You could use PowerCLI with this commande line.

PowerCLI C:\> Get-VM | Get-TagAssignment | select Tag,Entity

Thank you,

Regards

Please, visit my blog http://www.purplescreen.eu/
Reply
0 Kudos
dbalcaraz
Expert
Expert
Jump to solution

You can do it by PowerCli as the previous user suggest or just click in the vSphere Web Client at the left panel "New Search", this is an advanced search that you can use for anything.

I grabbed this image from the internet (Select New Search):

http://docs.hol.vmware.com/HOL-2017/hol-1810-01-sdc_html_en/images/37dda087-5c42-4d0c-98e4-c4ffd1828...

-------------------------------------------------------- "I greet each challenge with expectation"
Reply
0 Kudos
mrhaegar
Contributor
Contributor
Jump to solution

Hi Marmotte94,

thanks for your suggestion.

I had a hard time getting VMware.Power-CLI going in an offline environment Windows 7. Just to run into another issue whenever trying to use a get-tag* command: error message "The SSL connection could not be established [...]".

So It seems to be a correct answer - if it works.

And if my VMWare admin would encourage me to use PowerCLI: He nearly slapped me when I told him I installed that stuff. He once had an issue wrecking half of the VMs after using a self made PowerCLI script. And VMWare support told him that they do not support scripts that are not from VMWare themselves.

I will mark your answer as correct.

Regards

Reply
0 Kudos
Sreejesh_D
Virtuoso
Virtuoso
Jump to solution

You must have tried this , thought to confirm.

In vSphere client

Home > Tags & Custom Attributes > Tag > <Select you tag here> > Objects.

You can see all the VMs with the particular Tag in 'Objects' pane.

Reply
0 Kudos
mrhaegar
Contributor
Contributor
Jump to solution

Hello yezdl and dbalcaraz,

you are both correct - if using the legacy flash Webinterface.

Both ways do work excellently.

I was looking for the same functionality in the HTML5 web interface. Neither of the suggestions do work there. Which is a shame for VMWare IMHO.

Thanks for your suggestions and input.

You helped me a lot - and I will use the flash interface from now on.

Regards

Reply
0 Kudos