When you call Database Manager CLI, you can enter DBM options and a maximum of one DBM command.
You can enter additional parameters for DBM options. The parameters are explained in the description of the respective DBM option.
If you use DBM options with parameters, mark the beginning of the subsequent DBM command with the option –c (see: -c: Indicating as DBM command). By doing so, you prevent the Database Manager program from interpreting the beginning of the DBM command as a parameter of the previous DBM option.
You can also enter additional command options for the DBM command. These command options are explained in the description of the respective DBM command.
Input help is provided for long DBM commands.
For information about the format of the return values for DBM commands, see Reply Format.
>dbmcli [<dbm_options>] [<dbm_command> [command_options]]
Log on to Database Manager CLI as operator OLEG with the password MONDAY, connect to the database DEMODB on the remote computer PARMA, and display the operational state of the database:
>dbmcli -u OLEG,MONDAY -d DEMODB -n PARMA db_state
OK
State
ONLINE
Call Database Manager CLI, log on as operator OLEG with the password MONDAY, connect to the database DEMODB on the local computer and start the backup operation using the backup template DemoDataCompl
Open the utility session with the operator data of the first DMB operator. You therefore enter the option for opening the utility session without parameters. You must indicate the DBM command for starting the backup operation with –c:
>dbmcli -u OLEG,MONDAY -d DEMODB -uUTL -c backup_start DemoDataCompl
OK
Returncode 0
Date 20060418
Time 00131245
Server GENUA
Database DE
Kernel Version Kernel 7.6.00 Build 016-123-109-428