HP-UX Reference (11i v3 07/02) - 1M System Administration Commands A-M (vol 3)
k
kconfig(1M) kconfig(1M)
-V Requests strict version checking. With this option, an import operation will only succeed if
the kernel components installed on the importing system are the exact same versions 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 opera-
tion (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().
createtime The date and time when the configuration was created, in the format returned by
ctime().
createuser The username of the user who created the configuration, if available.
modifytime The date and time of the last change to the saved configuration, in the format
returned by ctime().
modifyuser The username of the user who made the last change to the saved configuration, if
available.
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 out-
put. 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 pending
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
392 Hewlett-Packard Company − 3 − HP-UX 11i Version 3: February 2007