A resource requirement string describes the criteria for defining a set of resources.
The entire resource requirement string cannot contain more than 512 characters.
If the characters "-" or "." form a part of the host or resource name, enclose the name using single quotation marks (for example, when a full host name is used, such as 'gr4e01.domain.name.com').
Examples of proper quotation mark usage include the following:
egosh resource list -R "select(’host1.domain.name.com’)"
egosh resource list -R "select(’host1-1’)"
egosh resource list -R "select(’host1-1’ ||’host1-2’)"
egosh resource list -R "select(mem>100)"
If the command is issued from the egosh console, quotation marks are optional. For example:
Specifies the criteria for selecting the resources. The selection string filters out the resources that do not meet the criteria, resulting in a list of one or more eligible resources.
Specifies the sort order for selecting the best resource from the list of eligible resources. The most appropriate resource is listed first, the least is listed last.
The selection string excludes unsuitable resources by specifying the characteristics a resource must have to match a resource requirement.
The selection string is a logical expression used to select one or more resources to match one or more criteria. Any resource that satisfies the criteria is selected.
The selection string is used in many ways to select resources.
The resource selection string uses values for host_name, model, type, and/or resources as selection string expressions. These can be seen in the output of
egosh resource view. When entering a resource requirement string in EGO, omit the operator and use only the value. For example:
Incorrect syntax: select(type==linux86)
Correct syntax: select(linux86)
select(linux86 && maxmem > 500)select(maxmem > 2046 && LINUX86) => ib06b09select(maxmem > 2046 && mg) => ib06b09select(NTX86) =>host1
When you input a string, ensure that you use valid characters. This requirements applies to all resource requirement strings. Valid characters include the following: a-z A-Z 0-9 * / ! ( ) . | \ ^ & $ # @ ~ % `
Specifies the name of the resource to use as selection criteria.
You can specify a static resource or a load index, depending on the purpose of the selection string.
Specifies the value to be used as criteria for selecting a resource. Value can be numerical, such as when referring to available memory or swap space, or it can be textual, such as when referring to a specific type of host.
Sorts the selected resources into an order of preference according to the values of the resources.
The order string acts on the results of a selection string, sorting the selected resources to identify the most favorable resources, and eliminate the least desirable resources.
Resources are sorted into ascending order based on a load index or the result of an arithmetical expression.