Processing individual commands from the administrative client

Use batch mode to enter a single administrative command. Your administrative client session automatically ends when the command is processed.

Procedure

To start an administrative client session in batch mode, use the following command: dsmadmc server_command

If you do not want to be prompted for your user ID and password, you can enter the DSMADMC command with the -ID and -PASSWORD options.

In batch mode, you must enter the complete command on one line. If a command does not fit on one line, enter the command by using a macro or a script. If you specify a parameter with a string of text using batch mode, enclose the text in single quotation marks (' ') in the macro. Do not use double quotation marks for commands in batch mode, because your operating system might not parse the quotation marks correctly.

Windows operating systemsYou can bypass this batch mode double quotation mark restriction for Windows clients by using the back slash (\) escape character. For example, on the OBJECTS parameter of the DEFINE CLIENTACTION command, you could enter the string with the \ character preceding the double quotation marks in the command.
dsmadmc -id=admin -password=admin define clientaction test_node domain=test_dom
action=restore objects='\"C:\program files\test\*\"'