Appendix A. Command Line Config Management Tools192[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 ordirectoryA.2.5. Verifying Config FilesTo quickly determine if client configuration files are different than those associated with it via RHN,issue the command:rhncfg-client verifyThe output resembles the following:modified /etc/example-config.txt /var/spool/aalib.rpmThe 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. Displaysdifferences in the mode, owner, and group permissionsfor the specified config file.-h, --help Show help message and exitTable A.3. rhncfg-client verify optionsA.3. Red Hat Network Configuration ManagerUnlike 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 configurationmanagement features within the RHN website, as well as the ability to script some or all of the relatedmaintenance.It is intended for use by Config Administrators and requires an RHN username and password that hasthe 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 neededconfiguration values from the Red Hat Update Agent. When run as a user other than root, you mayhave 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 theserver running the manager, like so:server.session_lifetime = 120