Appendix A. Command Line Config Management Tools
99
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 something 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
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, up-
date, and upload-channel.
Each mode offers its own set of options, which can be seen by issuing the command,
rhncfg-manager
mode
--help
, such as:
rhncfg-manager diff-revisions --help
You can see such a list of options for the add mode at Section A.2.2.1
Add Options
.
A.2.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 RHN username and password, provide them. You should see output resembling:
Red Hat Network username: rhn-user
Password:
Creating config channel
channel-label
Config channel
channel-label
created
Once you’ve created a config channel, you have the remaining modes available for populating and
maintaining that channel.
A.2.2. Adding Files to a Config Channel
To add a file to a config channel, you need to 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 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 filename 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
You should see output resembling:
Pushing to channel blah
Local file >/path/to/file -> remote file /new/path/to/file.txt
Summary of Contents for NETWORK 3.2 - PROVISIONING
Page 1: ...Red Hat Network 3 2 Provisioning Reference Guide...
Page 6: ......
Page 16: ...6 Chapter 1 What is Red Hat Network...
Page 48: ...38 Chapter 3 Red Hat Network Alert Notification Tool...
Page 106: ...96 Chapter 6 Red Hat Network Registration Client...
Page 114: ...104 Appendix A Command Line Config Management Tools...
Page 118: ...108 Appendix B RHN API Access...
Page 124: ...114 Glossary...