Quantum DXi-Series Command Line Interface (CLI) Guide
6-67081-02 Rev A
July 2011
72
Utility 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 15. 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.
Changing the Password
syscli --change password --name admin|monitor|cliadmin|cliviewer --
oldpassword <old_password> --newpassword <new_password>
This CLI allows the admin user to change the password of the following special
users:
admin
- Web Administrator
monitor
- Web Monitor
cliadmin
- CLI Administrator
cliviewer
- CLI Monitor
Option description:
•
--change
- Changes password of special users (admin, monitor, cliadmin,
cliviewer)
•
--name
- Name of special user whose password is to be changed.