B.3.5. Downloading All Files In A Channel; B.3.6. Getting The Contents Of A File; B.3.7. Listing All Files In A Channel - Red Hat NETWORK SATELLITE 5.3.0 Reference Manual

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

Advertisement

Appendix B. Command Line Config Management Tools

B.3.5. Downloading All Files in a Channel

To download all the files in a channel to disk, create a directory and issue the following command:
rhncfg-manager download-channel channel-label --topdir .
The output resembles the following:
Copying /tmp/dest_path/example-config.txt -> \ blah2/tmp/dest_path/
example-config.txt
The following table lists the options available for rhncfg-manager download-channel:
Option
-tTOPDIR, --topdir=TOPDIR
-h, --help
Table B.7. rhncfg-manager download-channel options

B.3.6. Getting the Contents of a File

To direct the contents of a particular file to stdout, issue the command:
rhncfg-manager get --channel=channel-label \ /tmp/dest_path/example-
config.txt
You should see the contents of the file as output.

B.3.7. Listing All Files in a Channel

To list all the files in a channel, issue the command:
rhncfg-manager list channel-label
You should see output resembling:
Files in config channel `example-channel3': /tmp/dest_path/example-
config.txt
The following table lists the options available for rhncfg-manager get:
Option
-cCHANNEL, --channel=CHANNEL
-tTOPDIR, --topdir=TOPDIR
244
Description
Directory all the file paths are relative to. This option
must be set.
Show help message and exit
Description
Get file(s) from this config channel
Make all files relative to this string

Advertisement

Table of Contents
loading

Table of Contents