TapeTrack Documentation

Because there is more to tape management than you ever realized

User Tools

Site Tools


cli:tmss10confirm
 
 

TMSS10Confirm

TMSS10Confirm is used to confirm Volumes that are moving from the Current Repository to a Target Repository . A range of filters can be passed to the program to ensure that only the required confirmations are performed.

Synopsis

TMSS10Confirm [-S logon string] [-V volume filter] [-c config file] [-C current] [-T target] [-o confirm on container]

Options

  • -S The Logon string argument sets the Server Logon Information.
  • -V Volume Filter which can be used to filter the traversal of Customer, Media, Volume, Repository and Flag values.
  • -c The config file argument specifies the path to the Batch Configuration File. The Batch Configuration File allows you to perform advanced traversal of Customer, Media and Volumes, perform advanced Barcode pre and post processing and route program output to syslogd. Configuration File capabilities vary from program to program but the syntax remains the same. In the event that logic is not supported it will simply be ignored. The following example will set the default Customer-ID and Media-ID for all scanned Barcodes:
     barcodes = 
    { 
    	defaults={ customer-id="ACME"; media-id="LTO"; };
    }; 
  • -o This argument confirms any Volume if the Volume is in a Container and the Container is confirmed already at the Volume's Target Repository.
  • -T A filter value for the Volume's Target Repository.
  • -C A filter value for the Volume's Current Repository.

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.

Notes

To confirm a list of Volumes you can use the scanfile option within a Configuration file passed with the -c argument.

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

TMSSSERVERPROXY If defined the program will route all TapeTrack TCP/IP traffic through a HTTPS proxy. The value of the variable should be in the format user:password@host:port. To debug the proxy connection use variable TMSSAPILOGDIR.

TMSSAPILOGDIR If defined the program will write out a trace file to this directory.

TMSSPWPATH When no password value is passed in the logon string the program will look for the password in file C:/tapetrack/pw/batch, where user is the user value passed in the logonstring. If you wish to change this default path, you can set the path in TMSSPWPATH.

TMSSNOMD5 If defined the program will not MD5 hash passwords before sending them to the TapeTrack Server. This is required when relying on Windows Active Directory authentication. It should be noted that although the password is not being hashed, it is still being encrypted during transmission.

Files

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

Example

Command line syntax

To confirm all volumes for customer US01, media LTO and volume pattern matching 00000?L6 moving from LIBR to OFFS

TMSS10Confirm -S user:-password@server -T "OFFS" -C "LIBR" -V "US01.LTO.00000?L6"

Output

ZBT001N-12:53:25 TMSS10Confirm (c) GazillaByte 1998-2017
ZBT002N-12:53:25 Compiled Feb 24 2017 at 15:54:00
ZBT010I-12:53:25 This program will confirm moving Volumes into their current Target Repository
ZBT006N-12:53:25 Running Under Windows 10 (build 14393 10.00) on platform x64
ZBT000N-12:53:25 Host is Little Endian
ZBT000N-12:53:25 Host is ASCII
ZBT000N-12:53:25 Binary is 64 bit
ZBT000N-12:53:25 Current Working Directory is C:\WINDOWS\system32
ZBT004N-12:53:25 Today is Tuesday, March 07, 2017
ZBT005N-12:53:25 Running on local
ZBT006N-12:53:25 Process ID 10068
ZBT000N-12:53:25 Parsing and validating command arguments
ZBT001N-12:53:25 Server Interpreted as: Server(*********) Port(5000) User(******) Password(******)
ZBT002N-12:53:25 Program Options:
ZBT002N-12:53:25        (C) Current Repository Filter=LIBR
ZBT002N-12:53:25        (S) Server=<VALUE HIDDEN>
ZBT002N-12:53:25        (T) Target Repository Filter=OFFS
ZBT002N-12:53:25        (V) Volume Filter=US01.LTO.00000?L6
ZBT002N-12:53:25        (c) Configuration File=
ZBT002N-12:53:25        (o) Only confirm if assigned container is confirmed into same location=false
ZBT000N-12:53:25 Arguments parsed and validated with 0 errors
ZBT000N-12:53:25 Checking for environment variable TMSSSERVERPROXY
ZBT000N-12:53:27 Connection to server successful
ZBT000N-12:53:27 Logging on to TapeTrack Server
ZBT000N-12:53:27 Registering Client at MACID Result(Request OK)
ZBT000N-12:53:27 Last Logon was at Tuesday, March 07, 2017 - 12:51:33 
ZBT000N-12:53:27 Welcome to Server: TapeTrack
ZBT001N-12:53:27 Volume filter interpreted as: Customer(US01) Media(LTO) Volume(00000?L6) Repository(*) Flags()
ZBT000N-12:53:27 Listing Customers
ZBT000N-12:53:27 Customer List successful: Customers(6) Excluded(0)
ZBT000N-12:53:27 Processing Customer: US01-New York Data Center (2278/29)
ZBT000N-12:53:27 Listing Media
ZBT000N-12:53:28 Media List successful: Media(2) Excluded(0)
ZBT000N-12:53:28 Processing Media: LTO-LTO Cartridge
ZBT000N-12:53:28 Listing Volumes
ZBT000N-12:53:28 Volume List successful: Volumes(27) Excluded(182)
ZBT000N-12:53:28 Considering candidate volume 000001L6
ZBT000N-12:53:28 Confirming volume: 000001L6
ZBT000N-12:53:28 Volume (US01.LTO.000001L6) updated OK
ZBT000N-12:53:28 Considering candidate volume 000002L6
ZBT000N-12:53:28 Confirming volume: 000002L6
ZBT000N-12:53:29 Volume (US01.LTO.000002L6) updated OK
ZBT000N-12:53:29 Considering candidate volume 000003L6
ZBT000N-12:53:29 Confirming volume: 000003L6
ZBT000N-12:53:29 Volume (US01.LTO.000003L6) updated OK
ZBT000N-12:53:30 Closing connection to TapeTrack Server
ZBT000N-12:53:30 Session Statistics:
ZBT000N-12:53:30        Seconds Connected: 3
ZBT000N-12:53:30        Queries Completed: 24
ZBT000N-12:53:30               Bytes Sent: 2,272
ZBT000N-12:53:30           Bytes Received: 3,712
ZBT900N-12:53:30 Program Complete
ZBT901N-12:53:30 Elapsed time 0 minutes and 5 seconds
ZBT991N-12:53:30 CRC values for this session: 0xd547cc35 (0xcddb20be)
ZBT992N-12:53:30 Number of records written: 71
ZBT993N-12:53:30 Number of bytes written: 3,887
ZBT999N-12:53:30 Program ended 

Command line syntax

To confirm all volumes moving from LIBR to OFFS with the exception of Customer-ID US01

TMSS10Confirm -S user:-password@server -T "OFFS" -C "LIBR" -V "!(US01).*.*"
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-12-12Ported to big endian platforms (AIX, Solaris, HPUX, z/OS)
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
cli/tmss10confirm.txt · Last modified: 2023/07/10 02:33 by scunliffe