Appendix A. Command Line Config Management Tools
135
A.2.11. Determining the Number of File Revisions
To find out how many revisions (revisions go from 1 to N with N being an integer greater than 0) of a
file/path are in a channel, issue the command:
rhncfg-manager revisions
channel-label
/tmp/dest_path/foo.txt
You should see output resembling:
Analyzing files in config channel blah
/tmp/dest_path/foo.txt: 1
A.2.12. Updating a File in a Channel
To create a new revision of a file in a channel (or add the first revision to that channel if none existed
before for the given path), issue the command:
rhncfg-manager update
--channel=
channel-label
--dest-file=
/path/to/file.txt
/local/path/to/file
You should see output resembling:
Pushing to channel blah:
Local file blah/tmp/dest_path/foo.txt -> remote file /tmp/dest_path/foo.txt
A.2.13. Uploading Multiple Files at Once
To upload multiple files to a config channel from local disk at once, issue the command:
rhncfg-manager upload-channel
--topdir=
topdir
channel-label
You should see output resembling:
Using config channel blah4
Uploading /tmp/ola_world.txt from blah4/tmp/ola_world.txt
Содержание 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: ......