Determining The Number Of File Revisions; Updating A File In A Channel; Uploading Multiple Files At Once - Red Hat NETWORK 3.7 Reference Manual

Hide thumbs Also See for NETWORK 3.7:
Table of Contents

Advertisement

Appendix A. Command Line Config Management Tools
A.2.11. Determining the Number of File Revisions
To find out how many revisions (revisions go from 1 to N with N being an integer greater than 0) of a
file/path are in a channel, issue the command:
rhncfg-manager revisions channel-label /tmp/dest_path/foo.txt
You should see output resembling:
Analyzing files in config channel blah
/tmp/dest_path/foo.txt: 1
A.2.12. Updating a File in a Channel
To create a new revision of a file in a channel (or add the first revision to that channel if none existed
before for the given path), issue the command:
rhncfg-manager update
--channel=channel-label
--dest-file=/path/to/file.txt
/local/path/to/file
You should see output resembling:
Pushing to channel blah:
Local file blah/tmp/dest_path/foo.txt -> remote file /tmp/dest_path/foo.txt
A.2.13. Uploading Multiple Files at Once
To upload multiple files to a config channel from local disk at once, issue the command:
rhncfg-manager upload-channel
--topdir=topdir
channel-label
You should see output resembling:
Using config channel blah4
Uploading /tmp/ola_world.txt from blah4/tmp/ola_world.txt
135

Advertisement

Table of Contents
loading

Table of Contents