technote:add_remove_flags_by_last_read
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
technote:add_remove_flags_by_last_read [2021/07/20 01:08] – [Sample Files] 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 - Volumes.csv | + | ==== Input file - Volumes.csv |
+ | |||
+ | < | ||
+ | 100001L5, | ||
+ | 100002L5, | ||
+ | 100003L5, | ||
+ | 100004L5, | ||
+ | 100005L5, | ||
+ | 100006L5, | ||
+ | 100007L5, | ||
+ | 100008L5, | ||
+ | 100009L5, | ||
+ | 100010L5, | ||
+ | </ | ||
+ | |||
+ | === Definition file - default.ttidef === | ||
- | 001, | ||
- | 002, | ||
- | 003, | ||
- | 004, | ||
- | 005, | ||
- | 006, | ||
- | 007, | ||
- | 008, | ||
- | 009, | ||
- | 010, | ||
- | Definition | + | The definition |
# Set input file (use full path if not in current directory) | # Set input file (use full path if not in current directory) | ||
Line 37: | Line 44: | ||
| | ||
# Extract Volume-ID into BARCODE field | # Extract Volume-ID into BARCODE field | ||
- | extract(BARCODE, | + | extract(BARCODE, |
| | ||
| | ||
- | Configuration file - last_read.cfg | + | == Configuration file - last_read.cfg |
+ | |||
+ | |||
+ | Configuration file sets definition file for translating and extracting [[object: | ||
| | ||
traversal = | traversal = | ||
Line 57: | Line 67: | ||
{ | { | ||
id=" | id=" | ||
- | | + | |
skip=false; | skip=false; | ||
}, | }, | ||
Line 70: | Line 80: | ||
); | ); | ||
}; | }; | ||
+ | | ||
+ | |||
+ | == 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 | ||
+ | | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | {{tag> technote config cli report}} | ||
technote/add_remove_flags_by_last_read.1626743294.txt.gz · Last modified: 2025/01/21 22:07 (external edit)