Run Command Cli - Quantum DXi V-Series Manual

Dxi series command line interface (cli) guide
Table of Contents

Advertisement

Run Command CLI

Utility CLI Commands
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.
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
Support (Optional)
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.
In this case, the only way to run a command with all options over Web Services
is to run it via the runcmd CLI.
Quantum DXi-Series Command Line Interface (CLI) Guide
Web Services Session
6-67081-09 Rev B
February 2014
on page 8.
Web Services
95

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dxi6000 seriesDxi8500Dxi v1000Dxi4000 series

Table of Contents