Submit a ticketCall us

Looking to compare latest NPM features with previous versions of NPM?
The NPM new feature summary offers a comparison of new features and improvements offered with this release.

 

Home > Success Center > Virtualization Manager (VMAN) > VMAN 7.1 Administrator Guide > Search for objects in Virtualization Manager > Search query examples

Search query examples

Created by Caroline Juszczak, last modified by MindTouch on Jun 23, 2016

Views: 1 Votes: 0 Revisions: 3

You can use named fields to search the attributes associated with VMs, hosts, data stores, clusters, and applications. Named fields add attribute filters to the search language. You can enter named fields by specifying the exact property to target in the search. Searches for named fields use the syntax:
CI_TYPE.PROPERTY.SUB_PROPERTY:VALUE.

The CI_TYPE can be:

  • VM
  • Host
  • Cluster
  • Datastore

Not all properties have a sub-property, so many named field searches use the syntax CI_TYPE.PROPERTY:VALUE.

In named fields, you can use more complex structures based on dot notation hierarchies. Named fields can also be composed of query sub-clauses and any other additional search language features.

If a named field value contains special characters, such as spaces, that value must be enclosed in quotes.

Example search queries using named fields

search query results
vm.cpuCount:2 AND vm.memory:1024

Virtual machines with two CPUs and 1024 MBs of memory as configured.

The use of MBs as the unit of measure for the memory field is specific to the named field implementation.

vm.environmentFor.networkAdapters.defaultGateway.ipV4Address:192.0.2.1 Virtual machines for which the default gateway of the network adapter is set to 192.0.2.1.
vm.cpuCount:2 AND vm.memory:(1024 OR 2048) Virtual machines with two CPUs and 1024 or 2048 MBs of memory as configured.
vm.environmentFor.diskVolume.label:"Hard Disk 1" Disk drives labeled "Hard Disk 1".

See the list of named fields and their descriptions for more examples.

 
Last modified
04:17, 23 Jun 2016

Tags

Classifications

Public