Selection Criteria
Table 9–1 shows the criteria keywords that can
be used to indicate which clients should use a particular AI manifest or system configuration
profile. The Examples column shows some possible values. The criteria keywords and values can
be used with the following installadm subcommands:
create-manifest, create-profile, and
set-criteria.
The ipv4, mac, mem, and
network specifications can be expressed as ranged values separated by a
hyphen (-). To specify no limit to one end of a range, use
unbounded. See the mem example below.
The arch, cpu, hostname,
platform, and zonename specifications can be expressed
as a quoted list of values separated by white space. See the zonename
example below.
Specify criteria keywords and values on the command line by using the –c
option.
-c criteria=value|list|range
-c mac="aa:bb:cc:dd:ee:ff"
-c mem="2048-unbounded"
-c zonename="zone1 zone2"
Criteria can also be specified in ai_criteria elements in an XML file.
The content of this file should be only criteria specifications. Use the –C
option to name the criteria file on the command line. Examples are shown in the table.
Table 9-1 Criteria Keywords and Criteria Hierarchy
|
|
|
arch
|
Architecture returned by uname -m
Values: i86pc, sun4u, or
sun4v
|
CLI:
-c arch="i86pc"
XML:
<ai_criteria name="arch">
<value>i86pc</value>
</ai_criteria>
|
cpu
|
CPU class returned by uname -p
Values: i386 or sparc
|
CLI:
-c cpu="sparc"
XML:
<ai_criteria name="cpu">
<value>sparc</value>
</ai_criteria>
|
hostname
|
Client host name or list of client host names.
|
CLI, single host name:
-c hostname="host3"
CLI, list of host names:
-c hostname="host1 host2 host6"
XML, single host name:
<ai_criteria name="hostname">
<value>host3</value>
</ai_criteria>
XML, list of host names:
<ai_criteria name="hostname">
<value>host1 host2 host6</value>
</ai_criteria>
|
ipv4
|
IP version 4 network address, or range of IP addresses
|
CLI, single IP address:
-c ipv4="10.6.68.127"
CLI, range of IP addresses:
-c ipv4="10.6.68.1-10.6.68.200"
XML, single IP address:
<ai_criteria name="ipv4">
<value>10.6.68.127</value>
</ai_criteria>
XML, range of IP addresses:
<ai_criteria name="ipv4">
<range>
10.6.68.1
10.6.68.200
</range>
</ai_criteria>
|
mac
|
Hexadecimal MAC address with colon (:) separators, or range of MAC
addresses
|
CLI, single MAC address:
-c mac="0:14:4F:20:53:97"
CLI, range of MAC addresses:
-c mac=0:14:4F:20:53:94-0:14:4F:20:53:A0
XML, single MAC address:
<ai_criteria name="mac">
<value>0:14:4F:20:53:97</value>
</ai_criteria>
XML, range of MAC addresses:
<ai_criteria name="mac">
<range>
0:14:4F:20:53:94
0:14:4F:20:53:A0
</range>
</ai_criteria>
|
mem
|
Memory size in megabytes returned by prtconf, or a range of
memory size
The unbounded keyword indicates no upper limit in a
range.
|
CLI, one memory size:
-c mem="4096"
CLI, range of memory size:
-c mem="2048-unbounded"
XML, one memory size:
<ai_criteria name="mem">
<value>4096</value>
</ai_criteria>
XML, range of memory size:
<ai_criteria name="mem">
<range>
2048
unbounded
</range>
</ai_criteria>
|
network
|
IP version 4 network number, or a range of network numbers
|
CLI, single IP address:
-c network="10.0.0.0"
CLI, range of IP addresses:
-c network="11.0.0.0-12.0.0.0"
XML, single IP address:
<ai_criteria name="network">
<value>10.0.0.0</value>
</ai_criteria>
XML, range of IP addresses:
<ai_criteria name="network">
<range>
11.0.0.0
12.0.0.0
</range>
</ai_criteria>
|
platform
|
Platform name returned by uname -i for x86 systems and
prtconf -b for SPARC systems
Values include:
-
i86pc
-
SUNW,SPARC-Enterprise for M4000 and M5000 servers
-
ORCL, SPARC-T4-2 for T4 servers
|
CLI:
-c platform="SUNW,SPARC-Enterprise"
XML:
<ai_criteria name="platform">
<value>SUNW,SPARC-Enterprise</value>
</ai_criteria>
|
zonename
|
|
CLI, single zone name:
-c zonename="myzone"
CLI, list of zone names:
-c zonename="zoneA zoneB zoneC"
XML, single zone name:
<ai_criteria name="zonename">
<value>myzone</value>
</ai_criteria>
XML, list of zone names:
<ai_criteria name="zonename">
<value>zoneA zoneB zoneC</value>
</ai_criteria>
|
|