Getting a Config File
191
A.2.2. Getting a Config File
To download the most relevant configuration file for the machine, issue the command:
rhncfg-client get /etc/example-config.txt
You should see output resembling:
Deploying /etc/example-config.txt
You may then 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. This is accomplished
within the
Configuration
tab of the
System Details
page. Refer to
Section 6.4.2.9, “System Details”
for instructions.
A.2.3. Viewing Config Channels
To view the labels and names of the config channels that apply to the system, issue the command:
rhncfg-client 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
:
Option
Description
--topdir=TOPDIR
Make all file operations relative to this string.
-h, --help
Show help message and exit
Table A.2.
rhncfg-client get
options
A.2.4. Differentiating between Config Files
To view the differences between the config files deployed on the system and those stored by RHN,
issue the command:
rhncfg-client diff
The output resembles the following:
--- /tmp/@3603.0.rhn-cfg-tmp 2004-01-13 14:18:31.000000000 -0500 +++ /
etc/example-config.txt 2003-12-16 21:35:32.000000000 -0500 @@ -1,3 +1,5
@@ +additional text
In addition, you may include the
--topdir
option to compare config files in RHN with those located in
an arbitrary (and unused) location on the client system, like so:
Содержание NETWORK SATELLITE 5.1.1 - RELEASE NOTES
Страница 1: ...Red Hat Network Satellite 5 1 1 Reference Guide Red Hat Network Satellite ...
Страница 10: ...x ...
Страница 30: ...Chapter 2 Red Hat Update Agent 18 Figure 2 11 Available Package Updates ...
Страница 46: ...34 ...
Страница 68: ...56 ...
Страница 162: ...150 ...
Страница 174: ...162 ...
Страница 186: ...174 ...
Страница 259: ...247 Appendix D Revision History Revision History Revision 1 0 ...
Страница 260: ...248 ...
Страница 268: ...256 ...