An interesting case comes up which is that we may need to create a dynamic group of servers based on multiple sets of criteria. A common use-case I encounter is finding all servers running Windows Server versions such as 2003 and 2008.
Luckily this is a snap using the Policy view, so let's show just how easy it is.
Go to the Policy View in your VMTurbo Control Instance:
Using the handy green + button down towards the bottom, we can create a new group that we will call 2003 and 2008 servers:
Now click on the Members tab within the Create New Group dialog box to get to our selection criteria. Let's choose by Virtual Machines and then in the search criterion, we will select by guest OS:
Next we type in the query to select our Operating System name. If we just wanted Windows 2003 Servers, an easy query is to say virtual machine with guest OS equal to .*2003.* which will mean any instance with 2003 in the OS name. Because we want 2003 as well as 2008 servers, we need to use a query that selects both options.
For 2003 servers we use .*2003.*
For 2008 servers we use .*2008.*
In order to merge the two queries, we simply add the OR operator which is represented by the pipe symbol |
So, for our 2003 and 2008 server query, we use the .*2003.*|.*2008.* like this:
You're all set with a dynamic group based on either Operating System now. Hope this is helpful!