Virtualization Pro

Sep 11 2008   4:00PM GMT

Helpful VKernel SearchMyVM queries for use in VI3 environments



Posted by: Rick Vanover
Tags:
Rick Vanover
Virtualization
VMware scripting

In my opinion, VKernel’s SearchMyVM virtual appliance (VA) has to be one of the most useful free virtualization management tools. I have found myself using it quite frequently to get information about my environment. I mentioned its release over on SearchServerVirtualization, and here I want to share some common queries I’ve used that you may want to hold onto for frequent use, and how they can help you:

vm.cdroms.connected=true
– Running this query will tell you which VMs have connected virtual optical media, which can inhibit VMotion on the guest.

vm.toolsStatus=toolsNotInstalled,toolsNotRunning,toolsOld
– All VMs that have VMware tools status of everything but OK.

cluster.haFailoverLevel
– Lists all cluster’s HA Failover level. This is an easy way to spot check for consistent settings.

cluster.drsEnabled
– Shows clusters that have DRS enabled. This one goes hand and hand with the HA settings to ensure that they are enabled across all environments as expected.

vm.hostName:servername
– Gives the quick query of a guest’s hostname that is like servername, this is incredibly handy if you need to quickly find what resource pool, cluster, or datacenter a virtual machine is located.

file.datastore.name:storage
– This query shows VMs located on a datastore that contains the string “storage”. By default, local datastores of ESX are named servername:storage1 for local VMFS volumes. Likewise, if your development or otherwise low-priority storage has the string ‘dev’ in it, you can replace storage with ‘dev’ and see the inventory of VMs that reside on that class of LUN.

vm.cpuLimit=-1
– This query shows the VMs that currently do not have a CPU limit, meaning, they can consume the maximum amount of GHz available to the guest.

datastore.freeSpace
– This query displays the free space of every LUN available to every datacenter in the VI3 environment.

The SearchMyVM VA enables administrators to quickly pull in information from across their VI3 environment. This beta release is available for free download from the VKernel website.

 Comment on this Post

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: