wadm
supports invocation in 3 different modes.
They are:
Standalone mode —
In this mode, you invoke wadm
from a command shell,
specifying the desired command, options and operands. When the command finishes
execution, CLI exits back to the shell. This mode can support both interactive
and non-interactive execution of commands. Interactive execution, which is
the default, will prompt for the password if password is not already specified
in the password file (passed through the --password-file option).
Non-interactive execution will result in an error if --password-file
option is not specified. For example,
wadm> create-config --user=admin --password-file=./admin.pwd --http-port=2222 --server-name=syrinx myconfig |
Shell Mode — In this
mode, you invoke wadm
from a command shell with no
command. wadm
prompts the user for a command. After
the command is executed, it will return back to the shell. This shell can
be exited by typing exit or quit command. Interactive and non-interactive
executions are applicable to this mode. For example,
wadm -user=admin -host=serverhost --password-file=admin.pwd --port=8989 |
File Mode — In this
mode, you can add a list of commands in a file and pass the file as an argument
to wadm
. For example,
wadm -user=admin -host=serverhost --password-file=admin.pwd --port=8989 -commands-file=/space/scripts/admscr |
The figure below depicts the syntax for invoking wadm commands.
With the wadm CLI, you can perform all of tasks that you can do with the Administration Console.