HP-UX System Administrator's Guide: Configuration Management
Managing Saved Configurations with kconfig
When you have an HP-UX kernel configuration that satisfies your needs, you may
want to save a copy of it to protect yourself against inadvertent configuration changes.
Or, you may want to have multiple kernel configurations, so that you can switch
between them easily. HP-UX allows you to save as many kernel configurations as you
wish (subject to available disk space in /stand), and to modify them and use them at
will.
Getting Information about Saved Configurations
When you run kconfig with no options, it shows you the saved configurations on
your system. There will always be a saved configuration called backup, which is
automatically maintained by the system; any other saved configurations on the system
will also be listed. (For more information on the backup configuration, see “Recovering
from Errors” (page 197).)
The output of kconfig can be varied with several options. The output can be restricted
to specific configurations by listing them on the command line.
To control the output format, use the -a (all), -v (verbose), or -P (parse) options.
With No Options With no options, the output looks like this:
# kconfig
Configuration Title
backup Automatic Backup
day Configuration for daytime multiuser processing
last_install Created by last OS install
night Configuration for nighttime batch processing
With the -v Option The -v option gives verbose, multiline information about each
saved configuration:
# kconfig -v day
Configuration day
Title Configuration for daytime multiuser processing
Created Thu Oct 12 01:33:36 2006 by allanp
as a copy of ’last_install’
Modified Thu Oct 12 01:37:14 2006 by allanp
Kernel Path /stand/day/vmunix
With the -a Option The -a option is the equivalent of the command sequence:
# kcmodule -a -v -c config
# kctune -v -c config
# kconfig -v config
for each specified or implied configuration (config). This gives a detailed record of
all settings in the configuration. The following output is edited.
# kconfig -a day
Module DeviceFileSystem (1.0)
Description DevFS File System
Timestamp Mon Sep 11 15:31:18 2006 [4505E3B6]
Managing Saved Configurations with kconfig 189