Quantum DXi-Series Command Line Interface (CLI) Guide
6-67081-05 Rev B
April 2012
72
Utility CLI Commands
Release Credential
(Logout Command)
syscli --release credential [--credtoken <credential_token>]
This command is used with the additional
--ws
option to log out of a Web
Services server.
syscli --release credential [--credtoken <credential_token>] --ws
[<remotehost>[:<portnumber>]]
For a description of the
--ws
option, see
This command allows the user to release the specified credential token to
terminate a Web Services session. If
--credtoken
is specified, the user must type
in the credential token that was returned from a previous authenticate
command. If not specified, the syscli program uses the cached copy, which is the
credential token from the most recent authenticate command.
Run Command CLI
syscli --runcmd --<cmd> [<subcmd>] [(--<option> [<value>])]
This CLI command allows users to execute any other CLI commands.
With the availability of this command, there are two methods for executing any
command. For example, to list all NAS shares:
a
Run the 'list share' CLI directly:
syscli --list share
b
Run indirectly via the
runcmd
CLI:
syscli --runcmd --list share
In general, the syntax for this CLI is as follows:
syscli --runcmd {specify all options of the command of interest}
Why bother with the –runcmd CLI?
To list shares, who would run command (b) instead of (a)? It does not make
sense to run (b) because (a) is much simpler.
The answer is that the
runcmd
CLI is most useful when run as a Web Services
(WS) client (i.e., when specified with
--ws
option at the end, see
on page 7. In this case it will submit the command of
interest to a Web Services server for execution without requiring the command
be supported in Web Services.
For example, suppose one wants to list shareadmin on a remote host
10.30.40.50, which is already joined to an ADS domain. Suppose further that
the Web Services server supports the
runcmd
command but NOT the "
-list
shareadmin
command. In this case, one can simply use the
runcmd
CLI to
execute the
--list shareadmin
command remotely via Web Services:
syscli --runcmd --list shareadmin --ws 10.30.40.50
Therefore, the Web Services server can execute all CLI commands if they are sent
to the server via the
runcmd
command.
The WS and non-WS versions of a command may not provide the same support
for all options of the command. Usually the WS versions support fewer options.