Appendix A.
Command Line Config Management Tools
In addition to the options provided in the RHN website, Red Hat Network offers two command line
tools for managing configuration files: the
Red Hat Network Configuration Client
and the
Red Hat
Network Configuration Manager
. If you don’t yet have these these tools installed, they can be found
within the RHN Provisioning child channel for your operating system.
A.1. Red Hat Network Configuration Client
As the name implies, the
Red Hat Network Configuration Client
(
rhncfg-client
) is to be in-
stalled and run from an individual client system. From there you may use it to gain knowledge about
how RHN will deploy configuration files to the particular system.
The
Red Hat Network Configuration Client
offers these primary modes: list, get, channels, diff,
and verify.
A.1.1. Listing Config Files
To list the configuration files for the machine and the labels of the config channels containing them,
issue the command:
rhncfg-client list
You should see output resembling:
Config Channel
File
config-channel-17
/etc/foo.txt
config-channel-17
/var/spool/aalib.rpm
config-channel-14
/etc/foo.txt
A.1.2. Getting a Config File
To download the most relevant configuration file for the machine, issue the command:
rhncfg-client get /etc/foo.txt
You should see output resembling:
Deploying /etc/foo.txt
You may then
more
the file to view its contents. Note that the file is selected as 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 4.4.2.6
System Details
for instructions.
A.1.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:
Summary of Contents for NETWORK 3.2 - PROVISIONING
Page 1: ...Red Hat Network 3 2 Provisioning Reference Guide...
Page 6: ......
Page 16: ...6 Chapter 1 What is Red Hat Network...
Page 48: ...38 Chapter 3 Red Hat Network Alert Notification Tool...
Page 106: ...96 Chapter 6 Red Hat Network Registration Client...
Page 114: ...104 Appendix A Command Line Config Management Tools...
Page 118: ...108 Appendix B RHN API Access...
Page 124: ...114 Glossary...