Installing HP-UX 11.0 and Updating HP-UX 10.x to 11.0 HP 9000 Computers Edition 1

254 Appendix C
Ignite-UX System Administration
Section 4: Customization
In this example, there is a set of parameters we want all systems to have,
“Basic_Kernel_Mods”. These are force loaded. There is also an optional
set, “Advanced_Kernel_Mods”, which can be selected in the UI or in a
config file at install time.
The contents of the /var/opt/ignite/data/Rel_B.11.00/kernel_cfg file is
now:
HARDWARE_MODEL ~ “9000/7.*” {
# basic required kernel parameters
sw_sel “Basic_Kernel_Mods” {
description = “Basic Kernel parameters only”
sw_source = “cmds”
sw_category = “HPUXAdditions”
mod_kernel += “nproc (20+12*MAXUSERS)”
mod_kernel += “maxuprc 127”
load_with_any = “golden image”
}
#optional kernel parameters
sw_sel “Advanced_Kernel_Mods”
{ description = “Advanced Kernel parameters”
sw_source = “cmds”
sw_category = “HPUXAdditions”
mod_kernel += “maxdsiz 0x0A000000”
mod_kernel += “maxtsiz 0x06000000”
}
} # end of hardware-specific section
Kernel Parameters Tied to Client Hardware
Because we’ve specified our kernel mods within a HARDWARE_MODEL
clause, it’s possible to set kernel parameters based on the H/W
configuration of the client. As an example, suppose the first line of the
kernel_cfg file is changed to the following:
HARDWARE_MODEL = “9000/715”
Then the values in this clause will only be used if the machine is a Model
715. This allows the system administrator to tailor the kernels of servers
differently from clients, for example.