Installation guide
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-m anager-session to prevent logging in for every command.
The default timeout for the Red Hat Net work Configuration Manager is 30 minutes. To alter this,
add the server.session_lifetim e option and new value to the /etc/rhn/rhn.conf file on the
server running the manager, like so:
server.session_lifetime = 120
The Red Hat Network Configuration Manager offers these primary modes: add, create-channel, diff,
diff-revisions, download-channel, get, list, list-channels, remove, remove-channel, revisions, update, and
upload-channel.
Each mode offers its own set of options, which can be seen by issuing the following command:
rhncfg-manager mode --help
Replace mode with the name of the mode to be inspected:
rhncfg-manager diff-revi sions --help
You can see such a list of options for the add mode at Table 1.4, “rhncfg-manager add options”.
1.1.3.1. Creating a Config Channel
To create a config channel for your organization, issue the command:
rhncfg-manager create-channel channel-label
If prompted for your Red Hat Satellite username and password, provide them. The output resembles the
following:
Red Hat Network username: rhn-user
Password:
Creating config channel channel-label Config channel channel-label created
Once you have created a config channel, use the remaining modes listed above to populate and
maintain that channel.
1.1.3.2. Adding Files to a Config Channel
To add a file to a config channel, specify the channel label as well as the local file to be uploaded, such
as:
rhncfg-manager add --channel=channel-label /path/to/file
In addition to the required channel label and the path to the file, you may use the available options for
modifying the file during its addition. For instance, you may alter the path and file name by including the -
-dest-file option in the command, like:
rhncfg-manager add --channel=channel-label --dest-
file=/new/path/to/file.txt/path/to/file
Chapter 1. Red Hat Satellite Information
15