108
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.5 - PROVISIONING
Page 1: ...Red Hat Network 3 5 Provisioning Reference Guide...
Page 6: ......
Page 16: ...6 Chapter 1 What is Red Hat Network...
Page 50: ...40 Chapter 3 Red Hat Network Alert Notification Tool...
Page 98: ...88 Chapter 4 Red Hat Network Website...
Page 114: ...104 Chapter 6 Red Hat Network Registration Client...
Page 122: ...112 Appendix A Command Line Config Management Tools...
Page 126: ...116 Appendix B RHN API Access...
Page 132: ...122 Glossary...