Appendix A. Command Line Config Management Tools
192
[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
Description
-v, --verbose
Increase the amount of output detail. Displays
differences in the mode, owner, and group permissions
for the specified config file.
-h, --help
Show help message and exit
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
Summary of Contents for NETWORK SATELLITE 5.2 - CHANNEL MANAGEMENT
Page 1: ...Red Hat Network Satellite 5 2 Reference Guide Red Hat Network Satellite ...
Page 10: ...x ...
Page 30: ...Chapter 2 Red Hat Update Agent 18 Figure 2 11 Available Package Updates ...
Page 46: ...34 ...
Page 68: ...56 ...
Page 162: ...150 ...
Page 174: ...162 ...
Page 186: ...174 ...
Page 259: ...247 Appendix D Revision History Revision History Revision 1 0 ...
Page 260: ...248 ...
Page 268: ...256 ...