![Red Hat NETWORK 3.6 - Reference Manual Download Page 134](http://html1.mh-extra.com/html/red-hat/network-3-6/network-3-6_reference-manual_1427569134.webp)
122
Appendix A. Command Line Config Management Tools
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
Description
-h
,
--help
Display this list of options and exits.
-c=
,
--channel=
CHANNEL_LABEL
Required
- Use this config channel.
-d=
,
--dest-file=
DEST_FILE
Conflicts with --topdir
- Identify the destination path
and filename of a single file.
-t=
,
--topdir=
TOPDIR
Conflicts with --dest-file
- Handle multiple files at a
different location than their destination path. Make all
files relative to this string.
--delim-start=
DELIM_START
Start delimiter for variable interpolation.
--delim-end=
DELIM_END
End delimiter for variable interpolation.
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
config_channel: blah
revision: 1
+++ /home/test/blah/hello_world.txt
2003-12-14 19:08:59.000000000
-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
-r
flag to indicate which
revision of the file should be compared and the
-n
flag to identify the two channels to be checked.
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
Summary of Contents for NETWORK 3.6 -
Page 1: ...Red Hat Network 3 6 Reference Guide ...
Page 8: ......
Page 54: ...42 Chapter 4 Red Hat Network Alert Notification Tool ...
Page 68: ...56 Chapter 5 Red Hat Network Registration Client ...
Page 130: ...118 Chapter 6 Red Hat Network Website ...
Page 138: ...126 Appendix A Command Line Config Management Tools ...
Page 142: ...130 Appendix B RHN API Access ...
Page 186: ...174 Appendix C Probes ...
Page 192: ...180 Glossary ...