Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
a22abbc0
Commit
a22abbc0
authored
6 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
Corrected the command-line help and man page of cta-tape-acs-querydrive
parent
ae753145
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#32528
failed
2 years ago
Stage: build:srpm
Stage: build:rpm
Stage: sign
Stage: publish
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mediachanger/acs/AcsQueryDriveCmdLine.cpp
+27
-8
27 additions, 8 deletions
mediachanger/acs/AcsQueryDriveCmdLine.cpp
mediachanger/acs/cta-tape-acs-querydrive.1cta
+6
-3
6 additions, 3 deletions
mediachanger/acs/cta-tape-acs-querydrive.1cta
with
33 additions
and
11 deletions
mediachanger/acs/AcsQueryDriveCmdLine.cpp
+
27
−
8
View file @
a22abbc0
...
...
@@ -78,16 +78,28 @@ cta::mediachanger::acs::AcsQueryDriveCmdLine::AcsQueryDriveCmdLine(const int arg
if
(
help
)
{
return
;
}
// Calculate the number of non-option ARGV-elements
const
int
nbArgs
=
argc
-
optind
;
// Check that DRIVE_SLOT has been specified
if
(
argc
<
1
)
{
if
(
1
>
nbArgs
)
{
cta
::
exception
::
MissingOperand
ex
;
ex
.
getMessage
()
<<
"DRIVE_SLOT must be specified"
;
throw
ex
;
}
// Parse DRIVE_SLOT
libraryDriveSlot
=
Acs
::
str2DriveId
(
argv
[
1
]);
// Check that aren't too many non-optional arguments
if
(
1
<
nbArgs
)
{
cta
::
exception
::
Exception
ex
;
ex
.
getMessage
()
<<
"To many non-optional arguments: expected=1,actual="
<<
nbArgs
;
throw
ex
;
}
// Parse DRIVE_SLOT
libraryDriveSlot
=
Acs
::
str2DriveId
(
argv
[
optind
]);
}
//------------------------------------------------------------------------------
// processOption
//------------------------------------------------------------------------------
...
...
@@ -134,16 +146,23 @@ void cta::mediachanger::acs::AcsQueryDriveCmdLine::processOption(const int opt)
"Where:
\n
"
"
\n
"
" DRIVE_SLOT The slot in the tape library where the drive is located.
\n
"
"
DRIVE_SLOT must be in one of the following two form
s:
\n
"
"
The format of DRIVE_SLOT is as follow
s:
\n
"
"
\n
"
" acsACS_NUMBER,LSM_NUMBER,PANEL_NUMBER,TRANSPORT_NUMBER
\n
"
" smcDRIVE_ORDINAL
\n
"
" ACS:LSM:panel:transport
\n
"
"
\n
"
"Options:
\n
"
"
\n
"
" -d|--debug Turn on the printing of debug information.
\n
"
" -d|--debug
Turn on the printing of debug information.
\n
"
"
\n
"
" -h|--help Print this help message and exit.
\n
"
" -h|--help Print this help message and exit.
\n
"
" -q|--query SECONDS Time to wait between queries to ACS for responses.
\n
"
" SECONDS must be an integer value greater than 0.
\n
"
" The default value of SECONDS is "
<<
ACS_QUERY_INTERVAL
<<
".
\n
"
" -t|--timeout SECONDS Time to wait for the query to conclude. SECONDS
\n
"
" must be an integer value greater than 0. The
\n
"
" default value of SECONDS is "
<<
ACS_CMD_TIMEOUT
<<
".
\n
"
"
\n
"
;
return
usage
.
str
();
}
...
...
This diff is collapsed.
Click to expand it.
mediachanger/acs/cta-tape-acs-querydrive.1cta
+
6
−
3
View file @
a22abbc0
...
...
@@ -18,15 +18,18 @@
.SH NAME
cta-tape-acs-querydrive \- queries a drive
.SH SYNOPSIS
.BI "cta-tape-acs-querydrive [options]
VID
"
.BI "cta-tape-acs-querydrive [options]
DRIVE_SLOT
"
.SH DESCRIPTION
\fBWarning\fP, \fBcta-tape-acs-querydrive\fP is a developer tool and is
therefore subject to change
in
and even removal from a future release of CTA.
therefore subject to change and even removal from a future release of CTA.
End users should not rely on this tool to operate their CTA installation.
\fBcta-tape-acs-querydrive\fP quieries ACS for information about the drive
with the specfied \fBVID\fP.
located in the specified \fBDRIVE_SLOT\fP. The format of \fBDRIVE_SLOT\fP
is as follows:
.B ACS:LSM:panel:transport
Please note that this command-line tool communicates directly with the CSI of
the ACS system. This command-line tool does not communicate with any CTA
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment