Installation guide
[root@testsatellite root]# rhncfg-client diff
--- /etc/test
+++ /etc/test 2013-08-28 00:14:49.405152824 +1000
@@ -1 +1,2 @ @
This is the first line
+This is the second line added
In addition, you may include the --topdir option to compare config files in Red Hat Network with those
located in an arbitrary (and unused) location on the client system, like so:
[root@ root]# rhncfg-client diff --topdir /home/test/blah/ /usr/bin/diff:
/home/test/blah/etc/example-config.txt: No such file or directory /usr/bin/diff:
/home/test/blah/var/spool/aalib.rpm : No such file or directory
1.1.2.5. Verifying Config Files
To quickly determine if client configuration files are different than those associated with it via Red Hat
Network, issue the command:
rhncfg-cli ent veri fy
The output resembles the following:
modified /etc/example-config.txt /var/spool/aalib.rpm
The file example-config.txt is locally modified, while aalib.rpm is not.
The following table lists the options available for rhncfg-client verify:
Table 1.3. rhncfg-client verify options
Option Description
-v, --verbose Increase the amount of output detail. Displays
differences in the mode, owner, and group permissions
for the specified config file.
-o, --only Only show files that differ.
-h, --help Show help message and exit
1.1.3. Red Hat Network Configuration Manager
Unlike the Red Hat Network Configuration Client, the Red Hat Network Configuration Manager
(rhncfg-manager) is designed to maintain Red Hat Network's central repository of config files and
channels, not those located on client systems. T his tool offers a command line alternative to the
configuration management features within the Red Hat Network website, as well as the ability to script
some or all of the related maintenance.
It is intended for use by Config Administrators and requires an Red Hat Network username and
password that has the appropriate permission set. T he username may be specified in
/etc/sysconfig/rhn/rhncfg-m anager.conf or in the [rhncfg-manager] section of
~/.rhncfgrc.
When the Red Hat Network Configuration Manager is run as root, it attempts to pull in needed
Red Hat Satellite 5.6 Reference Guide
14