
Using obtool
4-12
Oracle Secure Backup Installation and Configuration Guide
Running obtool Commands in Interactive Mode
You can enter the commands described in
Oracle Secure Backup Reference
at the
obtool
prompt. For example, the
lshost
command displays information about the hosts in
your
administrative domain
:
ob> lshost
brhost2 client (via OB) in service
brhost3 mediaserver,client (via OB) in service
br_filer client (via NDMP) in service
stadv07 admin,mediaserver,client (via OB) in service
Redirecting obtool Input from Text Files
You can use the
<
command in interactive mode to read text files containing multiple
obtool
commands. For example, you can create a file called my_script.txt with
multiple
obtool
commands and redirect the
obtool
input to this script as follows:
ob> < /my_dir/my_script.txt
obtool
runs the commands from the file and then returns to the
ob>
prompt for your
next command.
Executing obtool Commands in Noninteractive Mode
You can run
obtool
in noninteractive mode from the Linux or UNIX shell or from the
Windows command prompt with arguments that specify the command to run.
obtool
runs the specified command immediately and exits. Use the following syntax:
obtool [
cl-option
]...
command-name
[
option
]... [
argument
]...
The following example runs the
lshost
command and then returns to the operating
system prompt:
% obtool lshost
Output of command: lshost
brhost2 client (via OB) in service
brhost3 mediaserver,client (via OB) in service
br_filer client (via NDMP) in service
stadv07 admin,mediaserver,client (via OB) in service
%
Running Multiple Commands in Noninteractive Mode
You can run multiple commands in one invocation of
obtool
by separating the
commands with a semicolon on the command line.
Redirecting Input in Noninteractive Mode
You can use the
<
command in noninteractive mode to read text files containing
multiple
obtool
commands. For example, you can create a file called my_script.txt
Note:
Follow the quoting conventions of your host operating system
shell or command line interpreter when entering a semicolon in the
command line. For example, in a bash shell session, quote the
semicolon as follows:
$ obtool lshost ';' lsdev
Содержание Secure Backup 10.3
Страница 8: ...viii ...
Страница 26: ...About Upgrade Installations 1 16 Oracle Secure Backup Installation and Configuration Guide ...
Страница 82: ...Using obtool 4 14 Oracle Secure Backup Installation and Configuration Guide ...
Страница 110: ...Verifying and Configuring Added Tape Devices 5 28 Oracle Secure Backup Installation and Configuration Guide ...
Страница 152: ...Installation and Configuration D 6 Oracle Secure Backup Installation and Configuration Guide ...