This document is for DXi 2.1.1 Software. Made in the USA. Quantum Corporation provides this publication “as is” without
warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability or
fitness for a particular purpose. Quantum Corporation may revise this publication from time to time without notice.
Quantum, the Quantum logo, DLT, DLTtape, the DLTtape logo, SuperLoader, Scalar, StorNext, and DXi are registered
trademarks of Quantum Corporation, registered in the U.S. and other countries. Preserving the World's Most Important Data.
Yours., Backup. Recovery. Archive. It’s What We Do., the DLT logo, DLTSage, Dynamic Powerdown, FastSense, FlexLink,
GoVault, MediaShield, Optyon, Pocket-sized. Well-armored, SDLT, SiteCare, SmartVerify, StorageCare, Super DLTtape, and
Vision are trademarks of Quantum. LTO and Ultrium are trademarks of HP, IBM, and Quantum in the U.S. and other countries.
All other trademarks are the property of their respective companies. Specifications are subject to change without notice.
iiContents
Quantum DXi-Series Command Line Interface (CLI) Guide
Quantum DXi-Series Command Line Interface (CLI) Guide
6-67081-05 Rev B
April 2012
viiiContents
Introduction
Quantum DXi-Series Command Line Interface (CLI) Guide
6-67081-05 Rev B
April 2012
The Command Line Interface (CLI) for DXi™-Series systems serves as a command
line equivalent of the remote management functionality. This guide describes
the CLI commands for DXi 2.1.1 Software, which is available for the following
systems:
•DXi V1000
• DXi4000 Family
• DXi6500 Family
• DXi6700 Family
• DXi8500
Not all CLI commands are available for all DXi-Series systems, as noted below in
the sections describing the CLI commands.
Note: Before you can login to the CLI User account, you must change the
password on the Security page of the remote management console.
For more information, see the
Reference and Documentation CD that came with your system.
User’s Guide
located on the Quick
CLI Users
Note: For more information about concepts and terms used in this guide, see
the “System Description” chapter and the glossary of terms in the
User’s Guide
that came with your system.
There are two local CLI user accounts to support the command line interface: a
CLI admin user and a CLI viewer user. They are defined as cliadmin (CLI
Administrator Account) and cliviewer (CLI Monitor Account), respectively. The
passwords are the same as the CLI user names. The CLI users can also be enabled
or disabled from the Security configuration page. By default, the two CLI user
accounts are enabled.
The two CLI users use the SSH capability to log in to the DXi™ system. Both are
confined to a restricted shell for security purposes. Only certain commands are
allowed to run in the restricted shell. The CLI command (syscli) is available for
both CLI users. In addition, a limited number of shell commands are available to
both CLI users to support scripting such as cat, cp, grep, ll, ls, mv, rm, vi, and wbinfo. These commands are restricted so that they only work on files in the CLI
user’s home directory (see Available Linux Commands
located on the Quick Reference and Documentation CD
on page 2).
The cliviewer user has the ability to view or retrieve information and is not
allowed to add, change, or delete any information. The cliadmin user has the
same ability as cliviewer and in addition, has the privilege to add, change, or
delete information. If the cliviewer user attempts to run any intrusive command
Introduction1
Quantum DXi-Series Command Line Interface (CLI) Guide
6-67081-05 Rev B
April 2012
(such as add, edit, or delete) that changes any information in the system, an
error will be returned.
Additional commands are available to the CLI admin user but not to the CLI
viewer user. For example, the ftp command is available only to the CLI admin
(see Available Linux Commands
on page 2).
CLI Passwords or
Authorized Keys
Available Linux
Commands
To remotely issue CLI commands via SSH, you must ensure that the
authorized_keys file contains public keys that allow commands to be executed
without requiring a login password. The authorized_keys file is located in the /home/cliadmin/authorized_keys file.
The following commands are standard Linux commands that are available to the
CLI users in their restricted shells. Display the help text to see syntax and usage
information for a command. To display the help text, enter the --help option
after the command name. For example, cat --help displays information about
the cat command.
The following commands available to the CLI admin and CLI viewer users in their
restricted shells:
• cat - Displays the contents of a file.
• cp - Copies a file.
• grep - Searches for a pattern in files.
• ls - Displays a list of files.
• ll - Displays a list of files with attributes.
• mv - Renames a file in the restricted shell.
• rm - Deletes files.
• vi - Opens a file for editing.
• scp - Copies files securely.
• less - displays text one screen at a time.
• head - displays first part of the file
• tail - display last part of the file
The following commands are available only to the CLI admin user:
• ftp - Transfers a file from the user’s home directory to a remote system.
• wbinfo - Queries and returns information about Samba related operations
on the system.
2CLI Users
CLI Syntax Conventions
The CLI program is named syscli. It is usually invoked with parameters necessary
to carry out a predefined task. The first parameter is usually a verb indicating the
action to be performed and hence is called a command. A number of
commands specify the command type (known as subcommand) or the object
upon which the command will operate.The syntax of each CLI is listed in each
section.
The syntax for all syscli commands falls into one of the following two formats:
• cmd can be: list, add, edit, del, deleteall, ...
• subcmd can be: share, storageserver, lsu, ...
The following are the syntax conventions for the tokens on the command line.
Quantum DXi-Series Command Line Interface (CLI) Guide
6-67081-05 Rev B
April 2012
• All tokens prefixed with double dash “--” are defined as options.
• All tokens that have no double dash are defined as values of the preceding
options.
• An option can be by itself or followed by a value.
• The first option is also known as the command. It is usually a verb such as
list, add, del, edit, ...
• If the first option has a value, this value is also known as the object (or
subcommand) upon which the command operates. The object is usually a
noun such as share, storageserver, ...
• An option value specified within the angle brackets “< >” means it is to be
replaced by an appropriate value. Without the angle brackets, the value is
literal text and must be entered exactly as is. For example, the command
syscli --del share --name <share_name>
has two options --del and --name, one literal value, share, and one
appropriate value, <share_name>.
• Options or values specified between square brackets “[ ]” are optional. If an
option and/or value is not specified, the CLI provides a default value for it.
• The pipe character “|” indicates that only one of the possible option names
or values must be specified. This is like an OR symbol.
• Options enclosed within parentheses “( )” mean one or more instances of
them must be specified. For example, the command
requires that one or more pairs of devices and luns must be specified.
• If a command requires a --password option and you do not specify it on the
command line, the syscli program will prompt for the password and will
not echo the response on screen for security purposes.
CLI Syntax Conventions3
Quantum DXi-Series Command Line Interface (CLI) Guide
6-67081-05 Rev B
April 2012
• Curly braces “{ }” in the syntax are used to group options and/or values
together for readability. These characters should not be used when entering
the commands.
• Option values separated by a comma “,” mean that one or more of the
values can be specified.
• The option names and/or values may change in the final release version.
Finally, it should be noted that all options and values are defined as single
tokens in the command line syntax. Thus if a provided value consists of multiple
tokens, it must be quoted to prevent the shell from interpreting it as separate
tokens. For example:
syscli --add share .... --desc 'This is a test share'
In addition, if a provided value contains characters that are special to the shell,
these characters must be escaped correctly so that the shell treats them as
regular characters. For example,
syscli --add share .... --desc Testing\!
Note: The shell used in the CLI user accounts is the bash shell. The set of
special characters are the same characters that bash treats as special
characters. Refer to the bash shell documentation (
www.gnu.org/software/bash/manual/bashref.html) for the set of
special characters interpreted by the shell. If you do not want the shell
to interpret any special characters, use single quotes (‘).
http://
Adding the CLI Directory to the Path
The syscli commands are located in the /hurricane directory. To make it easier to
invoke the CLI commands, you should add this path to the user profile.
To do this, add the following line to the user profile:
PATH=$PATH:/hurricane;export$PATH
CLI Help Commands
The following help commands are available:
•Typing syscli alone will display a summary of help commands.
•Typing syscli help will show syntax for all syscli commands.
•Typing syscli help NAS | VTL | OST | REPLICATION |... will show syntax for
all Network Attached Storage (NAS), VTL, Open Storage Technology (OST),
replication, etc. commands respectively.
4Adding the CLI Directory to the Path
•Typing syscli help --<cmd> will show syntax for all commands named
•Typing syscli help --<cmd> <subcmd> will show detailed help for this
CLI Special Options
Every command can accept these options:
• --outfile <output_filename>
• --errfile [<error_filename>]
• --file <options_filename>
• --ws [<ws_server>[:<port>]
Quantum DXi-Series Command Line Interface (CLI) Guide
6-67081-05 Rev B
April 2012
<cmd>. For example, syscli help --list shows all list commands, syscli help
--add shows all --add commands.
specific command. For example, syscli help --list nas shows the complete
help for the --list nas command.
The first two options are supported because the shell capability of redirecting
the standard output and standard error using the “>” character is forbidden in
the restricted shell.
CLI command options:
• --outfile specifies that the standard output will be saved to file
<output_filename>.
• --errfile specifies that the standard error will be saved to file
<error_filename>. If <error_filename> is not specified, it will be saved to
the same <output_filename>.
The third option is supported to avoid the problem of quoting and/or escaping
special characters. The option --file tells the program to open the file
<options_filename> to read additional options, where each option (or each
option=value pair if the option requires a value) is listed on a separate line.
Blank lines or lines starting with “#” are ignored. For example, the command
syscli --add share --name abc --proto cifs
is functionally equivalent to any of the following commands:
1 syscli --file <myfile>
where <myfile> is a file containing the following:
‐‐add=share
‐‐name=abc
‐‐proto=cifs
2 syscli --add share --file <file1>
where <file1> is a file containing the following:
‐‐name=abc
‐‐proto=cifs
CLI Special Options5
Quantum DXi-Series Command Line Interface (CLI) Guide
6-67081-05 Rev B
April 2012
3 syscli --add share --file <file2> --proto cifs
where <file2> is a file containing the following:
‐‐name=abc
Syntax of Options FileThe following are the syntax conventions for the options file:
• Command line options are processed from left to right. Thus any option in
the file can be overridden by listing it again on the command line after the
--file option. In example 3 above, the option-value pair --barcode
mybarcode overrides the one specified in file2 because it is processed after
option --file.
• Spaces surrounding the options are insignificant. The following examples
are equivalent:
• --name=abc
•--name =abc
• All characters that follow “=” are significant and are accepted as is,
including space, tab, backslash, single or double quotes, or any other
symbol. Because no characters are special, don’t escape them. This rule is
enforced so to support values that contain leading or trailing spaces/quotes
such as in passwords. For example:
CLI Exit Code
--password=abc
--password= abc
--password=a\!bc
--password="abc"
are all different passwords.
• The second password has four characters: space, a, b, and c.
• The third password has five characters: a, \, !, b, and c.
• The fourth password has five characters: ", a, b, c, and ".
If the command runs to completion successfully, it returns an exit code of zero
(0) along with the following message:
Commandcompletedsuccessfully.
If the command fails, it returns an exit code of one (1) along with a one line
error message that summarizes the error. This error message is always prefixed
ERROR:“ and appended with an error code in parentheses. For example:
It can be seen that the error code is “E1000011” and the error message is “CIFS
serverisdisabled!
Note: Possible error codes are listed at the end of each major section below.
”
Web Services Support (Optional)
By default, each CLI is executed directly on the DXi system it is running.
However, it is possible to send the command to another DXi system for
execution and display the result on the local DXi system. The syscli program in
DXi 2.0.1 Software has the capability of running the command remotely using
Web Services WSDL protocol version 2.0, provided that the remote DXi system is
also running DXi 2.0.1 Software as well.
Starting with DXi 2.0 Software, every DXi system runs a Web Services (WS)
server (specifically, axis2 server), which listens at port 9090 for all Web Services
requests from WS clients and then sends the result back to the clients.
Quantum DXi-Series Command Line Interface (CLI) Guide
6-67081-05 Rev B
April 2012
Note: It is strongly recommended that all CLI commands not be run in Web
Services mode when both the server and the client are on the same
system. It is much faster to run the commands directly without using
Web Services. Running a CLI command over Web Services protocol is a
complex process involving two distinct programs (client-server) and
network communication, thus having more points for failure.
Web Services SyntaxTo use Web Services for any CLI, one has to specify an additional option as
• ws_server is the hostname or IP address of the system that runs the WS
server. If not specified, it is assumed to be localhost.
• port is the port number to which the server is listening for client requests. If
not specified, it is assumed to be port 9090.
The presence of the –ws option makes the syscli program work in client-server
mode; it will not execute the command on the local DXi system anymore.
Rather, it will send the command to the axis2 server on the specified remote
system. This server will then invoke the syscli program on the system it is
running to execute the requested command and then send the result back to
the syscli client to display.
To get more help on Web Services, type “syscli help ws”.
Example: The following commands are equivalent:
• syscli --list share ... --ws
Web Services Support (Optional)7
Quantum DXi-Series Command Line Interface (CLI) Guide
6-67081-05 Rev B
April 2012
• syscli --list share ... --ws localhost:9090
• syscli --list share ... --ws localhost
• syscli --list share ... --ws :9090
Web Services SessionFor security reasons the WS server cannot allow an arbitrary client to send
commands to it for execution. Before a client can execute any command, it has
to log in the WS server first in order to begin a WS session. If the login is
successful, the server will send back a credential token (an encrypted string). The
client has to include this credential token in all subsequent WS commands that
it sends to the server for execution. When the client is done with its commands,
it can log out the server. If the client is idle for more than 30 minutes, the server
automatically terminates the session. This time-out value can be overridden in
the login command.
Sample Web Services
Session
A Web Services session begins when the user logs in successfully and terminates
when the user logs out (releases credential), or when the session is idle for
30 minutes.
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).
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:
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.
8Web Services Support (Optional)
Quantum DXi-Series Command Line Interface (CLI) Guide
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.0.1 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:
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)
• deleteReplicationTarget (syscli -del targetrep)
• addReplicationTarget (syscli -add targetrep)
• deleteReplicationSource (syscli -del sourcerep)
WSNas Service
Available Operations:
• deleteAllShares (syscli –deleteall share)
• getShare (syscli –get share)
• updateShare (syscli –edit share)
• deleteShare (syscli –del share)
• getShares (syscli –list share)
• getShareNames (syscli –list sharename)
• getShareCount (syscli –getcount share)
• addShare (syscli –add share)
WSSystem Service (System Utility)
Available Operations:
• runCommand (syscli –runcmd)
• getPermissions (syscli –get permission)
• releaseCredential (syscli –release credential)
• authenticate (syscli –authenticate)
Web Services Support (Optional)9
Quantum DXi-Series Command Line Interface (CLI) Guide
6-67081-05 Rev B
April 2012
How to Run
Unsupported Web
Services Commands
The vast majority of CLI commands are not supported to run over Web Services
in DXi 2.0.1 Software. However, they can be run over WS via the command syscli --runcmd because this command is supported for execution over Web
Services.
Consider the command --list healthcheckstatus, which is not supported in Web
Services. To understand how it can be run over Web Services, one needs to
understand how the runcmd CLI works.
The runcmd CLI is very simple. Any CLI command can run directly as is, such as
the following command:
syscli --list healthcheckstatus
However, the command can be run indirectly by specifying it as options to the
runcmd CLI as follows:
syscli --runcmd --list healthcheckstatus
The syntax above runs the runcmd CLI, which then parses the options specified
after the “—runcmd” token. Based on these options, the runcmd CLI invokes
the appropriate system API to execute. In the end the effect is executing the
--list healthcheckstatus command.
Because the runcmd CLI is supported over Web Services, it can accept the –ws
option to send the command to a WS server for execution as follows:
Because Web Services commands and regular CLI commands differ only in the
additional options --ws and --credtoken, there is no need to document WS
commands separately. The option --credtoken is optional and can be ignored
because syscli can use the cached value.
VTL Configuration CLI Commands
The following sections describe the supported VTL CLI commands:
Note: VTL configuration CLI commands are available only on the DXi6700 and
DXi8500 systems.
• Listing Existing VTL and Its Attributes
• Listing Available Library Models
• Listing of Supported Tape Drive
• Adding a VTL
• Editing a VTL
• Deleting a VTL
• Listing the Media Types
10VTL Configuration CLI Commands
Quantum DXi-Series Command Line Interface (CLI) Guide
• Creating Media
• Listing the Media and Attributes
• Media Actions
• Deleting All Media
• Turning a VTL Online/Offline
• Listing Available Hosts
• Adding a Host
• Editing a Host
• Deleting a Host
• Listing Targets
• Listing Devices
• Listing the SAN Client Group
• Adding a SAN Clients Group
• Deleting a SAN Client Group
6-67081-05 Rev B
April 2012
Listing Existing VTL and
Its Attributes
• Listing VTL Storage Locations and Index
• Moving Media
• Unloading Media
• Resetting the VTL Target Ports
syscli --list vtl [--name <VTL_name>]]
This CLI command allows the CLI admin to display a list of all existing VTLs on
the system and their attributes when no partition name is specified. If a VTL
name is specified, only that VTL is listed with its attributes. The attribute list
includes the name of the VTL, mode, library model, drive model type, number of
drives, number of media, number of slots, serial number, data deduplication
status (enabled/disabled) and backup window status (enabled/disabled). If the
backup window status is enabled, the list will also include the start and end
time of the backup window.
An example output for a VTL named myvtl is shown below:
ListofallexistingVTL's:
Totalcount=1
[vtl=1]
name=myvtl
mode=offline
model=DXi6700
drivemodel=QUANTUMDLTS4
drives=2
media=2
VTL Configuration CLI Commands11
Quantum DXi-Series Command Line Interface (CLI) Guide
6-67081-05 Rev B
April 2012
slots=12
serial=123456XYZ
dedup=enabled
backupwindow=disabled
Listing Available Library
Models
syscli --list library
This CLI command allows the CLI admin to display a list of the available library
models. Specific library model or product ID is required when adding or creating
a new partition.
An example output of three supported library models is shown below:
Listofallavailablelibrarymodels:
Totalcount=1
[library=1]
productid=DL1500
description=EMCDiskLibrary
[library=2]
productid=Scalar100
description=ADICScalar100
[library=3]
productid=Scalari2000
description=ADICScalari2000
Listing of Supported
Tap e D r i v e
syscli --list drive
This CLI command allows the CLI admin to display a list of the available virtual
tape drive models. A specific virtual tape drive model is required when adding or
creating a new partition.
An example output of two tape drive is shown below:
Listofallavailabledrivemodels:
Totalcount=2
[drive=1]
model=QUANTUMDLTS4
description=QuantumDLTS4
[drive=2]
model=QUANTUMSDLT320
description=QuantumSDLT320
12VTL Configuration CLI Commands
Quantum DXi-Series Command Line Interface (CLI) Guide
6-67081-05 Rev B
Adding a VTLsyscli --add vtl --name <vtlname> --model <modelname> --slots
This CLI command allows the CLI admin to add a partition. The following
partition settings are required:
• --name <vtlname>: The virtual library name, vtlname, must be
alphanumeric, and it must begin with a letter.
• --model <modelname>: The library model name, modelname, is the VTL
model to create. A list of supported library models can be retrieved using
the --list library command.
• --slots <number_of_slots>: One I/E slot will be created for each storage
slot, until maximum of 240 I/E slots exist.
• --drivemodel <tape_drive_model>: The drive model to create for this VTL.
A list of supported drives can be retrieved using the --list drive command.
• --drives <number_of_drives>: The number of virtual tape drives attached
to the VTL.
• --dedup: Enables deduplication. By default, VTL will be created with
deduplication disabled.
April 2012
Optionally, the user can specify whether to enable data deduplication and
enable backup window. Once the partition is created, the data deduplication
state cannot be changed. The backup window start and end time can be
specified if the data deduplication is specified (enable).
The library model can be derived from the 'productid' value returned from the
list of available library models.
Caution: Do not use an underscore ( _ ) in the name of the VTL partition.
Editing a VTLsyscli --edit vtl --name <VTL_name> [--model <model_name>] [--slots
This CLI command allows the CLI admin to edit an existing partition. The VTL
name is required to change any VTL setting. The VTL name and the tape drive
model cannot be changed. Note: Data deduplication settings cannot be edited
once the partition is created.
Caution: Do not use an underscore ( _ ) in the name of the VTL partition.
Deleting a VTLsyscli --del vtl --name <VTL_name>
This CLI command allows the CLI admin to delete an existing VTL. The VTL name
is required to delete an existing VTL. In order to delete a VTL, a VTL needs to be
offline first and no media should be present in the VTL.
VTL Configuration CLI Commands13
Quantum DXi-Series Command Line Interface (CLI) Guide
6-67081-05 Rev B
April 2012
Listing the Media Typessyscli --list mediatype --drivetype <drive_type>
This CLI command allows the CLI admin to display a list of media types
supported given a tape drive model. For example, for DLT-S4 drive model, media
types SDLT1, SDLT2 and DLTS4 are supported and will be returned from this CLI.
The drive type can be derived from the value of the 'model' key name of the list
of available tape drives models.
An example output of three media types is shown below for DLT-S4 media types
supported.
Listofmediatypes:
Totalcount=3
[mediatype=1]
type=SDLT1
capability=RW
[mediatype=2]
type=SDLT2
capability=RW
[mediatype=3]
type=DLTS4
capability=RW
Creating Mediasyscli --add media --name <VTL_name> --type <media_type> --media
This CLI command allows the CLI admin to create a media for a defined VTL.
Creating a media is necessary after a VTL is created. The following are required
to create a media:
•VTL Name
•Media Type
• Number of media
•Starting barcode
• Initial location
The media type can be derived from the values returned from the type field
name of the list of media supported for a given tape drive model CLI. Initial
location can either be a slot or I/E slot.
The media capacity can optionally be specified. If media capacity is not
specified, it defaults to the media type native capacity.
14VTL Configuration CLI Commands
Quantum DXi-Series Command Line Interface (CLI) Guide
6-67081-05 Rev B
April 2012
Listing the Media and
Attributes
syscli --list media --name <VTL_name> [--barcode <barcode>]
This CLI command allows the CLI admin to display a list of barcodes in the
system from the specified VTL name. When a barcode of the cartridge is
specified, this CLI returns the attributes of the single cartridge specified if it
exists. An example output of two media from VTL MyVTL is shown below.
Listofmedia:
Totalcount=2
[media=1]
vtl=MyVTL
barcode=SDL101
type=SDLT-S4
access=scratch
pool=application
used=0.0
capacity=800.0
[media=2]
vtl=MyVTL
barcode=SDL101
type=SDLT-S4
access=scratch
pool=application
used=0.0
capacity=800.0
Media Actionssyscli --del media --barcode <barcode> --name <VTL_name>
syscli --export media (--barcode <barcode>) | --all --name <VTL_name>
syscli --recycle media (--barcode <barcode>) | --all --name <VTL_name>
syscli --writeprot media (--barcode <barcode>) | --all --name <VTL_name>
[--disable]
syscli --import media (--barcode <barcode>) | --all --name <VTL_name>
This CLI command allows the admin user, given a specified media barcode(s)
and its VTL name, to change the state of a tape to deleted, exported, recycled,
write-protected or import media using this CLI. Multiple barcodes can be
specified on the command that supports it. This is specified in the syntax with
“()” which means one or more. Alternatively, if the --all option is specified, then
all the media in the specified VTL is used for the operation.
To d i sa b l e t h e w r i te -protect on a media, the --disable option must be specified
in the --writeprot media command.
VTL Configuration CLI Commands15
Quantum DXi-Series Command Line Interface (CLI) Guide
6-67081-05 Rev B
April 2012
Deleting All Mediasyscli --deleteall media --name <VTL_name> [--sure]
This CLI command allows the admin user to delete all media in the specified VTL.
If the --sure option is specified, no confirmation prompt is displayed. Note that
*UNASSIGNED must be used for <VTL_name>.
Turning a VTL Online/
Offline
syscli --online vtl (--name <VTL_name>) | --all
This CLI command allows the admin to turn a VTL online.
syscli --offline vtl (--name <VTL_name>) | --all
This CLI command allows the admin to turn a VTL offline. A VTL needs to be
offline before you can edit or delete a partition.
Listing Available Hostssyscli --list host
This CLI command allows the CLI admin to display a list of available hosts. The
WWPN, its alias (if it was added by the user) and connection status are returned
for each host. If the host alias was not added initially, the output will indicate
that no alias was given.
An example output of a host with no alias given is shown below.
Listofavailablehosts:
Totalcount=1
[host=1]
wwpn=220100e08ba8338d
alias=null
connectionstatus=active
Adding a Host syscli --add host -wwpn <host_world_wide_port_name> --alias
<host_alias>
This CLI command allows the CLI admin to add a host to the available host list.
The required parameters are the host's world wide port name (WWPN) and alias.
If the host already exists from the list of available hosts, adding the same host
will return an error.
Editing a Hostsyscli --edit host --wwpn <host_world_wide_port_name> --alias
<host_alias>
This CLI command allows the CLI admin to add or change the host alias of a
host. The required parameter are the existing host's world wide port name
(WWPN) and alias.
16VTL Configuration CLI Commands
Quantum DXi-Series Command Line Interface (CLI) Guide
Deleting a Host syscli --del host --wwpn <host_world_wide_port_name>
This CLI command allows the CLI admin to delete an existing host from available
host list. The required parameter is the host's WWPN. The host must be inactive
to delete it.
Listing Targetssyscli --list target
This CLI command allows the CLI admin to display a list of targets on the system.
It lists the node, alias (FC port) and the WWPN. An example output of a target is
given below.
This CLI command allows the CLI admin to display a list of devices on the
system. The list includes the type of device (VMC or VTD), serial number of the
device and the virtual tape library name the device is in. An example output of
devices on the system is shown below.
Listofdevices:
Totalcount=3
[device=1]
vtlname=MyVTL
type=VMC
serial=VL01SV0825BVA04501
[device=2]
vtlname=MyVTL
type=VTD
serial=VL01SV0825BVA04501
[device=3]
vtlname=MyVTL
type=VTD
serial=VL01SV0825BVA04501
VTL Configuration CLI Commands17
Quantum DXi-Series Command Line Interface (CLI) Guide
6-67081-05 Rev B
April 2012
This CLI command allows the CLI admin to display a list of existing SAN client
group(s) on the system. The list returned contains the virtual tape library name,
group name, host, target and devices associated with the group. If a virtual
library name is specified, this CLI lists only the group associated with the virtual
tape library.
An example output of a SAN client group is shown below.
This CLI command allows the CLI admin to add a host access group. The
following are required to create a host access group.
• Group Name
•VTL Name
• Host Name or WWPN
• Target (FC Port)
• List of device serial numbers (either VMC or VTD) and the desired host LUNs.
There should at least be one device and LUN specified.
The WWPN can be derived from the values returned for wwpn field name of the
list of host CLI. The Target can be derived from the value returned for wwpn
field name of the list of targets CLI. The List of device serial number can be
derived from the 'serial' field name of the list of devices of the VTL specified.
18VTL Configuration CLI Commands
Quantum DXi-Series Command Line Interface (CLI) Guide
6-67081-05 Rev B
April 2012
If the --useccl option is specified, the Command and Control LUN feature is
enabled.
Note: The CCL (Command and Control LUN) is not used in most
environments. This option is recommended for host access groups that
contain an HP-UX host. It can also be used if hosts that are not
assigned to any host access group exist in the SAN. The CCL is
accessible to hosts only through LUN 0.
Caution: If you are not sure if you should use CCL, contact Quantum
This CLI command allows the CLI admin to list the source and destination
storage locations. This is useful to determine the locations to move or unload
media command. If the --type option is specified, only locations of the specified
type is listed.
Below is a sample output of this CLI with a VTL name and destination location
specified:
syscli --list vtlstorage --name VTL1 --loc dest
Output data:
ListofVTLstoragelocations:
Totalcount=4
[storagelocation=1]
locationtype=I/ESlot
index=0
driveserialnumber=N/A
barcode=N/A
writeprotect=disabled
access=N/A
used=N/A
[storagelocation=2]
locationtype=I/ESlot
VTL Configuration CLI Commands19
Quantum DXi-Series Command Line Interface (CLI) Guide
6-67081-05 Rev B
April 2012
This CLI allows the admin user to move media between virtual storage locations.
The media is moved from the specified source type and index location to the
specified type and index destination location. The location type and index can
be determined from the output of the --list vtlstorage command. The
--forceunload optional parameter refers only to virtual drive source location.
This CLI allows the admin user to unload media from virtual drive or import/
export virtual storage location specified by the barcode or the type and index
location. There may be one or more barcode specified to unload multiple media.
The option --forceunload refers to a virtual drive source location.
20VTL Configuration CLI Commands
Quantum DXi-Series Command Line Interface (CLI) Guide
This CLI command provides a list of all existing NAS shares on the system and
their attributes. The list can be limited to the type of protocol if --proto is
specified. If --name is specified, only the attributes of that share are listed.
CLI command options:
• --list: Lists all NAS shares.
• *--namematch: If specified, only shares whose names match the specified
pattern are listed. The wild characters ^ and $ are supported as follows:
• ^xxx – matching pattern xxx at the start of names
• xxx$ – matching pattern xxx at the end of names
Remember to escape $ with a backslash because it is special to the shell. For
example, to list all shares ending with test in the names, type the following:
syscli --list sharename --namematch test\$
Note: Option marked with (*) means not supported in Web Services.
This CLI lists all share names for both CIFS and NFS. If --proto is specified, only
names of shares associated with the specified protocol will be listed.
Getting the Total NAS
Share Count
CLI command options:
• --proto: If specified, limits the listing to the specified protocol.
• --namematch: If specified, only shares whose names match the specified
pattern are listed.
The wild characters ^ and $ are supported as follows:
• ^xxx — matching pattern xxx at the start of names
• xxx$ — matching pattern xxx at the end of names
Remember to escape $ with a backslash because it is special to the shell. For
example, to list all shares ending with test in the names, type the following
command: syscli --list sharename --namematch test\$
Alternately, you can list a single share with the following CLI command: