TapeTrack Documentation

Because there is more to tape management than you ever realized

User Tools

Site Tools


cli:tmss10expiredrstrategies
 
 

TMSS10ExpireDRStrategies

TMSS10ExpireDRStrategies will delete (or depreciate) all expired Disaster Recovery strategies within the specified date range.

Synopsis

TMSS10ExpireDRStrategies [-C customer filter] [-D description filter] [-R date range] [-S logon string] [-d depreciate] [-t test mode]

Options

  • -C Customer-ID filter.
  • -D Description filter.
  • -R Expiry date range.
  • -S The Logon string argument sets the Server Logon Information.
  • -d Depreciate Disaster Recovery Strategy rather than delete.
  • -t Run in test mode, no updates performed.

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

TMSS10ExpireDRStrategies -S user:-password@server -C "US02" -R "M-1:m-1" -d true

Output

ZBT001N-12:58:04 TMSS10ExpireDRStrategies (c) GazillaByte 1998-2017
ZBT002N-12:58:04 Compiled Jul  4 2017 at 19:58:38
ZBT010I-12:58:04 this program will delete all expired Disaster Recovery Strategies
ZBT006N-12:58:04 Running Under Windows 10 (build 15063 10.00) on platform x64
ZBT000N-12:58:04 Host is Little Endian
ZBT000N-12:58:04 Host is ASCII
ZBT000N-12:58:04 Binary is 64 bit
ZBT000N-12:58:04 Current Working Directory is C:\Users\GazillaByte\TapeTrack
ZBT004N-12:58:04 Today is Tuesday, November 21, 2017
ZBT005N-12:58:04 Running on Production
ZBT006N-12:58:04 Process ID 18120
ZBT000N-12:58:04 Parsing and validating command arguments
ZBT001N-12:58:04 Server Interpreted as: Server(localhost) Port(5000) User(user) Password(******)
ZBT000N-12:58:04 Explicit date range requested as: M-1:m-1
ZBT000N-12:58:04 Start date interpreted as: Sunday, October 01, 2017
ZBT000N-12:58:04 End date interpreted as: Tuesday, October 31, 2017
ZBT000N-12:58:04 Days apart: 31
ZBT000N-12:58:04 Checking for Environment Variable 'ESPDATERANGEOFFSETFILE'
ZBT002N-12:58:04 Program Options:
ZBT002N-12:58:04 	(C) Customer Filter=US02
ZBT002N-12:58:04 	(D) Description Filter=*
ZBT002N-12:58:04 	(R) Expiry Date Range=M-1:m-1
ZBT002N-12:58:04 	(S) Server=<VALUE HIDDEN>
ZBT002N-12:58:04 	(d) Depreciate rather than delete=true
ZBT002N-12:58:04 	(t) Test Mode (no updates)=false
ZBT000N-12:58:04 Arguments parsed and validated with 0 errors
ZBT000N-12:58:04 Checking for environment variable TMSSSERVERPROXY
ZBT000N-12:58:04 Connection to server (127.0.0.1) successful
ZBT000N-12:58:04 Logging on to TapeTrack Server
ZBT000N-12:58:04 Registering Client at MACID(00:8c:fa:8e:02:f5:00:00) Result(Request OK)
ZBT000N-12:58:04 Last Logon was at Tuesday, November 21, 2017 - 12:58:04 from 127.0.0.1 
ZBT000N-12:58:04 Welcome to Server: Production
ZBT000N-12:58:04 Listing Customers
ZBT000N-12:58:04 Customer List successful: Customers(10) Excluded(0)
ZBT000N-12:58:04 Processing Customer: US02-Los Angeles Data Center (325/1)
ZBT000N-12:58:04 Candidate Strategy(LA Recovery Data) Expiry(Monday, October 02, 2017)
ZBT000N-12:58:04 Depreciation Result: Request OK
ZBT000N-12:58:04 Candidate Strategy(LA Weekly Recovery) Expiry(Thursday, October 26, 2017)
ZBT000N-12:58:04 Depreciation Result: Request OK
ZBT000N-12:58:04 Closing connection to TapeTrack Server
ZBT000N-12:58:04 Session Statistics:
ZBT000N-12:58:04 	Seconds Connected: 0
ZBT000N-12:58:04 	Queries Completed: 9
ZBT000N-12:58:04 	       Bytes Sent: 700
ZBT000N-12:58:04 	   Bytes Received: 1,484
ZBT900N-12:58:04 Program Complete
ZBT901N-12:58:04 Elapsed time 0 minutes and 0 seconds
ZBT991N-12:58:04 CRC values for this session: 0x7c0fb0bb (0xddfde9c5)
ZBT992N-12:58:04 Number of records written: 47
ZBT993N-12:58:04 Number of bytes written: 2,693
ZBT999N-12:58:04 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
cli/tmss10expiredrstrategies.txt · Last modified: 2022/05/31 01:50 by scunliffe