Clean up messages printed in the terminal for cta-readtp
After adding the possebility of reading encrypted tapes with cta-readtp, extra messages were printed when getting the taped config file. The extra messages related to the config file should be printed.
The old output:
[root@tpsrv01 /]# cta-readtp
Dec 19 10:10:56.440552 tpsrv01 cta-readtp: LVL="INFO" PID="372" TID="372" MSG="Configuration entry" category="taped" key="DaemonUserName" value="cta" source="Compile time default"
Dec 19 10:10:56.440743 tpsrv01 cta-readtp: LVL="INFO" PID="372" TID="372" MSG="Configuration entry" category="taped" key="DaemonGroupName" value="tape" source="Compile time default"
Dec 19 10:10:56.440769 tpsrv01 cta-readtp: LVL="INFO" PID="372" TID="372" MSG="Configuration entry" category="taped" key="LogMask" value="INFO" source="Compile time default"
Dec 19 10:10:56.440792 tpsrv01 cta-readtp: LVL="INFO" PID="372" TID="372" MSG="Configuration entry" category="taped" key="TpConfigPath" value="/etc/cta/TPCONFIG" source="Compile time default"
Dec 19 10:10:56.440815 tpsrv01 cta-readtp: LVL="INFO" PID="372" TID="372" MSG="Configuration entry" category="taped" key="externalEncryptionKeyScript" value="" source="Compile time default"
Dec 19 10:10:56.440841 tpsrv01 cta-readtp: LVL="INFO" PID="372" TID="372" MSG="Configuration entry" category="taped" key="UseEncryption" value="no" source="/etc/cta/cta-taped.conf:5"
Dec 19 10:10:56.440873 tpsrv01 cta-readtp: LVL="INFO" PID="372" TID="372" MSG="Configuration entry" category="taped" key="BufferSizeBytes" value="262144" source="/etc/cta/cta-taped.conf:1"
Dec 19 10:10:56.440897 tpsrv01 cta-readtp: LVL="INFO" PID="372" TID="372" MSG="Configuration entry" category="taped" key="BufferCount" value="200" source="/etc/cta/cta-taped.conf:2"
Dec 19 10:10:56.440922 tpsrv01 cta-readtp: LVL="INFO" PID="372" TID="372" MSG="Configuration entry" category="taped" key="ArchiveFetchBytesFiles" maxBytes="80000000000" maxFiles="4000" source="Compile time default"
Dec 19 10:10:56.440951 tpsrv01 cta-readtp: LVL="INFO" PID="372" TID="372" MSG="Configuration entry" category="taped" key="ArchiveFlushBytesFiles" maxBytes="32000000000" maxFiles="200" source="Compile time default"
Dec 19 10:10:56.440978 tpsrv01 cta-readtp: LVL="INFO" PID="372" TID="372" MSG="Configuration entry" category="taped" key="RetrieveFetchBytesFiles" maxBytes="80000000000" maxFiles="4000" source="Compile time default"
Dec 19 10:10:56.441006 tpsrv01 cta-readtp: LVL="INFO" PID="372" TID="372" MSG="Configuration entry" category="taped" key="MountCriteria" maxBytes="2000000" maxFiles="100" source="/etc/cta/cta-taped.conf:3"
Dec 19 10:10:56.441031 tpsrv01 cta-readtp: LVL="INFO" PID="372" TID="372" MSG="Configuration entry" category="taped" key="NbDiskThreads" value="10" source="Compile time default"
Dec 19 10:10:56.441054 tpsrv01 cta-readtp: LVL="INFO" PID="372" TID="372" MSG="Configuration entry" category="taped" key="UseRAO" value="yes" source="Compile time default"
Dec 19 10:10:56.441091 tpsrv01 cta-readtp: LVL="INFO" PID="372" TID="372" MSG="Configuration entry" category="taped" key="WatchdogIdleSessionTimer" value="10" source="Compile time default"
Dec 19 10:10:56.441115 tpsrv01 cta-readtp: LVL="INFO" PID="372" TID="372" MSG="Configuration entry" category="taped" key="WatchdogMountMaxSecs" value="600" source="Compile time default"
Dec 19 10:10:56.441138 tpsrv01 cta-readtp: LVL="INFO" PID="372" TID="372" MSG="Configuration entry" category="taped" key="WatchdogNoBlockMoveMaxSecs" value="600" source="Compile time default"
Dec 19 10:10:56.441161 tpsrv01 cta-readtp: LVL="INFO" PID="372" TID="372" MSG="Configuration entry" category="taped" key="WatchdogScheduleMaxSecs" value="300" source="Compile time default"
Dec 19 10:10:56.441231 tpsrv01 cta-readtp: LVL="INFO" PID="372" TID="372" MSG="Configuration entry" category="ObjectStore" key="BackendPath" value="/shared/dev/objectstore" source="/etc/cta/cta-taped.conf:4"
Dec 19 10:10:56.441256 tpsrv01 cta-readtp: LVL="INFO" PID="372" TID="372" MSG="Configuration entry" category="taped" key="CatalogueConfigFile" value="/etc/cta/cta-catalogue.conf" source="Compile time default"
Dec 19 10:10:56.441280 tpsrv01 cta-readtp: LVL="INFO" PID="372" TID="372" MSG="Configuration entry" category="taped" key="UseRepackManagement" value="yes" source="Compile time default"
Dec 19 10:10:56.441303 tpsrv01 cta-readtp: LVL="INFO" PID="372" TID="372" MSG="Configuration entry" category="taped" key="UseMaintenanceProcess" value="yes" source="Compile time default"
Dec 19 10:10:56.441325 tpsrv01 cta-readtp: LVL="INFO" PID="372" TID="372" MSG="Configuration entry" category="taped" key="externalFreeDiskSpaceScript" value="" source="Compile time default"
Dec 19 10:10:56.441353 tpsrv01 cta-readtp: LVL="INFO" PID="372" TID="372" MSG="Configuration entry" category="taped" key="TapeLoadTimeout" value="300" source="Compile time default"
Dec 19 10:10:56.441381 tpsrv01 cta-readtp: LVL="INFO" PID="372" TID="372" MSG="Configuration entry" category="TPCONFIG Entry" tapeDrive="VDSTK11" logicalLibrary="VDSTK11" devFilename="/dev/nst0" librarySlot="smc0" source="/etc/cta/TPCONFIG:1"
Usage:
cta-readtp <VID> <SEQUENCE> [options]
Where:
<VID> The VID of the tape to be read
<SEQUENCE> A sequence of tape file sequence numbers. The syntax to be used is:
f1-f2 Files f1 to f2 inclusive
f1- Files f1 to the last file on the tape
f1-f2,f4,f6- A series of non-consecutive ranges of files
Options:
-h, --help Print this help message and exit.
-p, --xroot_private_key <KEY PATH> Path to the xroot private key file. Necessary if
read files are to be written using xroot.
-f, --destination_files <FILE URL> URL to file containing a list of destination files.
If not set, all data read is written to file:///dev/null
If there are less destination files than read files, the remaining
files read will be written to file:///dev/null.
Preferred behavior:
[root@tpsrv01 /]# cta-readtp
Usage:
cta-readtp <VID> <SEQUENCE> [options]
Where:
<VID> The VID of the tape to be read
<SEQUENCE> A sequence of tape file sequence numbers. The syntax to be used is:
f1-f2 Files f1 to f2 inclusive
f1- Files f1 to the last file on the tape
f1-f2,f4,f6- A series of non-consecutive ranges of files
Options:
-h, --help Print this help message and exit.
-p, --xroot_private_key <KEY PATH> Path to the xroot private key file. Necessary if
read files are to be written using xroot.
-f, --destination_files <FILE URL> URL to file containing a list of destination files.
If not set, all data read is written to file:///dev/null
If there are less destination files than read files, the remaining
files read will be written to file:///dev/null.
Edited by Lasse Tjernaes Wardenaer