technote:add_remove_flags_by_last_read
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
technote:add_remove_flags_by_last_read [2021/07/20 01:01] – created Scott Cunliffe | technote:add_remove_flags_by_last_read [2025/01/21 22:07] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Add Remove Flags Based Off Last Read Time ====== | + | ====== Add Or Remove Flags Based Off Last Read Time ====== |
- | Add or Remove Flags based off last read time of Volumes using TMSS10ModifyFlags and a config file. | + | Add or Remove |
- | The process involves TMSS10ModifyFlags loading an input file, using a definition file, to extract | + | One purpose of this method allows you to lock any [[object: |
- | The scan file is then processed, adding or removing the defined Flags against the scan list Volumes. | + | The process involves [[cli: |
+ | |||
+ | The scan file is then processed, adding or removing the defined | ||
===== Sample Files ===== | ===== Sample Files ===== | ||
- | Input file | + | ==== Input file - Volumes.csv ==== |
+ | |||
+ | < | ||
+ | 100001L5, | ||
+ | 100002L5, | ||
+ | 100003L5, | ||
+ | 100004L5, | ||
+ | 100005L5, | ||
+ | 100006L5, | ||
+ | 100007L5, | ||
+ | 100008L5, | ||
+ | 100009L5, | ||
+ | 100010L5, | ||
+ | </ | ||
+ | |||
+ | === Definition file - default.ttidef === | ||
+ | |||
+ | |||
+ | The definition file provides the information on how to extract the [[object: | ||
+ | |||
+ | # Set input file (use full path if not in current directory) | ||
+ | setFile(volumes.csv); | ||
+ | |||
+ | # Set delimiter used in CSV file | ||
+ | setCSVDelimiter("," | ||
+ | |||
+ | # Set Customer-ID | ||
+ | setLiteral(CUSTOMER, | ||
+ | |||
+ | #Set Media-ID | ||
+ | setLiteral(MEDIA, | ||
+ | |||
+ | # Extract Volume-ID into BARCODE field | ||
+ | extract(BARCODE, | ||
+ | |||
+ | |||
+ | == Configuration file - last_read.cfg == | ||
+ | |||
+ | |||
+ | Configuration file sets definition file for translating and extracting [[object: | ||
+ | |||
+ | traversal = | ||
+ | { | ||
+ | | ||
+ | | ||
+ | ( | ||
+ | { | ||
+ | | ||
+ | media = | ||
+ | ( | ||
+ | { | ||
+ | | ||
+ | | ||
+ | ( | ||
+ | { | ||
+ | id=" | ||
+ | lastreadtime = " | ||
+ | skip=false; | ||
+ | }, | ||
+ | { | ||
+ | id=" | ||
+ | skip=true; | ||
+ | } | ||
+ | ); | ||
+ | } | ||
+ | ); | ||
+ | } | ||
+ | ); | ||
+ | }; | ||
+ | |||
+ | |||
+ | == Batch file - run_remove_lock_flag.bat == | ||
+ | |||
+ | |||
+ | Run [[cli: | ||
+ | |||
+ | TMSS10ModifyFlags -S user: | ||
+ | |||
+ | ==== Example Output ==== | ||
+ | |||
+ | modify_flags_std.txt | ||
+ | |||
+ | < | ||
+ | |||
+ | | ||
+ | | ||
+ | Production Time: Friday, July 30, 2021 - 10:36:51 (AUS Eastern Standard Time) | ||
+ | | ||
+ | |||
+ | | ||
+ | | ||
+ | 1 1 100001L5 | ||
+ | 2 2 100002L5 | ||
+ | 3 3 100003L5 | ||
+ | 4 4 100004L5 | ||
+ | 5 5 100005L5 | ||
+ | 6 6 100006L5 | ||
+ | 7 7 100007L5 | ||
+ | 8 8 100008L5 | ||
+ | 9 9 100009L5 | ||
+ | | ||
+ | | ||
+ | |||
+ | | ||
+ | | ||
+ | Production Time: Friday, July 30, 2021 - 10:36:51 (AUS Eastern Standard Time) | ||
+ | | ||
+ | |||
+ | | ||
+ | | ||
+ | 1 US02.LTO.100006L5 | ||
+ | 2 US02.LTO.100007L5 | ||
+ | 3 US02.LTO.100008L5 | ||
+ | 4 US02.LTO.100009L5 | ||
+ | 5 US02.LTO.100010L5 | ||
+ | | ||
+ | |||
+ | </ | ||
- | > 001, | ||
- | 002, | ||
- | 003, | ||
- | 004, | ||
- | 005, | ||
- | 006, | ||
- | 007, | ||
- | 008, | ||
- | 009, | ||
- | 010, | ||
+ | {{tag> technote config cli report}} | ||
technote/add_remove_flags_by_last_read.1626742886.txt.gz · Last modified: 2025/01/21 22:07 (external edit)