Process commands in batch mode

Some options are valid only on the initial command line and not in interactive mode. These options generally affect the operation of the entire session.

For example, the command dsmc query session -errorlogname=myerror.log is accepted and it does name the error log. However, it is accepted simply because it appears in the initial command, even though the option is not valid for the query command.

There are also some options that are always valid on the initial command line as well as on individual commands in interactive mode. Therefore, certain options are accepted on the initial command line even though they have no effect on the command being entered. For example, dsmc query session -subdir=yes is a valid command, but in this case the -subdir option has no effect on the command that was entered.

When you enter a single command in batch mode, precede it with the executable program name, dsmc. For example, to process the incremental command in batch mode, you would enter:
   dsmc incremental

Tivoli® Storage Manager prompts you each time you enter a command if the passwordaccess option is set to prompt and authentication on the server is set to On. Type your password and press Enter.

You can also enter your password using the password option with a command, but your password appears on the screen. For example, if your password is secret, enter:
   dsmc incremental –password=secret

If you set the passwordaccess option to generate in your dsm.opt file, you do not need to specify the password with the command. Tivoli Storage Manager only prompts you for your password if you are registering your workstation with a server or manually changing your password.