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:
You can bypass this batch mode double quotation mark restriction for Windows
clients by using the backslash (\) escape character. For example, on the
OBJECTS parameter of the DEFINE CLIENTACTION command, enter the string with the \ character
preceding the double quotation marks in the 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 -CREDENTIALSFILE option.
Tip: The -CREDENTIALSFILE option is preferred as a secure
alternative to the -ID and -PASSWORD options. However, the
-CREDENTIALSFILE option cannot be used with administrator IDs that are configured
for multifactor authentication (MFA).
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 while 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.
You can bypass this batch mode double quotation mark restriction for Windows
clients by using the backslash (\) escape character. For example, on the
OBJECTS parameter of the DEFINE CLIENTACTION command, enter the string with the \ character
preceding the double quotation marks in the command.
dsmadmc -credentialsfile=secretpwdfile define clientaction test_node domain=test_dom
action=restore objects='\"C:\program files\test\*\"'