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.
Tip
Keep in mind, whenever a configuration file is deployed via RHN, a backup of the previous file includ-
ing its full path is made in the
/var/lib/rhncfg/backups/
directory on the affected system. The
backup will retain its filename but have a
.rhn-cfg-backup
extension appended.
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 6.4.2.6
System Details
for instructions.
Содержание NETWORK 3.7 -
Страница 1: ...Red Hat Network 3 7 Reference Guide...
Страница 8: ......
Страница 54: ...42 Chapter 4 Red Hat Network Alert Notification Tool...
Страница 68: ...56 Chapter 5 Red Hat Network Registration Client...
Страница 140: ...128 Chapter 7 Monitoring...
Страница 148: ...136 Appendix A Command Line Config Management Tools...
Страница 152: ...140 Appendix B RHN API Access...
Страница 200: ...188 Glossary...
Страница 208: ......