HP-UX Reference (11i v2 04/09) - 1M System Administration Commands A-M (vol 3)
k
kconfig(1M) kconfig(1M)
as those installed on the exporting system.
-w Prints information about the original source of the currently running configuration.
Specifically, it describes the source of the most recent complete kernel configuration
operation (load, boot, or import). Also, if a saved configuration is marked for use at next
boot, this option will identify it.
Note that this source information does not imply that the currently running configuration
matches its original source.
kconfig -w may say that the currently running
configuration was loaded from the saved configuration
foo, but that does not mean that
the two are identical. Either one may have been changed since the load occurred.
Developer’s Note
The layout and content of
kconfig’s output may change without notice, except when
-P fields is
specified. Scripts or applications that need to parse the output of
kconfig are expected to use the -P
fields option. See kconfig(5) for details.
The fields supported in a
kconfig
request are:
name The name of the saved kernel configuration.
title The title for the saved kernel configuration. If the configuration does not have a
title, this field will be empty.
savetime The date and time of the last save (kconfig -s) of the configuration, in the for-
mat returned by ctime(3).
modifytime The date and time of the last change to the saved configuration, in the format
returned by ctime(3).
kernel The pathname of the corresponding kernel directory.
The special field name
ALL may be specified to indicate that all defined fields should be included in the
output. The output may include fields not listed in this man page. The fields will be listed in unspecified
order.
Additional fields may be added in future releases or in patches.
RETURN VALUE
kconfig returns one of the following values:
0 The requested operation was successful. If
-D was specified, this return value indicates that there
are no configuration changes being held for next boot.
1 The requested operation could not be performed immediately as requested, and is being held pend-
ing until the next boot. If
-D was specified, this return value indicates that there are configuration
changes being held for next boot.
2 The requested operation failed. A diagnostic message is printed.
EXAMPLES
To save the current kernel configuration to "myconfig":
$ kconfig -s myconfig
To delete the saved configuration "useless":
$ kconfig -d useless
To export the current kernel configuration:
$ kconfig -e /tmp/myconfig.system
To import a kernel configuration:
$ kconfig -i /tmp/myconfig.system
To rename a configuration:
$ kconfig -r myconfig savedconfig
To load the "nighttime" configuration and apply it immediately:
$ kconfig -l nighttime
To use the "approved" configuration at next boot:
$ kconfig -n approved
Section 1M−−350 Hewlett-Packard Company − 3 − HP-UX 11i Version 2: September 2004