The software described in this documentation is either no longer supported or is in extended support.
Oracle recommends that you upgrade to a current supported release.
Custom information keys allow you to extract configuration information from clients.
To use a custom information key:
Define the custom information key in Spacewalk as described in Section 10.4.2, “Defining Custom Information Keys Using the Spacewalk Web Interface” and Section 10.4.3, “Defining Custom Information Keys Using spacecmd”.
For example, you could define a custom information key named
uptrack-uname
to store the value of the Ksplice effective kernel version.Install the
rhn-custom-info
package on each client with which you want to use the key.Use the rhn-custom-info command to make the value of the key available in Spacewalk. For example:
#
rhn-custom-info uptrack-uname `uptrack-uname -r`
This command makes the value returned by
uptrack-uname -r
available as the value of theuptrack-uname
key. You can then use the macrorhn.system.custom_info(uptrack-uname)
to extract the value ofuptrack-name
within a configuration file.