A SERVICE OF

logo

130 Appendix A. Command Line Config Management Tools
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:
Config channels:
Label Name
----- ----
config-channel-17 config chan 2
config-channel-14 config chan 1
A.1.4. Differentiating between Config Files
Toobtain 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.