Databases Reference
In-Depth Information
During installation, OSB automatically creates the admin user. When you first invoke the obtool utility after
installing OSB, you must use the password that you chose for the admin user during the installation.
The obtool utility is quite powerful, with a vast array of commands organized under various command categories.
For example, the command category backup includes the following commands:
backup: creates a file-system backup request (not a database backup)
lsbackup: lists each file-system backup request you created with the backup command
rmbackup : removes backup requests queued in obtool
Using obtool in Noninteractive Mode
Problem
You want to use obtool in a noninteractive mode. For example, you want to write a script that will run unattended.
Solution
You can avoid the obtool command prompt and issue OSB-related commands directly on the operating system
command line by using the following syntax:
obtool [ cl-option ]... command-name [ option ]... [ argument ]...
For example, here's how you issue the lshost command on the command line:
% 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
%
Once an interactive command completes executing, obtool exits and you're back to the operating system prompt.
You can enter multiple obtool commands interactively at the command line, by separating the commands
with a semicolon:
$ obtool lshost ; lsdev
On some types of operating system shell sessions, you may have to enclose the semicolon with quotes, as shown here:
$ obtool lshost ';' lsdev
Often you'll need to execute multiple obtool commands in sequence. Instead of entering each command
separately, you can use a text file containing all the obtool commands you want to execute. You can then run the
commands sequentially by redirecting the obtool input to the script, as shown here:
ob> < /my_dir/my_script.txt
The obtool utility will run all the commands in the my_script.txt file and will return the ob> prompt.
 
Search WWH ::




Custom Search