| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| variable:tmsscmdstring [2020/04/20 02:39] – Scott Cunliffe | variable:tmsscmdstring [2025/01/21 22:07] (current) – external edit 127.0.0.1 |
|---|
| ===== Example ===== | ===== Example ===== |
| |
| Using TMSS10MoveList output as an example, the standard output displays Volume-ID, Current and Target location as well as move times and attributes. | Using [[cli:tmss10movelist|TMSS10MoveList]] output as an example, the standard output displays [[object:volume|Volume-ID]], Current and Target [[object:repository|Repositories]] as well as move times and attributes. |
| |
| <sxh> | |
| | |
| | <code> |
| |
| System: TapeTrack | System: TapeTrack |
| Seq. Barcode Current Location Target Location Move Time Time Container Attribute | Seq. Barcode Current Location Target Location Move Time Time Container Attribute |
| ------ -------------------- ------------------------------ ------------------------------ ---------------- --------------- -------------------- ------------------------------ | ------ -------------------- ------------------------------ ------------------------------ ---------------- --------------- -------------------- ------------------------------ |
| 1 US01.LTO.210498JA OFFS [28] Library 2020-04-20 09:49 H2:46:48 | 1 US01.LTO.210498L6 OFFS [28] Library 2020-04-20 09:49 H2:46:48 |
| 2 US01.LTO.210701JA OFFS [37] Library 2020-04-20 09:49 H2:46:48 | 2 US01.LTO.210701L6 OFFS [37] Library 2020-04-20 09:49 H2:46:48 |
| 3 US01.LTO.210959JA OFFS [43] Library 2020-04-20 09:49 H2:46:48 | 3 US01.LTO.210959L6 OFFS [43] Library 2020-04-20 09:49 H2:46:48 |
| 4 US01.LTO.211049JA OFFS [46] Library 2020-04-20 09:49 H2:46:48 | 4 US01.LTO.211049L6 OFFS [46] Library 2020-04-20 09:49 H2:46:48 |
| ------ -------------------- ------------------------------ ------------------------------ ---------------- --------------- -------------------- ------------------------------ | ------ -------------------- ------------------------------ ------------------------------ ---------------- --------------- -------------------- ------------------------------ |
| -------------------- -------------------- ---------- | -------------------- -------------------- ---------- |
| -------------------- -------------------- ---------- | -------------------- -------------------- ---------- |
| |
| </sxh> | </code> |
| | |
| | When the [[variable:start|Variable]] ''TMSSCMDSTRING'' is set before the execution of the [[cli:introduction|Command Line Utilities]] (in this example [[cli:tmss10movelist|TMSS10MoveList]]) it modifies the output from the standard report, to that of a custom string that can include output variables. |
| | |
| | Setting ''TMSSCMDSTRING'' to create an ejection script for a TSM instance, listing all [[object:volume|Volume-ID's]] that need to be ejected for processing and transport to the Vault. |
| | |
| | |
| | |
| | <code> |
| | set TMSSCMDSTRING=checkout libvol DC1_LIB0 $volume-id checklabel=yes remove=yes |
| | </code> |
| | |
| | When [[cli:tmss10movelist|TMSS10MoveList]] is executed, the output will print out the assigned string, exchanging the variable $volume-id with the current [[object:volume|Volume-ID]]. |
| | |
| | The resulting output will now be: |
| | |
| | <code> |
| | checkout libvol DC1_LIB0 210498L6 checklabel=yes remove=yes |
| | checkout libvol DC1_LIB0 210701L6 checklabel=yes remove=yes |
| | checkout libvol DC1_LIB0 210959L6 checklabel=yes remove=yes |
| | checkout libvol DC1_LIB0 211049L6 checklabel=yes remove=yes |
| | </code> |
| | |
| | |
| | ===== Variables ===== |
| |
| | Variables available include: |
| | * $customer-id |
| | * $media-id |
| | * $volume-id |
| |
| {{tag>environmental_variables reports update_doco | {{tag>environmental_variables reports update_doco |