AMASS, DataMgr, EMASS, FileServ, and VolServ are either trademarks or registered
trademarks of ADIC, Advanced Digital Information Corporation. DAS is a trademark of
Grau, an ADIC subsidiary. All other product names and identifications are trademarks or
registered trademarks of their respective manufacturers.
Use, duplication, or disclosure of either the software or documentation is subject to
restrictions set forth by the U.S. Government in FAR 52.227-19(c)(2) and subparagraph
(c)(1)(ii) of the Rights in Technical Data and Computer Software clause at DFARS 52.2277013 and/or in similar or following clauses in the FAR, DoD, or NASA FAR Supplement.
Technical Assistance
ADIC Technical Assistance Center:
•In the USA and Canada, call 1-800-827-3822.
•Outside the USA and Canada, call 303-874-0188 or toll-free 00800-9999-3822.
•Send e-mail to: support@adic.com.
Documentation
Although the material contained herein has been carefully reviewed, ADIC does not
warrant it to be free of errors or omissions. We reserve the right to make corrections,
updates, revisions, or changes to the information contained herein.
•Send e-mail to: techdocs@adic.com
READER COMMENT FORM
ADIC includes this Form in an effort to provide the best possible documentation to our
customers. Please take a few moments to mail or FAX your response to:
ADIC USA
Tel.: +1 303-705-3900
Fax: +1-303-792-2465
ATAC: 1-800-827-3822
http://www.adic.com
ADIC Europe
ZAC des Basses Auges
1, rue Alfred de Vigny
78112 Fourqueux, France
Tel.: +33.1.3087.5300
Fax: +33.1.3087.5301
Information was complete.AgreeDisagree
Information was easy to find.AgreeDisagree
Information was easy to follow.AgreeDisagree
Is there anything you especially like or dislike about the organization, presentation,
or writing in this manual?_______________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
Book TitleDocument Number
Customer NameTelephone
E-mail Address
Company Name
Address
City, State, Zip
This book alphabetically lists and describes the VolServ
commands.
This book is written for system administrators who uses the
command line to operate VolServ.
It assumes the administrator has a strong familiarity with:
•UNIX operating systems.
•Applications running in their site environment.
This book contains the following chapters:
Chapter 1: Introduction — Describes environment variables
and the command line structure.
Chapter 2:Command Reference — Alphabetical list of
VolServ commands.
6-01005-01 Rev APrefaceP-3
Command Reference
Conventions
The conventions used throughout the VolServ technical books
are listed below:
ConventionExample
Screen text, file names, program names, and
commands are in Courier font.
The root prompt is shown as a number
symbol.
What you should type in is shown in Courier bold font.
Site-specific variables are in a Times italics
font.
A backward slash ( \ ) denotes the input is
continued onto the next line; the printed page
is just not wide enough to accommodate the
line.
Pressing <Return> after each command is
assumed.
Request to add a new volume:
Volume group will be “20”
Volume position will be “A123”.
# su root
vsarchiveqry
tar -xvf tapedevicename
#
remsh nodename -n dd if=/dev \
/tapedevicename/bs=20b | tar xvfb \
- 20
(You should type the entire command witho ut
the backward slash.)
A menu name with an arrow refers to a
sequence of menus.
P-4Preface6-01005-01 Rev A
Config-->MediaType-->Redefine
Command Reference
Preface
Books
The books described below are part of the technical
documentation set, and are shipped on CD along with the
VolServ software:
Overview
Provides an ov erview of VolServ . Co ntains a
glossary.
Installing VolServ
Describes server requirements, installation
instructions, troubleshooting procedures,
and configuration parameters.
Using the VolServ GUI
Describes how to perform system
administrative tasks using th e graphical user
interface.
API Guide
Provides a list of API functions.
Administrative Tasks
Describes how to perform system
administrative tasks using VolServ
commands.
Command Reference
Contains a list of VolServ commands
Error Messages
Provides corrective action f or system log
errors.
Quick Reference Card
Summarizes commands.
Online Books
The documentation CD contains VolServ book files and
requires the Adobe® Acrobat® Reader to view the
accompanying electronic documentation. The Reader allows
you to view and navigate the electronic documentation files yet
preserves the page design and graphics from the printed books.
6-01005-01 Rev APrefaceP-5
Command Reference
Related
Publications
Related PublicationsDescription
“Release Notes”For each version of VolServ, the “Release Notes” contain:
“Product Alerts”Informs customers of technical problems and solutions.
“Product Bulletins”Conveys technical information—not problems—to
The publications described in the table below are created and
distributed on an as-needed basis.
• Summary of enhancements.
• Describes:
- Fixed problems.
- Known problems.
- Installation and configuration issues.
•Lists:
- Operating system patches.
- System requirements.
customers.
Contact
Publications
Department
Secured Web
Site
To make corrections or to comment on VolServ publications,
please contact Software Technical Publications at our e-mail
address: techdocs@adic.com.
To receive access to the secured site on our home page containing technical product information (Release Notes, Product
Alerts, Product Bulletins, FAQs), visit http://partners.adic.com/
and follow the password request procedure. In return, ADIC
will send you instructions and a password.
P-6Preface6-01005-01 Rev A
Options Common to all Commands . . . . . . . . . .1-3
Seven options are av ailable on e very command that is supported
from the command line. These parameters are:
Introduction
ParameterDescription
-IIndicates command line options are to be re ad
from stdin. The -I option provides the
capability for the client to enter command
options on the command line, in a te xt file , or a
combination of both. When the -I option is
specified, command options are first read from
the command line. VolServ then reads any
options from stdin.
Example: catoptionfile > vsmount -I -u
-pdrvpool2 instructs VolServ to first read
the -u and -p options entered on the
command line and then to read the options
from stdin (the contents of optionfile). If
optionfile contains “-c class1”, the
command, as processed by VolServ, will look
like “vsmount -u -pdrvpool2-cclass1”
-hRequests help for the entered comm and. The
Help option returns the usage for the entered
command, a copyright notice, an d the version
number of the CLI software. The Help option
takes precedence over any other option
entered on a command. When the Hel p option
is specified, no command line processing is
performed. An exit code of 0 is returned to the
client when the Help option is specified.
-H hostnameHost name of t he VolServ server. The default
host name is the host name of the computer
where the CLI command is issued.
6-01005-01 Rev AIntroduction1-3
Command Reference
ParameterDescription
Optional
Parameters
-P priority
Default value is
15.
-R retries
Default value is
3.
-T timeout
Default value is
120 seconds.
-V prognum
Default value is
300016.
The execution priority of the entered
command. Assignable priority values are
restricted to a range from 1 (highest) to 32
(lowest) inclusive .
Number of retries the CLI software attempts if
a time-out is returned by the API software.
Amount of time (in seconds) the API software
waits for status from VolServ before returning
a time-out to the CLI software. Total wait time
for a command is (retries plus 1) multiplied by
time-out value.
RPC program number for VolServ.
The following parameters are optional:
•-I (read from stdin).
•-h (help).
Both options needs to be specified only if the client is
requesting the functionality provided by the option.
Default Values
The remaining parameters have default values:
•-H (hostname).
•-P (priority).
•-R (retries).
1-4Introduction6-01005-01 Rev A
Command Reference
•-T (timeout).
•-V (prognum).
If the client does not specify one or more of these options on a
command, VolServ uses the appropriate default values specified
in the description of the previous options.
A client can specify values that override the default values
previously specified. To specify an override value, the client
must set an environment variable for each common option that
is to have an override default.
The environment variables and their associated common
options are:
ParameterEnvironment Variable*
-H hostnameVSCLI_HOST
Introduction
-P priorityVSCLI_PRIORITY
-R retriesVSCLI_RETRIES
-T timeoutVSCLI_TIMEOUT
-V prognumVSCLI_PROGNUM
The client runs the UNIX
environment variable.
setenv command to set an
ExampleThe following example sets the default for the -H ( hostname )
option to eiffel and overrides the VolServ default. The
default hostname is the host computer where the command is
issued.
When a client specifies one or more of the -H (hostname), the
-P (priority), the -R (retries), the -T (timeout), and the -V
(prognum) options on the command line, the values entered on
the command line supercedes the VolServ default values and
any user-specified default values for the appropriate options.
1-6Introduction6-01005-01 Rev A
Command Reference
Environment
Variables
The following environment variables provide the capability for
the client to specify default values for common options:
•VSCLI_HOST
•VSCLI_PRIORITY
•VSCLI_RETRIES
•VSCLI_TIMEOUT
•VSCLI_PROGNUM
The environment v ariable belowcontrols the number of lines per
page for report output:
•VSRPT_PAGE_LENGTH
The default page length is 66 lines.
If the default page length is not appropriate, a client can execute
the appropriate environment variable command to set the
VSRPT_PAGE_LENGTH environment variable to the desired
page length. If the VSRPT_PAGE_LENGTH environment v ariable
is set to 0, VolServ generates reports with no page breaks.
Introduction
VolServ uses the user-specified page length when generating
the following reports.
•Archive Query
•Connect Query
•Drive Query
•Intransit Query
•MediaClass Query
•Drive Pool Query
6-01005-01 Rev AIntroduction1-7
Command Reference
•Request Query
•Media Type Query
•Media Query
1-8Introduction6-01005-01 Rev A
Command Reference
Commandspecific
Options
A matrix that shows which commands support which
command-specific options is included in below
A discussion of how each of these options direct or modify the
processing of individual commands is included with the
command descriptions in this discussion.
Command-specific options are described in the following
outline.
ParameterDescriptionExample
-aSpecifies that all items meet
specified criteria that are to be
processed.
Used primarily on query
commands.
-a archivenameSpecifies the name of the
archive to be referenced by the
command.
Valid archive names may
contain up to 16 alphanumeric
characters, including spaces.
Leading and trailing spaces are
not permitted.
vsdriveqry-a
Instructs VolServ to return
information on all drives known to
the VolServ system.
vsimport … -a archive1 …
Instructs VolServ to import the
specified medium/media into the
archive1 archive.
Introduction
archivenameSpecifies the name of the
archive to be referenced by the
command.
Valid archive names may
contain up to 16 alphanumeric
characters, including spaces.
Leading and trailing spaces are
not permitted.
6-01005-01 Rev AIntroduction1-9
vsarchivevary archive1 …
Specifies that VolServ is to vary
the state of the archive1
archive.
Command Reference
ParameterDescriptionExample
-bIdentifies the batch assigned to
the medium/media being
imported.
-cIndicates that all MediaClass
names associated with the
specified archive are to be
reported.
-c currentmediaclassIdentifies the current
MediaClass name of the
medium/media to be
reclassified.
-c mediaclassIdentifies the target MediaClass
name of the medium/media
specified on the command.
vsimport … -bbatch1 …
Identifies batch1 as the batch
assigned to the medium/media
being imported. The batch
assigned to a medium is
maintained by the VolServ
system.
vsarchiveqry … -c …
Instructs VolServ to return all
MediaClass names associated
with the specified archive .
vsreclassify … -cMediaClassA …
Indicates to VolServ that the
medium/media specified on the
command are currently
associated with MediaClassA.
vsimport … -c MediaClassB …
Instructs VolServ to associate the
imported medium/media with
MediaClassB.
-dIndicates that all drives
associated with the specified
archive are to be reported.
vsarchiveqry … -d …
Instructs VolServ to return all
drive IDs associated with the
specified archive.
-d driveIDIdentifies the drive on which the
medium to be dismounted is
currently mounted.
vsdismount … -d1 …
Indicates to VolServ that the
medium specified to be
dismounted is currently mounted
on drive 1.
1-10Introduction6-01005-01 Rev A
ParameterDescriptionExample
Command Reference
driveID…Specifies a list of one or more
drives from which the drives to
satisfy the command are to be
selected.
The number of drives that can
be specified is restricted by the
CLI software. Currently, the
maximum allowed number is 64.
drivepoolSpecifies the name of the drive
pool being queried.
enterpriseIDSpecifies the identifier of the
enterprise connection being
queried.
An enterprise ID must be
numeric.
-fIdentifies the manufacturer of
the medium/media being
imported.
vsunlock13 …
Instructs V olServ to unlock drive 1
and drive 3.
Introduction
vspoolqry drivepool3
Instructs VolServ to return
information on drive pool3.
vsconnectqry4
Instructs VolServ to return
information on the 4 connection.
vsimport … -fmanufac1 …
Identifies manufac1 as the
manufacturer of the
medium/media being imported.
The manufacturer of a medium is
maintained by the VolServ
system.
-iIndicates, if an inter-archive
move is required, that the
command is to be processed
only if both the source and
destination archives are
attended.
6-01005-01 Rev AIntroduction1-11
vsmount … -i …
Instructs VolServ to perform the
mount if an inter-archive move is
required only if both the source
and destination archives are
attended.
Command Reference
ParameterDescriptionExample
-l lockIDSpecifies the lock ID assigned
to the drive specified in the
command.
-mIndicates that all media
associated with the specified
archive are to be reported.
mediaclassSpecifies the name of the
MediaClass group being
queried.
mediaIDSpecifies the medium to be
processed by the command.
A valid medium identifier may
contain up to 16 alphanumeric
characters, including spaces.
Leading and trailing spaces are
not permitted.
mediaID… Specifies a list of one or more
media to be processed by the
command.
A valid medium identifier may
contain up to 16 alphanumeric
characters, including spaces.
Leading and trailing spaces are
not permitted.
vsdismount … -l9 …
Indicates that the drive specified
in the command is reserved for
exclusive use and has been
assigned the lock ID 9.
vsarchiveqry … -m …
Instructs VolServ to return all
media IDs associated with the
specified archive.
vsmedclassqrymedclass6…
Instructs VolServ to return
information on medclass6.vsqrymountmedium7
Requests a list of the drives
available to satisfy a mount
request for medium7.
vsexport medium8 medium 9
medium11 medium3 …
Instructs VolServ to export
medium8, medium9, medium11,
and medium3.
The number of media that can
be specified is restricted by the
CLI software. Currently, the
maximum allowed number is 64.
1-12Introduction6-01005-01 Rev A
ParameterDescriptionExample
Command Reference
mediatype… Specifies a list of one or more
mediatypes to be processed by
the command.
Valid MediaType names can
contain up to 16 alphanumeric
characters, including spaces.
Leading and trailing spaces are
not permitted.
The number of media types th at
can be specified is restricted by
the CLI software. Currently, the
maximum allowed number is 32.
-n newmediaclassIdentifies the target MediaClass
group of the medium/media
specified on the command.
-p drivepoolSpecifies the name of a drive
pool from which a drive can be
selected to satisfy the
command.
Valid drive pool names may
contain up to 16 alphanumeric
characters, including spaces.
Leading and trailing spaces are
not permitted.
vsmedtypeqrymedtypeZ
Instructs VolServ to return
information on medtypeZ.
Introduction
MedClassX …
Instructs VolServ to associate the
specified medium/media with
MedClassX.
vsmount … -pdrivepool1 …
Instructs VolServ to mount the
specified medium/media on
drives selected from drive pool
drivepool1.
-q quantitySpecifies the number of drives
to be locked.
vslock … -q3 …
Instructs VolServ to lock three
drives.
6-01005-01 Rev AIntroduction1-13
Command Reference
ParameterDescriptionExample
requestIDSpecifies VolServ-assigned ID
of the request being queried.
A valid request ID must be
specified in either the
ydddnnnnn format or the
yy:ddd:nnnnn format where y
and yy represent the last
one/two digits of the year, ddd
represents the Julian day, and
nnnnn is a one-up number.
-s compstateSpecifies the target state of the
item being varied.
-tIndicates that all media types
associated with the specified
archive are to be reported.
-t commentProvides a comment to be
associated with each media
specified on the command.
V olServ maintains the comment,
if any, associated with each
medium. This comment is
provided on the Eject list (a GUI
display) from the arch ive
console associated with the
archive containing the media.
vsrequestqry 93:131:14796…
Requests status on request
93:131:14796 from VolServ.
vsdrivevary…-son-line …
Instructs VolServ to vary the
specified drive to the on-line
state.
vsarchiveqry … -t …
Instructs VolServ to return all
media types associated with the
specified archive.
vscheckout … -t“Sending
tocustomer xyz”
Provides the comment “Sending
to customer xyz” to be
associated with each medium
specified in the command.
-uIndicates the command is to be
processed if an inter-archive
move is required whether the
source and destination archives
are attended or unattended.
vsmount … -u …
Instructs VolServ to perform the
mount if an inter-archive move is
required whether the losing and
gaining archives are attended or
unattended.
1-14Introduction6-01005-01 Rev A
ParameterDescriptionExample
Command Reference
-vIndicates that verbose output is
requested.
•If -v option is specified on a
command that specifies a list
of items, status is returned on
every item specified in the list,
regardless of the success or
failure of the command
processing on each item.
•If -v option is specified on a
query command, all
applicable information is
returned to the client.
•If -v is not specified on a
command that specifies a list
of items, status is returned on
only those items that were not
successfully processed.
•If -v option is not specified on
a query command, only the
specifically requested
information is returned to the
client.
vscleareject … -v …
Instructs VolServ to return status
on every medium specified in the
command, regardless of whether
the medium is successfully or
unsuccessfully processed. If the
-v option is not specified on the
vscleareject command, status is
returned on only those media that
are not successfully removed
from the Eject list.
vsmedclassqry … -v
Instructs VolServ to return
detailed information for all media
associated with each media class
reported. If the -v option was not
specified on the vsmedclassqry
command, only the IDs of the
media associated with the
reported MediaClass group are
returned to the client.
Introduction
-wIndicates VolServ waits until the
command processing
completes before returning
status to the client.
vsmove … -w …
Instructs VolServ to return status
only after move processing
completes.
If the move requires an
inter-archive move, VolServ
waits until the move completes,
whether the source and
destination archives are
attended or unattended. When
the -w option is not specified,
final status is returned as soon
as move processing begins.
6-01005-01 Rev AIntroduction1-15
Command Reference
ParameterDescriptionExample
-xSpecifies a list of one or more
drives to exclude from a
specified drive pool when
selecting drives to satisfy a
command.
The -x option is valid only when
the -pdrivepool option is
specified.
Tables
The names of the commands, as entered from the command
line, are listed alphabetically in the first column of the table.
The command-specific options are listed alphabetically across
the top of the table.
•When a command does not support an option, the cell that
represents the intersection of the command and the
command-specific option is shaded. For example, the
vsdismount command does not support the -a
archivename option.
•When a command does support an option, the cell that
represents the intersection of the command and the option
contains an X. For example, the vsdismount command
does support the -d driveID, the -l lockID option, and the mediaID option.
All files necessary for command line interface to VolServ are
contained in the volserv/vscli directory by default.
However, the installer may choose a different directory during
execution of the installation script. The vscli subdirectory is
always appended to the directory specified by the installer.
Refer to Installing VolServ for more information.
The system administrator or clients may use the commands to
interface to VolServ. The commands are interfaced to VolServ
via the API. For more information, refer to the Command
Reference and API Guide.
The default command directory structure is shown in the
following figure and described in the table below.
/volserv/vscli
/bin/man
/util
DirectoryContents
binContains the CLI executables that are invoked
from the command line by the system
administrator and the system operato r.
Starts or ends VolServ and activates the system log display.
volserv -s
volserv -t | -q
volserv [-y]
ParametersDescription
-sStarts VolServ in the single user mode. Only
commands run with
interface commands are refused.
-tTerminates the VolServ operations. VolServ
terminates gracefully. Outstanding commands are
cancelled and any commands awaiting status are
allowed to complete (within a certain time pe riod).
The termination of VolServ prompts the user to
continue the software termination.
•If the -y option is specified, the prompt is
automatically answered as “yes” and the
software is terminated automatically.
NOTE: If a VolServ request is submit te d to the
system duringVolServ system termination,
VolServ issues a message which states that the
system is unavailable.
vswin are run. Client
Commands
-qQuits the VolServ operations. The user will be
prompted to verify if the software should really be
shutdown if the -y option is not specified..
-yAutomatically answers the command prompt with
a “yes.”
6-01005-01 Rev ACommand Reference2-3
Command Reference
Return Codes
Examples
•0 - Command completed successfully - VolServ started or
completed normally.
•1 - Command did not complete successfully - VolServ did
not start or complete as expected.
Step 1.Successful VolServ system start-up. Requests
VolServ to start.
volserv
Step 2.Output returned:
VolServ Version x.0.0 for SunOS (x.x)
-- Copyright (c) 1992-1999 ADIC.
Initiating VolServ start up
Setup environment variables ok
Starting up process server
Process server started ok
Starting up VolServ server processes
… Done
… Done
Server processes started ok
Starting up VolServ system processes
… Done
System processes started ok
VolServ start up completed
2-4Command Reference6-01005-01 Rev A
Notes
Command Reference
Note
The environment variables VS_DIR and II_SYSTEM must be
set before executing VolServ.
II_SYSTEM must be in the path.
See Also
•vswin (l)
Commands
6-01005-01 Rev ACommand Reference2-5
Command Reference
vsamlconfig
Starts the ADIC-GRAU AML (Automated Media Library)
configuration script.
The following information needs to be known before running
the command:
•Archive name.
•Attended Mode or Unattended Mode.
•Console location.
•AMU host name.
•AMU port number.
Parameters
vsamlconfig
ExampleConfigure an AML.
Step 1.vsamlconfig
Step 2.AML CONFIG MENU
Step 3.[C]onfigure a New Archive
Step 4.[R]econfigure a existing Archive
Step 5.[D]elete an existing Archive
Step 6.[Q]uit
Step 7.Enter option (C/R/D/Q/) :Option
Step 8.Enter Archive Name: ArchiveName
Step 9.Is ArchiveName correct (Y/N [Y]):
• Valid library names may contain up to 16
alphanumeric characters, including spaces .
• Leading and trailing spaces are not
permitted.
-aSpecifies that all libraries are to be queried.
-cIndicates that detailed information on all
MediaClass groups associated with the
specified libraries are to be reported.
-dIndicates that all drives associated with the
specified libraries are to be reported.
-mIndicates that all media associated with the
specified libraries are to be reported.
-tIndicates that detailed information on all
media types associated with the specified
libraries are to be reported.
2-8Command Reference6-01005-01 Rev A
Command Reference
ParametersDescription
-vIndicates that all drives, all MediaClass
groups, all media, and all media types
associated with the specified libraries are to
be reported.
Specifying the -v option is equivalent to
specifying the -d, the -c, the -m, and the -t
options.
-ICommand options are first read from the
command line. VolServ then reads any
options contained in the stdin file.
-hRequests help for the entered command.
When the Help option is specified, no
command line processing is performed.
An exit code of 0 is r eturned to the client when
the Help option is specified.
-H hostnameHost name of the VolServ server. The default
host name is the host name of the computer
where the CLI command is run.
Commands
-P priority
Default value is
15.
-R retries
Default value is
3.
-T timeout
Default value is
120 seconds.
The execution priority of the entered
command. Assignable priority values are
restricted to a range from 1 (highest) to 32
(lowest) inclusive .
The number of retries the CLI software
attempts if a time-out is returned by the API
software.
Amount of time (in seconds) the API software
waits for status from VolServ before returning
a time-out to the CLI software. Total wait time
for a command is (retries plus 1) multiplied by
time-out value.
-V prognum
RPC program number for VolServ.
Default value is
300016.
6-01005-01 Rev ACommand Reference2-9
Command Reference
Return Codes
Examples
•0 - The vsarchiveqry command is successfully
processed.
•-1 - An error is detected by either the CLI software or the
API software.
•>0 - An error is detected by VolServ. The returned exit code
corresponds to the error code given by VolServ.
Step 1.Successful library query . Requests VolServ to return
the MediaClass groups and the media types
associated with the shelf1 library.
----------------------------------------------Archive Type:DataShelf
Current State:online
Archive Mode:Attended
Console Display Location:columbia:0
Fill Mode:None
Configure State:Not Being
Configured
MediaClass:MC-D2M
MediaType:D2M
Class Capacity %:50%
Class Capacity:40
Current Fill Level:2
2-10Command Reference6-01005-01 Rev A
Command Reference
Action:None
MediaType:D2M
Archive Capacity:40
Current Fill Level:2
Assigned Locations:2
Auto Checkin:off
Auto Import:off
Action:None
Step 1.Successful library query . Requests VolServ to return
the drives, the media, the MediaClass groups, and
the media types associated with the stage1 library.
----------------------------------------------Archive Type:Stage
Current State:online
Archive Mode:Attended
Console Display Location:columbia:0
Fill Mode:None
Configure State:Not Being
Configured
Commands
6-01005-01 Rev ACommand Reference2-11
Command Reference
Drive ID(s):12
Media ID(s):med001med002
med003
med004
MediaClass:MC-3480
MediaType:3480
Class Capacity %:50%
Class Capacity:100
Current Fill Level:4
Action:None
MediaType:3480
Archive Capacity:100
Current Fill Level:4
Assigned Locations:4
Auto Checkin:off
Auto Import:off
Action:None
Step 1.Unsuccessful library query. Requests VolServ to
return the drives associated with the
BadArchiveName library.
vsarchiveqry BadArchiveName -d
Step 2.Output returned:
Archive query was unsuccessful
Error VOL008: item not found
Notes
Note
The vsarchiveqry command does not trigger unsolicited
status messages from VolServ.
2-12Command Reference6-01005-01 Rev A
Command Reference
A pending or executing vsarchiveqry request is cancelled
with the VolServ cancel command. The VolServ cancel
command is run from the command line by sending a SIGQUIT
signal (control-\). The request is also aborted by sending the
SIGINT signal (control-c).
See Also
•vsarchivevary
Commands
6-01005-01 Rev ACommand Reference2-13
Command Reference
vsarchivevary
Parameters
Parameters
Varies the state of a library.
The name of the library and the target state (online, offline, or
diagnostic) must be specified. The return code presented to the
client indicates the success or failure of the command.
-s stateSpecifies the target state of the specified
drives. Valid dr ive states are
• online (on)
• offline (of)
• diagnostic (d)
archivenameIdentifies the library to be varied.
• Valid library names may contain up to 16
alphanumeric characters, including spaces .
• Leading and trailing spaces are not
permitted.
-ICommand options are first read from the
command line. VolServ then reads any
options contained in the stdin file.
2-14Command Reference6-01005-01 Rev A
Command Reference
ParametersDescription
-hRequests help for the entered command.
When the Help option is specified, no
command line processing is performed.
An exit code of 0 is r eturned to the client when
the Help option is specified.
-H hostnameHost name of the VolServ server. The default
host name is the host name of the computer
where the CLI command is run.
-P priority
Default value is
15.
-R retries
Default value is
3.
-T timeout
Default value is
120 seconds.
-V prognum
Default value is
300016.
The execution priority of the entered
command. Assignable priority values are
restricted to a range from 1 (highest) to 32
(lowest) inclusive .
The number of retries the CLI software
attempts if a time-out is returned by the API
software.
Amount of time (in seconds) the API software
waits for status from VolServ before returning
a time-out to the CLI software. Total wait time
for a command is (retries plus 1) multiplied by
time-out value.
RPC program number for VolServ.
Commands
6-01005-01 Rev ACommand Reference2-15
Command Reference
Return Codes
Examples
•0 - The vsarchivevary command is successfully
processed.
•-1 - An error is detected by either the CLI software or the
API software.
•>0 - An error is detected by VolServ. The returned exit code
corresponds to the error code given by VolServ.
Step 1.Successful archive vary. Requests VolServ to vary
the shelf1 archive to the diagnostic state.
vsarchivevary shelf1 -s diagnostic
Step 2.Output returned:
Vary of archive [shelf1] to state [diagnostic]
was successful
Step 1.Unsuccessful archive v ary . Requests VolServ to vary
the BadArchiveName archive to the on-line
state.
vsarchivevary BadArchiveName -s
online
Step 2.Output returned:
Vary of archive [BadArchiveName] to state
[on-line] was unsuccessful
Error VOL013: invalid archive
Notes
VolServ rejects all incoming requests that could physically
command an offline or diagnostic library (for example: Mount,
Dismount, and Move).
2-16Command Reference6-01005-01 Rev A
Command Reference
VolServ processes commands that interact strictly with the
database (for example: Query Mount, Create Drive Pool, and
Create Archive Media Class), regardless of the state of the
associated archive.
All components associated with an offline or diagnostic library,
such as media, drives, and physical hardware, are unavailable.
The Archive Vary command does not trigger unsolicited status
messages from VolServ.
A pending vsarchivevary request is cancelled with the
VolServ cancel command. The VolServ cancel command is run
from the command line by sending a SIGQUIT signal
(control-\). The request also is aborted by sending the SIGINT
signal (control-c).
Commands
See Also
•vsarchiveqry
•vsdrivevary
6-01005-01 Rev ACommand Reference2-17
Command Reference
vsaudit
Performs library inventory verification.
•If the specified library is robotically controlled, the robot
scans each physical bin location and verifies that the
database is consistent with the actual location of media. Any
noted inconsistencies are returned to the client, logged in a
system log file, and VolServ initiates corrective action,
based on the circumstances of the discrepancy.
•However, if the specified library is a manually controlled,
the library operator is directed to generate the audit report.
The operator then directs the report to be printed or to verify
the information online. Either way, the operator performs
the inventory and corrects any reported discrepancies.
Discrepancies are resolved by issuing appropriate media
management commands (for example, Eject) to relocate
media to the appropriate locations. Audits of manual
libraries do not return a discrepancy list.
Although audit requests from the command line are for full
library audits only, subset audits can be performed from the
GUI.
Tip
Full archive audits are lengthy and should be requested with
discretion.
archivenameSpecifies the name of the archive t o audit.
• Valid archive names may contain up to 16
alphanumeric characters, including spaces .
• Leading and trailing spaces are not
permitted.
-ICommand options are first read from the
command line. VolServ then reads any
options contained in the stdin file.
-hRequests help for the entered command.
When the Help option is specified, no
command line processing is performed.
An exit code of 0 is r eturned to the client when
the Help option is specified.
-H hostnameHost name of the VolServ server. The default
host name is the host name of the computer
where the CLI command is run.
Commands
-P priority
Default value is
15.
-R retries
Default value is
3.
-T timeout
Default value is
120 seconds.
6-01005-01 Rev ACommand Reference2-19
The execution priority of the entered
command. Assignable priority values are
restricted to a range from 1 (highest) to 32
(lowest) inclusive .
The number of retries the CLI software
attempts if a time-out is returned by the API
software.
Amount of time (in seconds) the API software
waits for status from VolServ before returning
a time-out to the CLI software. Total wait time
for a command is (retries plus 1) multiplied by
time-out value.
Command Reference
ParametersDescription
Return Codes
Examples
-V prognum
Default value is
300016.
RPC program number for VolServ.
•0 - The vsaudit command is successfully processed.
•-1 - An error is detected by either the CLI software or the
API software.
•>0 - An error is detected by VolServ. The returned exit code
corresponds to the error code given by VolServ.
Step 1.Successful audit request. Requests VolServ to audit
----------------------------------------------no discrepancies found
Step 1.Unsuccessful audit request. Requests VolServ to
audit the BadArchiveName archive.
vsaudit BadArchiveName
2-20Command Reference6-01005-01 Rev A
Step 2.Output returned:
Audit of archive [BadArchiveName] was
unsuccessful
Error VOL013: invalid archive
Command Reference
Notes
With the exceptions of the manual libraries, a pending or
executing vsaudit request is cancelled with the VolServ
cancel command. The VolServ cancel command is run from the
command line by sending a SIGQUIT signal (control-\). The
request also is aborted by sending the SIGINT signal
(control-c).
Note
A pending or executing vsaudit request is reprioritized
using the VolServ reprioritize command. The reprioritize
command is not available from the command line, but is
available to the client through either the API or the RPC
interface.
A pending or executing Storage Technology ACS product
family library audit requires a Cassette Autoloader Port (CAP).
If the CAP is busy, the vsaudit command can be queued. This
results in intermediate status that indicates the
vsaudit
command is waiting for a busy CAP to be freed.
In an ADIC/GRAU DataTo wer or Storage Technology ACS
product family database, VolServ does not actually track media
location to the bin level, but only down to the Manipulator Unit
(MU) level. However, the logic and VolServ responses are
similar to the bin tracking performed in the DataLibrary
software with no internal database.
Commands
The
vsaudit command does not trigger unsolicited status
messages from VolServ.
6-01005-01 Rev ACommand Reference2-21
Command Reference
The total length of time that VolServ waits for a command
status, in synchronous mode, from VolServ is
(VSID_RETRY_LIMIT plus 1) multiplied by
VSID_TIMEOUT_VALUE. Because of the time required for
robotic audits, the timeout value or retries may need to be
increased from the default values.
See Also
None
2-22Command Reference6-01005-01 Rev A
Command Reference
vscheckin
Parameters
Parameters
Logically checks media into the VolServ system that has been
previously checked out of the VolServ system.
Checkin is a logical operation. After media is logically checked
in to the VolServ system, the media is physically entered into a
library before becoming available for client use (mounting,…).
Media is physically entered into the VolServ system via the
“Enter” functionality available from the appropriate library’s
console display. The Enter functionality is not available from
the command line.
mediaid… Specifies a list of one through 64 media to be
checked in.
• A valid media identifier may contain up to
16 alphanumeric characters, including
spaces.
• Leading and trailing spaces are not
permitted.
6-01005-01 Rev ACommand Reference2-23
Command Reference
ParameterDescrition
-a archivenameSpecifies the name of the destination library
for the media to be entered into after they are
checked in.
• Valid library names may contain up to 16
alphanumeric characters, including spaces .
• Leading and trailing spaces are not
permitted.
-vIndicates that verbose output is needed.
Status is returned on every media specified in
the
vscheckout command.
NOTE: If
-v is not specified, status is returned
on only those media that were not
successfully checked out.
-ICommand options are first read from the
command line. VolServ then reads any
options contained in the stdin file.
-hRequests help for the entered command.
When the Help option is specified, no
command line processing is performed.
An exit code of 0 is r eturned to the client when
the Help option is specified.
-H hostnameHost name of the VolServ server. The default
host name is the host name of the computer
where the CLI command is run.
-P priority
Default value is
15.
-R retries
Default value is
The execution priority of the entered
command. Assignable priority values are
restricted to a range from 1 (highest) to 32
(lowest) inclusive .
Number of retries the CLI software attempts if
a time-out is returned by the API software.
3.
2-24Command Reference6-01005-01 Rev A
ParameterDescrition
Command Reference
Return Codes
Examples
-T timeout
Default value is
120 seconds.
-V prognum
Default value is
300016.
Amount of time (in seconds) the API software
waits for status from VolServ before returning
a time-out to the CLI software. Total wait time
for a command is (retries plus 1) multiplied by
time-out value.
RPC program number for VolServ.
•0 - The vscheckin command is successfully processed.
•-1 - An error is detected by either the CLI software or the
API software.
•>0 - An error is detected by VolServ. The returned exit code
corresponds to the error code given by VolServ.
Step 1.Successful Checkin request with verbose option
specified. Requests VolServ to check MED012, MED014, and MED023 into the library from
which they were checked out and to return status on
each media.
Commands
vscheckin MED012 MED014 MED023 -v
Step 2.Output returned:
Check in 3 of 3 media was successful
Media [MED012]no error
Media [MED014]no error
Media [MED023]no error
6-01005-01 Rev ACommand Reference2-25
Command Reference
Step 1.Successful Checkin request with verbose option not
specified. Requests VolServ to check MED013 into
the shelf2 library and to return status on media
only if processing for that media failed.
vscheckin MED013 -a shelf2
Step 2.Output returned:
Check in 1 of 1 media was successful
Step 1.Errors with verbose option specified. Requests
VolServ to check MED011, MED014, and
MED021 into the library from which they were
checked out and to return status on every specified
media.
vscheckin MED011 MED014 MED021 -v
Step 2.Output returned:
Check in 1 of 3 media was successful
Error VOL024: error in the list
Media [MED011]invalid action
or location state
for operation
Media [MED014]no error
Media [MED021]item not found
2-26Command Reference6-01005-01 Rev A
Command Reference
Step 1.Errors with verbose option not specified. Requests
VolServ to check MED001, MED002, and
MED093 into the stage1 library and to return
status on media only if processing for that media
failed:
vscheckin MED001 MED002 MED093 -a
stage1
Step 2.Output returned:
Check in 1 of 3 media was successful
Error VOL024: error in the list
Media [MED001]archive not associated with
media class
Media [MED093]item not found
Commands
Notes
Media checked out of one library can be checked in to another
library, as long as the receiving library is configured to support
the media’ s MediaClass group and the receiving library is not at
capacity for the media’s media type.
Media checked out from more than one library can be checked
in as a single group into a single new library (assuming
necessary library media class associations exist).
Media that are checked out from more than one library and are
checked in as a single group without a target library specified
on the
vschechin command are returned to their respective
check-out libraries.
Failure of the
vscheckin request for one or more media in a
list does not fail the request for all media in the list.
vscheckin command triggers unsolicited status messages
The
from VolServ to the client software.
6-01005-01 Rev ACommand Reference2-27
Command Reference
A pending or executing vscheckin request is cancelled with
the VolServ cancel command. The VolServ cancel command is
run from the command line by sending a SIGQUIT signal
(control-\). The request also is aborted by sending the SIGINT
signal (control-c).
See Also
•vscheckout
2-28Command Reference6-01005-01 Rev A
Command Reference
vscheckout
Parameters
Checks media out of the VolServ system.
Media that has been checked out is still known by VolServ, but
is unavailable for client allocation.
Upon receipt of a vscheckout request, VolServ marks the
specified media for checkout. If the specified media is
contained in libraries, VolServ adds the media to the Eject list of
the containing library. An operator selects the “Eject”
functionality from the appropriate librarie’s console display to
physically remove the checked-out media from the containing
library.
mediaid… Specifies a list of one through 64 media to be
checked out of the VolServ system.
• A valid media identifier may contain up to
16 alphanumeric characters, including
spaces.
• Leading and trailing spaces are not
permitted.
6-01005-01 Rev ACommand Reference2-29
Command Reference
ParameterDescription
-t commentProvide a comment to be associated with
each checked-out media. This comment is
provided on the Eject list (a GUI display) from
the library console associated with the library
containing the media.
-vIndicates that verbose output is needed.
Status is returned on every media specified in
the
vscheckout command.
NOTE: If
-v is not specified, status is returned
on only those media that were not
successfully checked out.
-ICommand options are first read from the
command line. VolServ then reads any
options contained in the stdin file.
-hRequests help for the entered command.
When the Help option is specified, no
command line processing is performed.
An exit code of 0 is r eturned to the client when
the Help option is specified.
-H hostnameHost name of the VolServ server. The default
host name is the host name of the computer
where the CLI command is run.
-P priority
Default value is
15.
-R retries
Default value is
The execution priority of the entered
command. Assignable priority values are
restricted to a range from 1 (highest) to 32
(lowest) inclusive .
Number of retries the CLI software attempts if
a time-out is returned by the API software.
3.
2-30Command Reference6-01005-01 Rev A
ParameterDescription
Command Reference
Return Codes
Examples
-T timeout
Default value is
120 seconds.
-V prognum
Default value is
300016.
Amount of time (in seconds) the API software
waits for status from VolServ before returning
a time-out to the CLI software. Total wait time
for a command is (retries plus 1) multiplied by
time-out value.
RPC program number for VolServ.
•0 - The vscheckout command is successfully processed.
•-1 - An error is detected by either the CLI software or the
API software.
•>0 - An error is detected by VolServ. The returned exit code
corresponds to the error code given by VolServ.
Step 1.Successful Checkout request with verbose option
specified. Requests VolServ to check
MED003,MED004,and MED005 out of the
VolServ system and to return status on every
specified media.
Commands
vscheckout MED003 MED004 MED005 -t
“Transfer to Library“ -v
Step 2.Output returned:
Check out 3 of 3 media was successful
Media [MED003]no error
Media [MED004]no error
Media [MED005]no error
6-01005-01 Rev ACommand Reference2-31
Command Reference
Step 1.Successful Checkout request with verbose option
not specified. Requests VolServ to check MED003,
MED004, MED005, MED006, MED007, and
MED008 out of the VolServ system and to return
status on media only if processing for that media
failed.
Step 1.Errors with verbose option specified. Requests
VolServ to check MED010, MED011, MED012,
and MED13 out of the VolServ system and to return
status on every specified media.
vscheckout MED010 MED011 MED012
MEDa13 -v
Step 2.Output returned:
Check out 2 of 4 media was successful
Error VOL024: error in the list
Media [MED010]invalid action or location
state for operation
Media [MED011]no error
Media [MED012]no error
Media [MED013]item not found
2-32Command Reference6-01005-01 Rev A
Command Reference
Step 1.Errors with verbose option not specified. Requests
VolServ to check MED010, MED011, MED012, and MEDa13 out of the VolServ system and to
return status on media only if processing for that
media failed:
vscheckout MED010 MED011 MED012
MEDa13
Step 2.Output returned:
Check out 2 of 4 media was successful
Error VOL024: error in the list
Media [MED010]invalid action or location
state for operation
Media [MED013]item not found
Commands
Notes
Failure of the vscheckout request for one or more media in a
list does not fail the request for all media in the list.
A currently allocated media is checked out of the VolServ
system. Attempts to physically eject an allocated media fail
until the media is no longer in use.
Media marked for checkout is unmarked (removed from the
Eject list) by the Clear Eject command. An operator removes
media from the Eject list by performing an Eject Fail operation
from the appropriate library’s console display. The Eject Fail
functionality is not available from the command line.
The Clear Eject command is available to clients, whereas, Fail
Eject is an operator-only command.
vscheckout command triggers unsolicited status
The
messages from VolServ.
6-01005-01 Rev ACommand Reference2-33
Command Reference
A pending or executing vscheckout request is cancelled with
the VolServ cancel command. The VolServ cancel command is
run from the command line by sending a SIGQUIT signal
(control-\). The request is aborted by sending the SIGINT signal
(control-c).
See Also
•vscheckin, vscleareject
2-34Command Reference6-01005-01 Rev A
Command Reference
vscleareject
Parameters
Removes the specified media from the library’s Eject list.
Ejects can be generated during processing of the VolServ
vscheckout vsexport, vsmount, and vsmove commands.
Ejects can also be generated during automigration.
The Clear Eject command essentially undoes the completion of
these commands. Media is removed from the Eject list and
returned to the available state. F or example, if a client issues an
export command for a specific media, the specified media is
scheduled for removal by adding the media to the Eject list for
the library associated with the media. If the client decides the
media should not be removed from its associated library, the
client issues the Clear Eject command, and VolServ removes the
media from the Eject list, thus voiding the Export request.
• A valid media identifier may contain up to
16 alphanumeric characters, including
spaces.
• Leading and trailing spaces are not
permitted.
-vIndicates that verbose output is needed.
Status is returned on every media specified in
the
vscheckout command.
NOTE: If
-v is not specified, status is returned
on only those media that were not
successfully checked out.
-ICommand options are first read from the
command line. VolServ then reads any
options contained in the stdin file.
-hRequests help for the entered command.
When the Help option is specified, no
command line processing is performed.
An exit code of 0 is r eturned to the client when
the Help option is specified.
-H hostnameHost name of the VolServ server. The default
host name is the host name of the computer
where the CLI command is run.
-P priority
Default value is
15.
-R retries
Default value is
The execution priority of the entered
command. Assignable priority values are
restricted to a range from 1 (highest) to 32
(lowest) inclusive .
Number of retries the CLI software attempts if
a time-out is returned by the API software.
3.
2-36Command Reference6-01005-01 Rev A
ParamaeterDescription
Command Reference
Return Codes
Examples
-T timeout
Default value is
120 seconds.
-V prognum
Default value is
300016.
Amount of time (in seconds) the API software
waits for status from VolServ before returning
a time-out to the CLI software. Total wait time
for a command is (retries plus 1) multiplied by
time-out value.
RPC program number for VolServ.
•0 - The vscleareject command is successfully
processed.
•-1 - An error is detected by either the CLI software or the
API software.
•>0 - An error is detected by VolServ. The returned exit code
corresponds to the error code given by VolServ.
Step 1.Successful with verbose option specified. Requests
VolServ to remove MED017, MED021, and
MED023 from the Eject list and to return status on
each specified media.
Commands
vscleareject MED017 MED021 MED023 -v
Step 2.Output returned:
Clear Eject 3 of 3 media was successful
Media [MED017]no error
Media [MED021]no error
Media [MED023]no error
6-01005-01 Rev ACommand Reference2-37
Command Reference
Step 1.Successful with verbose option not specified.
Requests VolServ to remove MED016, MED018, MED020, and MED021 from the Eject list and to
return status on media only if processing for that
media failed.
vscleareject MED016 MED018 MED020
MED021
Step 2.Output returned:
Clear Eject 4 of 4 media was
successful
Step 1.Errors with verbose option specified. Requests
VolServ to remove MED012, MED013, MED014,
and MED051 from the Eject list and to return status
on every specified media.
vscleareject MED012 MED013 MEd014
MED051 -v
Step 2.Output returned:
Clear Eject 2 of 4 media was successful
Error VOL024: error in the list
Media [MED012]no error
Media [MED013]item not marked for ejection
Media [MED014]no error
Media [MED051]item not found
2-38Command Reference6-01005-01 Rev A
Step 1.Errors with verbose option not specified. Requests
VolServ to remove MED012, MED013, MED014,
and MED051 from the Eject list and to return status
on media only if processing for that media failed.
vscleareject MED012 MED013 MED014
MED051
Step 2.Output returned:
Clear Eject 2 of 4 media was successful
Error VOL024: error in the list
Media [MED013]media not marked for ejection
Media [MED051]item not found
Notes
The vscleareject request fails for media if the media is
already selected for eject by the operator.
Command Reference
Commands
Failure of the vscleareject request for one or more media in
a list does not fail the request for all media in the list.
An operator also removes media from the Eject list by
performing an Eject Fail from the appropriate library’s console
display. The Eject Fail functionality is not available from the
command line.
The Clear Eject command triggers unsolicited status messages
from VolServ.
A pending Clear Eject request is cancelled with the VolServ
cancel command. The VolServ cancel command is run from the
command line by sending a SIGQUIT signal (control-\). The
request also is aborted by sending the SIGINT signal
(control-c).
6-01005-01 Rev ACommand Reference2-39
Command Reference
See Also
•vscheckout,
•vsexport,
•vsmount,
•vsmove
2-40Command Reference6-01005-01 Rev A
Command Reference
vsconnectqry
Parameters
Parameters
Queries for enterprise connection information.
This command provides a list of all client internet addresses that
are currently associated with the given enterprise identifier.
enterpriseidSpecifies the identifier of the enterprise
connection being queried. An enterprise
identifier must be numeric.
-ICommand options are first read from the
command line. VolServ then reads any
options contained in the stdin file.
-hRequests help for the entered command.
When the Help option is specified, no
command line processing is performed.
An exit code of 0 is r eturned to the client when
the Help option is specified.
-H hostnameHost name of the VolServ server. The default
host name is the host name of the computer
where the CLI command is run.
6-01005-01 Rev ACommand Reference2-41
Command Reference
ParameterDescription
Return Codes
-P priority
Default value is
15.
-R retries
Default value is
3.
-T timeout
Default value is
120 seconds.
-V prognum
Default value is
300016.
The execution priority of the entered
command. Assignable priority values are
restricted to a range from 1 (highest) to 32
(lowest) inclusive .
Number of retries the CLI software attempts if
a time-out is returned by the API software.
Amount of time (in seconds) the API software
waits for status from VolServ before returning
a time-out to the CLI software. Total wait time
for a command is (retries plus 1) multiplied by
time-out value.
RPC program number for VolServ.
•0 - The vsconnectqry command is successfully
processed.
•-1 - An error is detected by either the CLI software or the
API software.
•>0 - An error is detected by VolServ. The returned exit code
corresponds to the error code given by VolServ.
Examples
Step 1.Successful enterprise query. Requests VolServ to
return a list of the client internet addresses
associated with enterprise identifier 3.
Socket Family:10
Socket Port:1
Internet Address:300
Program Number:300016
Version Number:2
Procedure Number:1
Command Reference
Notes
²
•
Step 1.Unsuccessful enterprise query. Requests VolServ to
return a list of the client Internet addresses
associated with enterprise identifier 13:
vsconnectqry 13
Step 2.Output returned:
Connect query was unsuccessful
Error VOL008: item not found
The vsconnectqry command is run from either:
•Command line.
•Or, GUI.
Commands
6-01005-01 Rev ACommand Reference2-43
Command Reference
However, only from the GUI can “query all” be specified to list
all enterprises.
From the command line, only one enterprise can be specified
within a single command. This restriction prevents any single
client from listing the clients of other enterprises being serviced
by VolServ.
The vsconnectqry command does not trigger unsolicited
status messages from VolServ.
A pending vsconnectqry request is cancelled with the
VolServ cancel command. The VolServ cancel command is run
from the command line by sending a SIGQUIT signal
(control-\). The request also is aborted by sending the SIGINT
signal (control-c).
See Also
None
2-44Command Reference6-01005-01 Rev A
Command Reference
vsdismount
Parameters
Dismounts media from a drive.
•For automated libraries, VolServ checks to see that the
media is ejected from the drive by the storage subsystem. If
the media is not ejected from the drive, the vsdismount
request fails and VolServ returns a failure status to the
client. However, if the media is ejected from the drive,
VolServ tells the library robotics to move the media from
the drive pickup point to a bin within the library system. A
successful return code is returned to the client after the
media movement is completed.
•For manual libraries, a dismount notice is sent to the
appropriate library’s console display for action. An operator
dismounts the specified media and then notifies VolServ
that the media dismount is complete. VolServ returns a
successful return code to the client only after the operator
confirms the dismount is complete.
mediaidIdentifies th e media to be dismounted. A valid
media identifier may contain up to 16
alphanumeric characters, including spaces.
Leading and trailing spaces are not permitted.
-d driveidIdentifies the drive where the media is
mounted.
-l lockidSpecifies the lock identifier associated with
the drive if the drive is mounted with a lock
identifier.
-u usagetimeThe amount of time (in seconds) the driv e is in
use.
-e errorcountThe number of errors encountered while
interacting with the drive.
-ICommand options are first read from the
command line. VolServ then reads any
options contained in the stdin file.
-hRequests help for the entered command.
When the Help option is specified, no
command line processing is performed.
An exit code of 0 is r eturned to the client when
the Help option is specified.
-H hostnameHost name of the VolServ server. The default
host name is the host name of the computer
where the CLI command is run.
-P priority
Default value is
15.
2-46Command Reference6-01005-01 Rev A
The execution priority of the entered
command. Assignable priority values are
restricted to a range from 1 (highest) to 32
(lowest) inclusive .
ParameterDescription
Command Reference
Return Codes
-R retries
Default value is
3.
-T timeout
Default value is
120 seconds.
-V prognum
Default value is
300016.
Number of retries the CLI software attempts if
a time-out is returned by the API software.
Amount of time (in seconds) the API software
waits for status from VolServ before returning
a time-out to the CLI software. Total wait time
for a command is (retries plus 1) multiplied by
time-out value.
RPC program number for VolServ.
•0 - The vsdismount command is successfully processed.
•-1 - An error is detected by either the CLI software or the
API software.
•>0 - An error is detected by VolServ. The returned exit code
corresponds to the error code given by VolServ.
Commands
Examples
Step 1.Successful dismount. Requests VolServ to dismount
MED032 from drive 2.
vsdismount MED012 -d 2
Step 2.Output returned:
Dismount of Media [MED032] from Drive
[2] was successful
6-01005-01 Rev ACommand Reference2-47
Command Reference
Step 1.Unsuccessful dismount request. Requests VolServ to
dismount MED016 from drive 13.
vsdismount MED016 -d 13
Step 2.Output returned:
Dismount of Media [MED016] from Drive
[13] was unsuccessful
Error VOL081: drive not mounted
Step 1.Unsuccessful dismount request. Requests VolServ to
dismount MED016 from drive 9.
vsdismount MED016 -d 9
Step 2.Output returned:
Dismount of Media [MED016] from Drive
[9] was unsuccessful
Error VOL044: media not mounted
Notes
The vsdismount command triggers unsolicited status
messages from VolServ.
A pending vsdismount request is cancelled with the VolServ
cancel command. The VolServ cancel command is run from the
command line by sending a SIGQUIT signal (control-\). The
request also is aborted by sending the SIGINT signal
(control-c).
Specify a list of one through 64 drives to be
queried.
system are to be queried.
command line. VolServ then reads any
options contained in the stdin file.
Commands
-hRequests help for the entered command.
When the Help option is specified, no
command line processing is performed.
An exit code of 0 is r eturned to the client when
the Help option is specified.
-H hostnameHost name of the VolServ server. The default
host name is the host name of the computer
where the CLI command is run.
6-01005-01 Rev ACommand Reference2-49
Command Reference
ParameterDescription
Return Codes
-P priority
Default value is
15.
-R retries
Default value is
3.
-T timeout
Default value is
120 seconds.
-V prognum
Default value is
300016.
The execution priority of the entered
command. Assignable priority values are
restricted to a range from 1 (highest) to 32
(lowest) inclusive .
Number of retries the CLI software attempts if
a time-out is returned by the API software.
Amount of time (in seconds) the API software
waits for status from VolServ before returning
a time-out to the CLI software. Total wait time
for a command is (retries plus 1) multiplied by
time-out value.
RPC program number for VolServ.
•0 - The vsdriveqry command is successfully processed.
•-1 - An error is detected by either the CLI software or the
API software.
•>0 - An error is detected by VolServ. The returned exit code
corresponds to the error code given by VolServ.
Examples
Step 1.Successful drive query. Requests VolServ to return
information on every drive known to the VolServ
system.
----------------------------------------------Drive Type:Magnetic
Associated Archive:stage1
Current State:Online
Assignment:Free
Usage Count:0
Current Usage Time:0
Total Usage Time:0
Error Count:0
Mount State:Unmounted
Mounted Media ID:
Media Type(s) Supported:D2M
•
•
²
Command Reference
Commands
Drive ID:3
----------------------------------------------Drive Type:Magnetic
Associated Archive:shelf1
Current State:Online
Assignment:Free
Usage Count:1
Current Usage Time:0
Total Usage Time:0
Error Count:0
Mount State:Unmounted
Mounted Media ID:
Media Type(s) Supported:D2M
----------------------------------------------Drive Type:Magnetic
Associated Archive:shelf1
Current State:Online
Assignment:Free
Usage Count:0
Current Usage Time:0
Total Usage Time:0
Error Count:0
Mount State:Unmounted
Mounted Media ID:
Media Type(s) Supported:D2M
Step 1.Unsuccessful drive query. Requests VolServ to
return information on drive 35. (Drive 35 does not
exist.)
vsdriveqry 35
Step 2.Output returned:
Drive query was unsuccessful.
Error VOL008: item not found.
Notes
The vsdriveqry command does not trigger unsolicited status
messages from VolServ.
A pending vsdriveqry request is cancelled with the VolServ
cancel command. The VolServ cancel command is run from the
command line by sending a SIGQUIT signal (control-\). The
request also is aborted by sending the SIGINT signal
(control-c).
See Also
2-52Command Reference6-01005-01 Rev A
•vsdrivevary
Command Reference
vsdrivevary
Parameters
Changes the state of a drive.
A drive in the offline, unavailable, or diagnostic state is
excluded from VolServ’s drive selection algorithm.
Tip
A vsmount or vslock request for an offline, unavailable, or
diagnostic drive will fail.
On the ohter hand, varying a drive to the online state makes it
available for selection for vsmount or vslock requests.
Specifies one through 64 individual drives
whose state is to be varied.
• Valid drive pool names may contain up to
16 alphanumeric characters, including
spaces.
• Leading and trailing spaces are not
permitted.
Command Reference
ParameterDescription
-s stateSpecifies the target state of the specified
drives. Valid dr ive states are
• online (on)
• offline (of)
• diagnostic (d)
-vIndicates that verbose output is needed.
Status is returned on every media specified in
the
vscheckout command.
NOTE: If
-v is not specified, status is returned
on only those media that were not
successfully checked out.
-ICommand options are first read from the
command line. VolServ then reads any
options contained in the stdin file.
-hRequests help for the entered command.
When the Help option is specified, no
command line processing is performed.
An exit code of 0 is r eturned to the client when
the Help option is specified.
-H hostnameHost name of the VolServ server. The default
host name is the host name of the computer
where the CLI command is run.
-P priority
Default value is
15.
-R retries
Default value is
The execution priority of the entered
command. Assignable priority values are
restricted to a range from 1 (highest) to 32
(lowest) inclusive .
Number of retries the CLI software attempts if
a time-out is returned by the API software.
3.
2-54Command Reference6-01005-01 Rev A
ParameterDescription
Command Reference
Return Codes
Examples
-T timeout
Default value is
120 seconds.
-V prognum
Default value is
300016.
Amount of time (in seconds) the API software
waits for status from VolServ before returning
a time-out to the CLI software. Total wait time
for a command is (retries plus 1) multiplied by
time-out value.
RPC program number for VolServ.
•0 - The vsdrivevary command is successfully processed.
•-1 - An error is detected by either the CLI software or the
API software.
•>0 - An error is detected by VolServ. The returned exit code
corresponds to the error code given by VolServ.
Step 1.Successful drive vary with verbose option specified.
Requests VolServ to vary all drives in the
drvpoolusr drive pool to the off-line state
and to return status on every drive in
drvpoolusr.
Commands
vsdrivevary -p drvpoolusr -s off-line
-V
6-01005-01 Rev ACommand Reference2-55
Command Reference
Step 2.Output returned:
Vary 8 of 8 drives to state [off-line] was successful.
to vary every drive associated with the
BadPoolName drive pool to the diagnostic
state.
vsdrivevary -p BadPoolName -s
diagnostic
Step 2.Output returned:
Error VOL030: invalid drive pool
specified
6-01005-01 Rev ACommand Reference2-57
Command Reference
Notes
Mounted drives that have their state changed remain in-use.
Varying a drive has no impact on client data transfer operations
in progress and the client receives no automatic notif ication of a
drive state change.
Drives can be varied, regardless of whether or not they are
associated with a library.
Drives can be varied, regardless of whether or not they are
allocated; however, allocated drives that are not online cannot
be dismounted.
The unavailable state is assignable only by VolServ when a
higher level component in the library system is no longer
online. For example, varying a CLM offline causes the
associated drive to be viewed as unavailable.
The vsdrivevary command does not trigger unsolicited
status messages from VolServ.
A pending vsdrivevary request is cancelled with the VolServ
cancel command. The VolServ cancel command is run from the
command line by sending a SIGQUIT signal (control-\). The
request also is aborted by sending the SIGINT signal
(control-c).
See Also
2-58Command Reference6-01005-01 Rev A
•vsdriveqry
Command Reference
vsexport
Marks media and related media information for removal from
the VolServ system.
If the specified media is not associated with a libra ry, the media
is logically removed from the VolServ system. However, if the
specified media is associated with a library, the media is placed
on the Eject list of the appropriate library.
A client can also use the vsexport command to remove
information about media that have been checked out of the
library and is physically out of the library.
Upon receipt of an vsexport request, VolServ marks the
specified media for eject and returns a successful return code to
the client. The <Eject> button is highlighted on the operator’s
consoleto indicate that media need to be ejected from the
library.
To physically remove the media marked for export from the
library, an operator must select the Eject functionality from the
appropriate library’s console display. The Eject functionality is
not available from the command line.
Commands
After media, specified on a vsexport command, is physically
removed from the library system, the media is no longer
managed by VolServ, and all information related to exported
media is deleted from VolServ.
Specifies a list of one through 64 media to
export.
• A valid media identifier may contain up to
16 alphanumeric characters, including
spaces.
• Leading and trailing spaces are not
permitted.
-t commentProvide a text message to be displa y ed on the
library console for each media being ex ported.
This comment is provided on the Eject list (a
GUI display) from the library console
associated with the library containing the
media. The length of the comment is restricted
by the CLI software. Currently, the maximum
allowed length is 80.
-vIndicates that verbose output is needed.
Status is returned on every media specified in
the
vscheckout command.
NOTE: If
-v is not specified, status is returned
on only those media that were not
successfully checked out.
-ICommand options are first read from the
command line. VolServ then reads any
options contained in the stdin file.
-hRequests help for the entered command.
When the Help option is specified, no
command line processing is performed.
An exit code of 0 is r eturned to the client when
the Help option is specified.
-H hostnameHost name of the VolServ server. The default
host name is the host name of the computer
where the CLI command is run.
2-60Command Reference6-01005-01 Rev A
ParameterDescription
Command Reference
Return Codes
-P priority
Default value is
15.
-R retries
Default value is
3.
-T timeout
Default value is
120 seconds.
-V prognum
Default value is
300016.
The execution priority of the entered
command. Assignable priority values are
restricted to a range from 1 (highest) to 32
(lowest) inclusive .
Number of retries the CLI software attempts if
a time-out is returned by the API software.
Amount of time (in seconds) the API software
waits for status from VolServ before returning
a time-out to the CLI software. Total wait time
for a command is (retries plus 1) multiplied by
time-out value.
RPC program number for VolServ.
•0 - The vsexport command is successfully processed.
Commands
•-1 - An error is detected by either the CLI software or the
API software.
•>0 - An error is detected by VolServ. The returned exit code
corresponds to the error code given by VolServ.
6-01005-01 Rev ACommand Reference2-61
Command Reference
Examples
Step 1.Successful export request with verbose and
comment options specified. Requests to VolServ to
place media MED012, MED014, and MED016
on the Eject list with the comment, Media to be shipped off-site, and to return status on every
specified media.
vsexport MED012 MED014 MED016 -t
Media to be shipped off-site -v
Step 2.Output returned:
Export 3 of 3 media was successful
Media [MED012]no error
Media [MED014]no error
Media [MED016]no error
Step 1.Successful export request with comment option
specified and verbose option not specified.
Requests to VolServ to place media MED001,
MED002, MED003, MED012, MED014, and
MED016 on the Eject list with the comment, Media
to be shipped off-site, and to return status on media
only if processing for that media failed.
vsexport MED001 MED002 MED003 MED012
MED014 MED016 -t Media to be shipped
off-site
Step 2.Output returned:
Export 6 of 6 media was successful
Step 1.Errors with verbose and comment options specified
2-62Command Reference6-01005-01 Rev A
Requests to VolServ to place media MED007,
MED014, MED021, MED028, MED053, and
MED042 on the Eject list with the comment, Media
to be shipped off-site, and to return status on every
specified media.
vsexport MED007 MED014 MED021 MED028
MED053 MED042 -t Media to be shipped off-site -v
Step 2.Output returned:
Export 4 of 6 media was successful
Error VOL024: error in the list
Media [MED007]no error
Media [MED014]invalid action or location state
Media [MED021]no error
Media [MED028]no error
Media [MED053]item not found
Media [MED042]no error
Command Reference
Commands
for operation
Step 1.Errors with verbose option not specified and
comment option specified
Requests to VolServ to place media MED007,
MED014, MED021, MED028, MED053, and
MED042 on the Eject list with the comment, Media
to be shipped off-site, and to return status on media
only if processing on that media failed.
vsexport MED007 MED014 MED021 MED028
MED053 MED042 -t Media to be shipped off-site
6-01005-01 Rev ACommand Reference2-63
Command Reference
Step 2.Output returned:
Export 4 of 6 media was successful
Error VOL024: error in the list
Media [MED014]invalid action or location state
Media [MED053]item not found
for operation
Notes
See Also
The vsexport command cannot be cancelled. Media can be
unmarked for export via the Clear Eject request or if the
operator fails the eject.
Media that is marked for ejection from the library system
cannot be reallocated to satisfy a client request, except to satisfy
a query of the media. Any other request (except
vscleareject) received for that media fails.
An allocated media can be marked for export. Attempts to
physically eject an allocated media fail until the media is no
longer in-use.
The vsdrivevary command triggers unsolicited status
messages from VolServ to the client software.
•vscleareject, vsimport
2-64Command Reference6-01005-01 Rev A
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.