Determining The Number Of File Revisions; Updating A File In A Channel - Red Hat NETWORK 4.0.5 Reference Manual

Hide thumbs Also See for NETWORK 4.0.5:
Table of Contents

Advertisement

196
A.3.11. Determining the Number of File Revisions
To find out how many revisions (revisions go from 1 to N where N is an integer greater
than 0) of a file/path are in a channel, issue the following command:
rhncfg-manager revisions channel-label /tmp/dest_path/example-config.txt
The output resembles the following:
Analyzing files in config channel example-channel \
/tmp/dest_path/example-config.txt: 1
A.3.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 following command:
rhncfg-manager update \
--channel=channel-label --dest-file=/path/to/file.txt
The output resembles the following:
Pushing to channel example-channel:
Local file example-channel/tmp/dest_path/example-config.txt -> \
remote file /tmp/dest_path/example-config.txt
The following table lists the options available for
Option
-cCHANNEL, --channel=CHANNEL Upload files in this config channel
-dDEST_FILE,
--dest-file=DEST_FILE
-tTOPDIR, --topdir=TOPDIR
--delim-start=DELIM_START
--delim-end=DELIM_END
-h, --help
Table A-10.
rhncfg-manager update
Appendix A. Command Line Config Management Tools
Description
Upload the file as this path
Make all files relative to this string
Start delimiter for variable interpolation
End delimiter for variable interpolation
Show help message and exit
options
/local/path/to/file
rhncfg-manager update
:

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents