106
Appendix A. Command Line Config Management Tools
Config channels:
Label
Name
-----
----
config-channel-17
config chan 2
config-channel-14
config chan 1
A.1.4. Differentiating between Config Files
To obtain a difference between the config files deployed on the system and those for it stored by RHN,
issue the command:
rhncfg-client diff
You should see output resembling:
--- /tmp/@3603.0.rhn-cfg-tmp
2004-01-13 14:18:31.000000000 -0500
+++ /etc/foo.txt
2003-12-16 21:35:32.000000000 -0500
@@ -1,3 +1,5 @@
+blaaaaaaaaaaaaaaah
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 system, like so:
[root@ root]# rhncfg-client diff --topdir /home/test/blah/
/usr/bin/diff: /home/test/blah/etc/foo.txt: No such file or
directory
/usr/bin/diff: /home/test/blah/var/spool/aalib.rpm: No such file or
directory
A.1.5. Verifying Config Files
To quickly determine if files are different than those associated with it in RHN, issue the command:
rhncfg-client verify
You should see output resembling:
modified /etc/foo.txt
/var/spool/aalib.rpm
The file
foo.txt
is locally modified, while
aalib.rpm
is not.
A.2. Red Hat Network Configuration Manager
Unlike the
Red Hat Network Configuration Client
, the
Red Hat Network Configuration Manager
(
rhncfg-manager
) is designed to maintain RHN’s central repository of config files and channels,
not those located on client systems. This tool offers a command line alternative to the configuration
management features within the RHN website, as well as the ability to script some or all of the related
maintenance.
It is intended for use by Config Administrators and in fact requires an RHN username
and password that has the appropriate permission set. The username may be specified in
/etc/sysconfig/rhn/rhncfg-manager.conf
or in the [rhncfg-manager] section of
~/.rhncfgrc
.
Summary of Contents for NETWORK 3.5 - PROVISIONING
Page 1: ...Red Hat Network 3 5 Provisioning Reference Guide...
Page 6: ......
Page 16: ...6 Chapter 1 What is Red Hat Network...
Page 50: ...40 Chapter 3 Red Hat Network Alert Notification Tool...
Page 98: ...88 Chapter 4 Red Hat Network Website...
Page 114: ...104 Chapter 6 Red Hat Network Registration Client...
Page 122: ...112 Appendix A Command Line Config Management Tools...
Page 126: ...116 Appendix B RHN API Access...
Page 132: ...122 Glossary...