Table of Contents

TMSS10UploadFile

Synopsis

TMSS10UploadFile [-C Customer-ID] [-E expiry date] [-S logon string] [-d file description] [-f file name]

Description

TMSS10UploadFile uploads a file to the TapeTrack server to the specified Customer-ID.

Options

If an argument value starts with the value FI:, the value for that attribute will be read from the file name specified immediately after it. For example, if a file named ACME_volumes has the content ACME_*.*, specifying FI:/etc/ACME_volumes will have the same effect as -V ACME.*.*. Using FI: to refer to a file for an attribute value works for all attributes.

If the pattern being matched starts with *LIST: then rather than matching the literal value, each record in the file specified as *LIST:filename will be tested. If one matches the match will succeed.

Technical Support

The TapeTrack Software is commercially supported by a full time help desk staff. If you are experiencing problems or want some advice on how to configure or use the product please see the Accessing Technical Support page.

Exit Statuses

  1. zero Program has ended successfully.
  2. non-zero Program has not ended successfully.

Environment

Files

stdout: Output Reports.
stderr: Diagnostic messages.
stdin: Program input.

Example

Command line syntax

TMSS10UploadFile -S user:-password@server -C "US02" -E "2017-12-13" -d "file description" -f "MyFile.txt"

Output

ZBT001N-12:55:55 TMSS10UploadFile (c) GazillaByte 1998-2017
ZBT002N-12:55:55 Compiled Sep  3 2017 at 17:56:16
ZBT010I-12:55:55 this program will upload a file to the TapeTrack Server
ZBT006N-12:55:55 Running Under Windows 10 (build 15063 10.00) on platform x64
ZBT000N-12:55:55 Host is Little Endian
ZBT000N-12:55:55 Host is ASCII
ZBT000N-12:55:55 Binary is 64 bit
ZBT000N-12:55:55 Current Working Directory is C:\Program Files\TapeTrack\Files
ZBT004N-12:55:55 Today is Wednesday, November 22, 2017
ZBT005N-12:55:55 Running on GazillaByte
ZBT006N-12:55:55 Process ID 17348
ZBT000N-12:55:55 Parsing and validating command arguments
ZBT001N-12:55:55 Server Interpreted as: Server(localhost) Port(5000) User(user) Password(******)
ZBT002N-12:55:55 Program Options:
ZBT002N-12:55:55 	(C) Customer-ID=US02
ZBT002N-12:55:55 	(E) Expiry Date=2017-12-13
ZBT002N-12:55:55 	(S) Server=<VALUE HIDDEN>
ZBT002N-12:55:55 	(d) File Description=file description
ZBT002N-12:55:55 	(f) File Name=MyFile.txt
ZBT000N-12:55:55 Arguments parsed and validated with 0 errors
ZBT000N-12:55:55 Expiry Date set to: Wednesday, December 13, 2017
ZBT000N-12:55:55 Compressing input file to temporary file C:\Users\GazillaByte\AppData\Local\Temp\TMSB7F6.tmp
ZBT000N-12:55:55 Compression Progress: 0 of 7
ZBT000N-12:55:55 Compression Progress: 7 of 7
ZBT000N-12:55:55 Compression Complete
ZBT000N-12:55:55 Checking for environment variable TMSSSERVERPROXY
ZBT000N-12:55:55 Connection to server (127.0.0.1) successful
ZBT000N-12:55:55 Logging on to TapeTrack Server
ZBT000N-12:55:55 Registering Client at MACID(00:8c:fa:8e:02:f5:00:00) Result(Request OK)
ZBT000N-12:55:55 Last Logon was at Wednesday, November 22, 2017 - 12:54:05 from 127.0.0.1 
ZBT000N-12:55:55 Welcome to Server: Production
ZBT000N-12:55:55 Uploading File
ZBT000N-12:55:55 Send Progress: 27 of 27
ZBT000N-12:55:55 Registering File with Server
ZBT000N-12:55:55 Closing connection to TapeTrack Server
ZBT000N-12:55:55 Session Statistics:
ZBT000N-12:55:55 	Seconds Connected: 0
ZBT000N-12:55:55 	Queries Completed: 5
ZBT000N-12:55:55 	       Bytes Sent: 460
ZBT000N-12:55:55 	   Bytes Received: 412
ZBT900N-12:55:55 Program Complete
ZBT901N-12:55:55 Elapsed time 0 minutes and 0 seconds
ZBT991N-12:55:55 CRC values for this session: 0xf91611b2 (0x15bf7a7)
ZBT992N-12:55:55 Number of records written: 42
ZBT993N-12:55:55 Number of bytes written: 2,264
ZBT999N-12:55:55 Program ended
Changelog
2021-05-24Fixed bug when using TMSSLEVELNAME and TMSSNOLEVELSLOT variables (#127)
2020-11-24Added support for JSON output
2019-02-25Added support for HTML output
2019-02-09Added support for Excel output
2019-01-06Added return code list to end of all command line programs that use the TapeTrack API
2016-11-18Added fast forward code to reduce runtime
2016-11-18Enhanced argument parser to allow arguments in format *FI:filename that allows loading of arguments from a file
2015-12-26Added flags to Volume Filter syntax (customer.media.volume@repository+flags)
2015-08-24Changed hascontents to contentcount and change contentcount to a filter rather than bool
2015-08-24Added iscontainer and hascontents to the config file filter logic
2015-05-16Added environmental varialbe TMSSCANFILEUNQUALIFIED which will load and check volumes without Customer-ID and Media-ID qualifiers
2015-05-16Added environmental varialbe TMSSSCANFILENOPARSE which will presume scanfile items are only Volumes and not parse them, saving time
2015-05-16When loading scanfile from import definition, added CUSTOMER and MEDIA keywords to set defaults
2015-05-16When loading scanfile from import definition, changed keyword from VOLUME to BARCODE
2015-05-16Added TMSSUNQUALIFIEDVOLUME environmental variable which forces all barcodes to be printed without Customer-ID and Media-ID
2015-05-04Added support for AD passwords to all command line programs (check for environmental variable TMSSNOMD5)
2014-11-19Changed server argument parser to allow colon in password to support z/OS DD name files
2014-10-26Upgraded development environment from Visual Studio 2012 to Visual Studio 2013