You are running ASMCMD in a non Interactive mode. Which statement is correct?
A.
After the specified command has run, you are returned to the ASMCMD prompt.
B.
You cannot run scripts in non Interactive mode ASMCMD
C.
You can have arguments when running ASMCMD in non-interactive mode
D.
You always run ASMCMD from the ASM home directory when running in non-interactive mode
Explanation:
In noninteractive mode, you run a single ASMCMD command by including the
command and command options on the command line when invoking ASMCMD. ASMCMD runs
the command, generates output if any, and then exits.
Incorrect:
Not B: The noninteractive mode is especially useful for running scripts.
I think C is correct
To run ASMCMD in non interactive mode, where command is any valid ASMCMD command and arguments is a list of command flags and arguments, at the command prompt enter the following:
$ asmcmd command arguments
$ asmcmd ls -l
State Type Rebal Unbal Name
MOUNTED NORMAL N N DG_GROUP1/
MOUNTED NORMAL N N DG_GROUP2/
Correct Option : C
When running in non-interactive mode, ASMCMD prompt is not encountered (it is implicitly called) and on completion of the command, you are returned to the OS prompt.
Refer: http://www.di.unipi.it/~ghelli/didattica/bdldoc/B19306_01/server.102/b14215/asm_util.htm
C is correct.