Differentiating Between Config Files; Verifying Config Files; Red Hat Network Configuration Manager - Red Hat NETWORK 3.2 - PROVISIONING Reference Manual

Hide thumbs Also See for NETWORK 3.2 - PROVISIONING:
Table of Contents

Advertisement

98
Config channels:
Label
-----
config-channel-17
config-channel-14
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
+++ /etc/foo.txt
@@ -1,3 +1,5 @@
+blaaaaaaaaaaaaaaah
In addition, you may include the
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
is locally modified, while
foo.txt
A.2. Red Hat Network Configuration Manager
Unlike the Red Hat Network Configuration Client, the Red Hat Network Configuration Manager
(
) is designed to maintain RHN's central repository of config files and channels,
rhncfg-manager
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
.
~/.rhncfgrc
Appendix A. Command Line Config Management Tools
Name
----
config chan 2
config chan 1
2004-01-13 14:18:31.000000000 -0500
2003-12-16 21:35:32.000000000 -0500
option to compare config files in RHN with those located
--topdir
aalib.rpm
is not.
or
in
the
[rhncfg-manager]
section
of

Advertisement

Table of Contents
loading

Table of Contents