Appendix A. Command Line Config Management Tools
187
A.2.1. Listing Config Files
To list the configuration files for the machine and the labels of the config channels contain-
ing them, issue the command:
rhncfg-client list
The output resembles the following list:
Config Channel
File
config-channel-17
/etc/example-config.txt
config-channel-17
/var/spool/aalib.rpm
config-channel-14
/etc/rhn/rhn.conf
These are the configuration files that apply to your system. However, there may be duplicate
files present in the other channels. For example, issue the following command:
rhncfg-manager list
config-channel-14
and observe the following output:
Files in config channel ’config-channel-14’
/etc/example-config.txt
/etc/rhn/rhn.conf
You may then wonder where the second version of
/etc/example-config.txt
went.
The rank of the
/etc/example-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 config-
uration 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.
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.8
System Details
for instructions.
Содержание NETWORK 4.0 -
Страница 1: ...Red Hat Network 4 0 Reference Guide...
Страница 10: ......
Страница 16: ...vi Introduction to the Guide...
Страница 24: ...8 Chapter 1 Red Hat Network Overview...
Страница 40: ...24 Chapter 2 Red Hat Update Agent Figure 2 11 Available Package Updates...
Страница 58: ...42 Chapter 2 Red Hat Update Agent...
Страница 80: ...64 Chapter 5 Red Hat Network Registration Client Figure 5 15 Text Mode Welcome Screen...
Страница 186: ...170 Chapter 7 Monitoring...
Страница 200: ...184 Chapter 8 UNIX Support Guide...
Страница 214: ...198 Appendix A Command Line Config Management Tools...
Страница 274: ...258 Appendix C Probes...
Страница 282: ...266 Glossary...