Differentiating Between Latest Config Files; Differentiating Between Various Versions - Red Hat NETWORK 3.4 - PROVISIONING Reference Manual

Provisioning reference
Hide thumbs Also See for NETWORK 3.4 - PROVISIONING:
Table of Contents

Advertisement

106
Pushing to channel blah
Local file >/path/to/file -> remote file /new/path/to/file.txt
A.2.2.1. Add Options
The following options are applicable to the add mode:
Option
,
-h
--help
,
-c=
--channel=CHANNEL_LABEL
,
-d=
--dest-file=DEST_FILE
,
-t=
--topdir=TOPDIR
--delim-start=DELIM_START
--delim-end=DELIM_END
Table A-1. Add Options
A.2.3. Differentiating between Latest Config Files
To obtain a difference between the config files on disk and the latest revisions in a channel, issue the
command:
rhncfg-manager diff
--channel=channel-label
--dest-file=/path/to/file.txt
/local/path/to/file
You should see output resembling:
/tmp/dest_path/foo.txt /home/test/blahhello_world.txt
--- /tmp/dest_path/foo.txt
+++ /home/test/blah/hello_world.txt
-0500
@@ -1 +1 @@
-foo
+hello, world
A.2.4. Differentiating between Various Versions
To compare different versions of a file across channels and revisions, use the
revision of the file should be compared and the
Refer to Section A.2.11 Determining the Number of File Revisions for related instructions. Note that
you specify only one filename here, since you're comparing the file against another version of itself,
such as:
rhncfg-manager diff-revisions
Appendix A. Command Line Config Management Tools
Description
Display this list of options and exits.
Required - Use this config channel.
Conflicts with --topdir - Identify the destination path
and filename of a single file.
Conflicts with --dest-file - Handle multiple files at a
different location than their destination path. Make all
files relative to this string.
Start delimiter for variable interpolation.
End delimiter for variable interpolation.
config_channel: blah
2003-12-14 19:08:59.000000000
flag to identify the two channels to be checked.
-n
revision: 1
flag to indicate which
-r

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the NETWORK 3.4 - PROVISIONING and is the answer not in the manual?

Questions and answers

Table of Contents