Installation guide
Files in config channel 'config-channel-14' /etc/exam ple-config.txt
/etc/rhn/rhn.conf
You may then wonder where the second version of /etc/example-config.txt went. T he rank of
the /etc/exam ple-config.txt file in config-channel-17 was higher than that of the same file
in config-channel-14. As a result, the version of the configuration file in config-channel-14 is
not deployed for this system, although the file still resides in the channel. The rhncfg-client
command does not list the file because it will not be deployed on this system.
1.1.2.2. Getting a Config File
To download the most relevant configuration file for the machine, issue the command:
rhncfg-cli ent get /etc/example-config.txt
You should see output resembling:
Deploying /etc/example-config.txt
View the contents of the file with less or another pager. Note that the file is selected as the most
relevant based upon the rank of the config channel containing it. T his is accomplished within the
Configuration tab of the System Details page.
1.1.2.3. Viewing Config Channels
To view the labels and names of the config channels that apply to the system, issue the command:
rhncfg-cli ent channels
You should see output resembling:
Config channels: Label Name ----- ---- config-channel-17 config chan 2 config-
channel-14 config chan 1
The following table lists the options available for rhncfg-client get:
Table 1.2. rhncfg-client get options
Option Description
--topdir=TOPDIR Make all file operations relative to this string.
--exclude=EXCLUDE Excludes a file from being deployed with 'get'/ May be
used multiple times.
-h, --help Show help message and exit
1.1.2.4 . Differentiating between Config Files
To view the differences between the config files deployed on the system and those stored by Red Hat
Network, issue the command:
rhncfg-cli ent diff
The output resembles the following:
Chapter 1. Red Hat Satellite Information
13