Quantum DXi-Series Command Line Interface (CLI) Guide
6-67081-09 Rev B
February 2014
Web Services Support (Optional)
9
During the session:
• Any CLI commands specified with the --ws option will be executed on the
axis2 server.
• Any CLI commands without the --ws option will be executed directly as
usual (i.e, not via Web Services).
Logging in to Start a Web Services Session
syscli --authenticate --name <username> --password <password> --client
<client_info> --ws [<host>:[<port>]]
Use this CLI command to start a Web Services session. If the password is not
specified, the system will prompt for it interactively. In this case, the password is
not echoed on screen.
Running CLI Commands
After login, each subsequent command, uses the term
--list share
, which can be
used as follows:
syscli --list share [--credtoken <credential_token>] --ws [<host>:[<port>]]
Note that the syntax of running a CLI command over Web Services is
unchanged, except that it must have a mandatory option
--ws
and an optional
option
--credtoken
. Here,
credential_token
is the value returned in the output
of the
authenticate
command. The
--credtoken
can be specified explicitly or
omitted because the syscli program is smart enough to cache the credential
token in the authenticate command for subsequent use.
Logging Out
syscli --release credential [--credtoken <credential_token>] --ws
[<host>:[<port>]]
Note again that the credential token can be omitted because the syscli program
can use the cached value.
Supported Web
Services Commands
The DXi 2.x Software release supports about 20 Web Services commands, also
known as “operations” in the areas of Replication, NAS, and System Utilities. To
see a complete list, one can type the following URL in a browser:
http://<hostname_or_ipaddress_of_DXi_system>:9090/axis2/services
The output is as follows (with the equivalent syscli commands listed in
parentheses):
WSReplication Service
Available Operations:
• disableNASReplication (syscli -disablerep nas)
• enableNASReplication (syscli -enablerep nas)
• addReplicationSource (syscli -add sourcerep)