Commit f0acd476 authored by Anastasia Karachaliou's avatar Anastasia Karachaliou
Browse files

The smc command changed to cta-smc

parent 7fc22f86
......@@ -309,10 +309,10 @@ Tools to faciliate working with rmcd and smc in cta
%attr(0644,root,root) %config(noreplace) /etc/logrotate.d/cta-rmcd
%attr(0644,root,root) %doc /usr/share/man/man1/cta-rmcd.1cta.gz
%attr(0755,root,root) %{_bindir}/cta-rmcd
%attr(0755,root,root) %{_bindir}/smc
%attr(0755,root,root) %{_bindir}/cta-smc
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cta/cta-rmcd.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cta/cta-smc.conf.example
%attr(0644,root,root) %doc /usr/share/man/man1/smc.1cta.gz
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cta/cta-smc.conf
%attr(0644,root,root) %doc /usr/share/man/man1/cta-smc.1cta.gz
%attr(0644,root,root) /etc/sysconfig/cta-rmcd
%attr(0644,root,root) /etc/systemd/system/cta-rmcd.service
......
......@@ -38,7 +38,7 @@ endif(CMAKE_COMPILER_IS_GNUCC)
add_executable(cta-rmcd ${RMCD_SRC_FILES})
target_link_libraries(cta-rmcd ctarmccommon)
install (FILES cta-rmcd.conf DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/cta)
install (FILES cta-smc.conf.example DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/cta)
install (FILES cta-smc.conf DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/cta)
install (TARGETS cta-rmcd DESTINATION /usr/bin)
install (FILES cta-rmcd.1cta DESTINATION /usr/share/man/man1)
......@@ -57,7 +57,7 @@ set (SMC_SRC_FILES
rmc_read_elem_status.c
send2rmc.c
smc.c)
add_executable(smc ${SMC_SRC_FILES})
target_link_libraries(smc ctarmccommon)
install (TARGETS smc DESTINATION /usr/bin)
install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/smc.1cta DESTINATION /usr/share/man/man1)
add_executable(cta-smc ${SMC_SRC_FILES})
target_link_libraries(cta-smc ctarmccommon)
install (TARGETS cta-smc DESTINATION /usr/bin)
install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/cta-smc.1cta DESTINATION /usr/share/man/man1)
......@@ -3,9 +3,9 @@
.\"
.TH SMC "1castor" "$Date: 2005/06/16 09:43:12 $" CASTOR "Ctape User Commands"
.SH NAME
smc \- command line interface to drive robotic devices through SCSI
cta-smc \- command line interface to drive robotic devices through SCSI
.SH SYNOPSIS
.B smc
.B cta-smc
.BI -d
.BI -D " drive_ordinal"
[
......@@ -14,14 +14,14 @@ smc \- command line interface to drive robotic devices through SCSI
.BI -v
]
.br
.B smc
.B cta-smc
.BI -e
.BI -V " vid"
[
.BI -v
]
.br
.B smc
.B cta-smc
.BI -i
[
.BI -V " vid"
......@@ -29,7 +29,7 @@ smc \- command line interface to drive robotic devices through SCSI
.BI -v
]
.br
.B smc
.B cta-smc
.BI -m
.BI -D " drive_ordinal"
.BI -V " vid"
......@@ -37,7 +37,7 @@ smc \- command line interface to drive robotic devices through SCSI
.BI -v
]
.br
.B smc
.B cta-smc
.B -q D
[
.BI -D " drive_ordinal"
......@@ -46,19 +46,19 @@ smc \- command line interface to drive robotic devices through SCSI
.BI -v
]
.br
.B smc
.B cta-smc
.B -q L
[
.BI -v
]
.br
.B smc
.B cta-smc
.B -q P
[
.BI -v
]
.br
.B smc
.B cta-smc
.B -q S
[
.BI -N " nbelem"
......@@ -68,7 +68,7 @@ smc \- command line interface to drive robotic devices through SCSI
.BI -v
]
.br
.B smc
.B cta-smc
.B -q V
[
.BI -N " nbelem"
......@@ -78,7 +78,7 @@ smc \- command line interface to drive robotic devices through SCSI
.BI -v
]
.SH DESCRIPTION
.B smc
.B cta-smc
is a program allowing to mount, dismount, export volumes in a robotic
library through SCSI. It allows also to query various elements of the library.
.SH OPTIONS
......@@ -155,19 +155,19 @@ verbose mode. On query requests it prints headers on top of the columns.
To mount the volume JK2005 on drive 1:
.br
.RS
.B "smc -m -D 1 -V JK2005"
.B "cta-smc -m -D 1 -V JK2005"
.RE
.LP
To dismount the volume present on drive 1 after checking the vid:
.br
.RS
.B "smc -d -D 1 -V JK2005"
.B "cta-smc -d -D 1 -V JK2005"
.RE
.LP
To query the main charateristics of the library:
.br
.RS
.B "smc -q L"
.B "cta-smc -q L"
.sp
.nf
Vendor/Product/Revision = <STK 9714 1500>
......@@ -181,7 +181,7 @@ Device Count = 2, Start = 1030
To query the status of all the drives:
.br
.RS
.B "smc -q D -v"
.B "cta-smc -q D -v"
.sp
.nf
.cs R 20
......@@ -195,7 +195,7 @@ Drive Ordinal Element Addr. Status Vid
To get the list of a few slots in the library:
.br
.RS
.B "smc -q S -S 20 -N 10 -v"
.B "cta-smc -q S -S 20 -N 10 -v"
.sp
.nf
.cs R 20
......@@ -217,7 +217,7 @@ Element Addr. Vid
To get the status of volumes for which the vid starts with JK200
.br
.RS
.B "smc -q V -V 'JK200*' -v"
.B "cta-smc -q V -V 'JK200*' -v"
.sp
.nf
.cs R 20
......
# The CERN Tape Archive (CTA) project
# Copyright (C) 2015 CERN
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
################################################################################
#
# CTA Sample Configuration File
#
################################################################################
# The log mask. Logs with a level lower than this value will be masked.
# Possible values are:
# EMERG
# ALERT
# CRIT
# ERR
# WARNING
# NOTICE
# INFO
# DEBUG
# USERERR
#
# Please note that the USERERR log level is equivalent to NOTICE because it is
# a convention of CTA to use log level NOTICE to label user errors.
#
# taped LogMask INFO
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment