100
Appendix A. Command Line Config Management Tools
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
-n=
channel-label1
-r=
1
-n=
channel-label2
-r=
1
/path/to/file.txt
Summary of Contents for NETWORK 3.2 - PROVISIONING
Page 1: ...Red Hat Network 3 2 Provisioning Reference Guide...
Page 6: ......
Page 16: ...6 Chapter 1 What is Red Hat Network...
Page 48: ...38 Chapter 3 Red Hat Network Alert Notification Tool...
Page 106: ...96 Chapter 6 Red Hat Network Registration Client...
Page 114: ...104 Appendix A Command Line Config Management Tools...
Page 118: ...108 Appendix B RHN API Access...
Page 124: ...114 Glossary...