132
Appendix A. Command Line Config Management Tools
In addition to the required channel label and path to the file, you may use the available options for
modifying the file during its addition. For instance, you may alter the path and filename by including
the
--dest-file
option in the command, like:
rhncfg-manager add
--channel=
channel-label
--dest-file=
/new/path/to/file.txt
/path/to/file
You should see output resembling:
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
Содержание NETWORK 3.7 -
Страница 1: ...Red Hat Network 3 7 Reference Guide...
Страница 8: ......
Страница 54: ...42 Chapter 4 Red Hat Network Alert Notification Tool...
Страница 68: ...56 Chapter 5 Red Hat Network Registration Client...
Страница 140: ...128 Chapter 7 Monitoring...
Страница 148: ...136 Appendix A Command Line Config Management Tools...
Страница 152: ...140 Appendix B RHN API Access...
Страница 200: ...188 Glossary...
Страница 208: ......