United States-English |
|
|
HP-UX System Administrator's Guide: Configuration Management: HP-UX 11i Version 3 > Chapter 10 Configuring the KernelCommon Behavior for Kernel Configuration Commands |
|
Because the kernel configuration commands are part of a unified suite, they share behavior whenever possible. Shared behaviors include command line options, output formats, exit status codes, security constraints, and persistence of changes. Table 10-1 lists the options shared by the kernel configuration commands kconfig, kcmodule, kctune, and kclog. Table 10-1 Common Kernel Configuration Command Line Options
When retrieving information, the primary kernel configuration commands produce output in three basic output formats: table, verbose, and parsable. By default, the commands produce a short table format. This is a format that gives one line for each item being described. Only the most commonly used information is included, in order to allow the output to fit on one line on most terminals. With the-v (verbose) option, the commands produce a verbose output format. This format gives all available information for each item being described, taking multiple lines to do so. A blank line separates the items in the output. With the -P (parse) option, the commands produce an output format designed to be parsed by scripts or applications. This format is described in “Parsing Command Output”. Scripts and applications must parse this output format, because HP supports release-to-release compatibility of output format only when the -P option is used. The kernel configuration commands all use a common format for error, warning, note, and progress messages. It is the same format used by the Software Distributor package, and therefore already familiar to most administrators.
Any user can run the kernel configuration commands to query configuration information. However, access to configuration information is subject to standard UNIX file system permissions on the relevant files. Superuser privileges are required to make any configuration changes. By default, the kernel configuration tools will apply configuration changes to the currently running system, causing an immediate change in behavior. System administrators can override this default by specifying the -h (hold) option on any of the commands. This option causes the changes to be held until the system is rebooted. HP recommends that this option be used only when the next reboot is expected to happen soon. If the reboot doesn't happen for months after the change, the change could come as an unwelcome surprise to an administrator who has forgotten the request. Some configuration changes cannot be applied without a reboot. These changes will be held until the system is rebooted even if the –h option is not specified. In these cases, a warning message is printed. If multiple configuration changes are requested in a single invocation of one of the kernel configuration commands, and any one of those changes requires a reboot, all of the requested changes will be held until the system is rebooted. In particular, if a saved kernel configuration is loaded using kconfig –l (load), and that configuration cannot be used without a reboot, the state of the running system is not changed and the specified kernel configuration will be used at next boot instead. Changes being held for next boot can be listed using the -D (differences) option on the kcmodule, kctune, or kconfig commands. Changes being held for next boot are discarded as follows: when the currently running configuration is replaced using kconfig –i (import), kconfig –l (load), or kconfig –n (next boot); when explicitly discarded using kconfig –H (unhold); or when subsequent changes are made that override them. For example, if you run.
the value of nproc at next boot will be 6000. The change to 5000 is discarded. A warning will be printed in these situations. Changes that are made to the currently running system are retained when the system is rebooted. They remain in effect until changed. |
Printable version | ||
|