rules (sun)
par
popularité : 3%
Probe Keywords and Values
Note :
Always place probe keywords at or near the beginning of the
rules
file.
Rule Keyword |
Equivalent Probe Keyword |
Description of Probe Keyword |
---|---|---|
any |
None |
|
arch |
arch |
Determines the kernel architecture, i386 or SPARC, and sets SI_ARCH. |
disksize |
disks |
Returns the size of a system’s disks in Mbytes in kernel probe |
domainname |
domainname |
Returns a system’s NIS or NIS+ domain name or blank and sets SI_DOMAINNAME. |
hostaddress |
hostaddress |
Returns a system’s IP address, the first address that is listed |
hostname |
hostname |
Returns a system’s host name that is the (output from |
installed |
installed |
Returns the version name of the Solaris operating environment If the JumpStart program finds a Solaris release but is unable |
karch |
karch |
Returns a system’s platform group, for example i86pc, sun4m, |
memsize |
memsize |
Returns the size of physical memory on a system in Mbytes and |
model |
model |
Returns a system’s platform name and sets SI_MODEL. |
network |
network |
Returns a system’s network number, which the JumpStart program |
osname |
osname |
Returns the version and operating system name of the Solaris If the JumpStart program finds a Solaris release but is unable |
|
rootdisk |
Returns the name and size in Mbytes of a system’s root disk and |
totaldisk |
totaldisk |
Returns the total disk space on a system (in Mbytes and sets SI_TOTALDISK. |
Rule Keywords and Values
Keyword | Value | Matches | ||
---|---|---|---|---|
any | minus sign (-) | Anything. The any keyword always succeeds. | ||
arch | processor_type Valid values for processor_type are the following :
| A system’s The uname -p command reports | ||
disksize | actual_disk_name size_range actual_disk_name - A disk name in the form cxtydz, such as c0t3d0
size_range - The size of the | The Example :
In the Example :
In the example, the JumpStart program first Note : When calculating size_range, | ||
domainname | actual_domain_name | A system’s domain name, which controls If you have a system | ||
hostaddress | actual_IP_address | A system’s IP address. | ||
hostname | actual_host_name | A system’s host name. If you have a system that is already installed, the uname -n | ||
installed | slice version slice - A disk
version - A version name or If the JumpStart program finds a Solaris | A disk that has a root (/) file system that corresponds Example :
In the example, the JumpStart program attempts to match a system that has | ||
karch | actual_platform_group Valid values are sun4m, sun4u, i86pc, prep. A list | A system’s platform group. If you have a system | ||
memsize | physical_mem The | A system’s physical memory size in Mbytes. Example :
The example tries to match a system with a physical memory size between 16 If you have a system that is already installed, | ||
model | actual_platform_name | A system’s platform name. See the Solaris 8 Sun Hardware Platform Guide for a list of valid platform To find the platform name of an installed system, use the uname -i command or the output of the prtconf Note : If the actual_platform_name contains spaces, you must replace spaces with underscores (_). Example : SUNW,Sun_4_50 | ||
network | network_num | A system’s network number, which the Example :
The example tries to match | ||
osname | Solaris_2.x | A version of Solaris software already installed on a system. Example :
In the example, the JumpStart program attempts to match a system with the | ||
probe | probe_keyword | A valid probe keyword or a valid custom Example :
The example returns the size of a system’s disks Note : The probe keyword is unique in that the keyword does not | ||
totaldisk | size_range The value must be specified as a range of Mbytes (x-x). | The Example :
In the example, Note : When calculating size_range, remember that one Mbyte equals 1,048,576 bytes. A disk might |