A.2.5. Verifying Config Files; A.3. Red Hat Network Configuration Manager - Red Hat NETWORK SATELLITE 5.1.1 Reference Manual

Hide thumbs Also See for NETWORK SATELLITE 5.1.1:
Table of Contents

Advertisement

Appendix A. Command Line Config Management Tools
[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

A.2.5. Verifying Config Files

To quickly determine if client configuration files are different than those associated with it via RHN,
issue the command:
rhncfg-client verify
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:
Option
-v, --verbose
-h, --help
Table A.3. rhncfg-client verify options

A.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 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 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.
When the Red Hat Network Configuration Manager is run as root, it attempts to pull in needed
configuration values from the Red Hat Update Agent. When run as a user other than root, you may
have to make configuration changes within the ~/.rhncfgrc file. The session file is cached in
~/.rhncfg-manager-session to prevent logging in for every command.
The default timeout for the Red Hat Network Configuration Manager is 30 minutes. To alter this,
add the server.session_lifetime option and new value to the /etc/rhn/rhn.conf file on the
server running the manager, like so:
server.session_lifetime = 120
192
Description
Increase the amount of output detail. Displays
differences in the mode, owner, and group permissions
for the specified config file.
Show help message and exit

Advertisement

Table of Contents
loading

Table of Contents