cli:tmss10batchloader
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
cli:tmss10batchloader [2019/02/25 02:03] – Scott Cunliffe | cli:tmss10batchloader [2025/01/21 22:07] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== TMSS10BatchLoader ====== | ====== TMSS10BatchLoader ====== | ||
+ | |||
+ | TMSS10BatchLoader creates [[object: | ||
===== Synopsis ===== | ===== Synopsis ===== | ||
- | '' | + | '' |
- | + | ||
- | ===== Description ===== | + | |
- | + | ||
- | Creates Customer, Media and Repositories by loading a configuration file into the TapeTrack Database. | + | |
===== Options ===== | ===== Options ===== | ||
Line 13: | Line 11: | ||
* '' | * '' | ||
* '' | * '' | ||
+ | |||
+ | |||
+ | {{page> | ||
+ | ===== Editable Fields ===== | ||
+ | |||
+ | * [[object: | ||
+ | * [[object: | ||
+ | * [[object: | ||
+ | * [[object: | ||
+ | * [[object: | ||
+ | * [[object: | ||
+ | * Repository Icon | ||
+ | * {{: | ||
+ | * {{: | ||
+ | * {{: | ||
+ | * {{: | ||
+ | * {{: | ||
+ | * {{: | ||
+ | * {{: | ||
+ | * {{: | ||
+ | * {{: | ||
+ | * [[options: | ||
+ | * [[master: | ||
+ | |||
==== Technical Support ==== | ==== 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 [[common: | + | 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 [[common: | ||
==== Exit Statuses ==== | ==== Exit Statuses ==== | ||
Line 26: | Line 50: | ||
==== Files ==== | ==== Files ==== | ||
+ | |||
+ | **stderr:** Diagnostic messages. | ||
===== Example ===== | ===== Example ===== | ||
Line 31: | Line 57: | ||
=== Configuration File === | === Configuration File === | ||
- | Configuration file to create two Customers with attributes: | + | Configuration file to create two [[object: |
Customer 0001 | Customer 0001 | ||
- | * Customer ID: US01, Customer Description: | + | * [[object: |
- | * Media ID: LTO, Media Description: | + | * [[object: |
- | * Repository ID: LIBR, Repository Description: | + | * [[object: |
- | * Repository ID: OFFS, Repository Description: | + | * [[object: |
- | * Repository ID: DEST, Repository Description: | + | * [[object: |
- | * Repository ID: HOLD, Repository Description: | + | * [[object: |
Customer 0002 | Customer 0002 | ||
- | * Customer ID: US02, Customer Description: | + | * [[object: |
- | * Media ID: 3490, Media Description: | + | * [[object: |
- | * Repository ID: LIBR, Repository Description: | + | * [[object: |
- | * Repository ID: OFFS, Repository Description: | + | * [[object: |
- | * | + | |
- | < | + | |
- | setup= | + | |
- | { | + | |
- | | + | |
- | ( | + | |
- | { | + | |
- | id=" | + | |
- | media= | + | {{: |
- | ( | + | |
- | { | + | |
- | | + | |
- | | ||
- | ( | ||
- | { id=" | ||
- | { id=" | ||
- | { id=" | ||
- | { id=" | ||
- | ) | ||
- | }, | ||
- | | ||
- | | ||
- | | ||
- | ( | ||
- | { id=" | ||
- | { id=" | ||
- | ) | ||
- | | ||
- | ) | ||
- | }, | ||
- | { | ||
- | id=" | ||
- | | + | < |
- | ( | + | setup= |
- | | + | { |
- | | + | |
- | + | ( | |
- | | + | { |
+ | id=" | ||
+ | |||
+ | | ||
+ | ( | ||
+ | | ||
+ | | ||
+ | |||
+ | | ||
( | ( | ||
- | { id=" | + | { id=" |
- | | + | { id=" |
- | | + | { id=" |
- | | + | { id=" |
- | | + | ) |
- | | + | }, |
- | + | { | |
- | | + | |
- | | + | |
- | | + | |
- | | + | ( |
- | | + | { id=" |
- | | + | { id=" |
- | ) | + | ) |
- | } | + | |
- | | + | ) |
- | }; | + | }, |
- | </sxh> | + | { |
+ | id=" | ||
+ | |||
+ | media= | ||
+ | ( | ||
+ | { | ||
+ | | ||
+ | |||
+ | | ||
+ | ( | ||
+ | { id=" | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | ) | ||
+ | } | ||
+ | | ||
+ | }; | ||
+ | </code> | ||
=== Command line syntax === | === Command line syntax === | ||
- | <sxh>TMSS10BatchLoader -S user: | + | |
=== Output Results === | === Output Results === | ||
- | {{cli: | + | {{tmss10batchloder_output.png}} |
---- | ---- | ||
- | When creating multiple Customers with identical Media Types and/or Repositories it is possible to create a configuration file with these attributes | + | === Configuration Files - Minimising Duplicate Code === |
+ | |||
+ | When creating multiple | ||
To create two customers, US01 and US02, with: | To create two customers, US01 and US02, with: | ||
- | * Media ID: LTO, Media Description: | + | * [[object: |
- | * Media ID: 3490, Media Description: | + | * [[object: |
- | * Repository ID: LIBR, Repository Description: | + | * [[object: |
- | * Repository ID: OFFS, Repository Description: | + | * [[object: |
<note tip>A configuration file may “include” the contents of another file using an include directive. | <note tip>A configuration file may “include” the contents of another file using an include directive. | ||
- | This directive has the effect of inlining | + | This directive has the effect of in-lining |
An include directive must appear on its own line in the input. It has the form: | An include directive must appear on its own line in the input. It has the form: | ||
Line 139: | Line 171: | ||
=== Configuration Files === | === Configuration Files === | ||
+ | |||
+ | == master.cfg == | ||
+ | |||
+ | |||
+ | setup= | ||
+ | { | ||
+ | | ||
+ | ( | ||
+ | { | ||
+ | id=" | ||
+ | @include " | ||
+ | }, | ||
+ | { | ||
+ | id=" | ||
+ | @include " | ||
+ | } | ||
+ | ); | ||
+ | }; | ||
+ | |||
== include.cfg == | == include.cfg == | ||
- | <sxh> | ||
- | media= | ||
- | ( | ||
- | | ||
- | | ||
- | repositories= | + | media= |
- | | + | ( |
- | | + | { |
- | | + | |
- | | + | |
- | | + | repositories= |
- | | + | |
- | | + | |
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | | ||
+ | ( | ||
+ | { id=" | ||
+ | { id=" | ||
+ | ) | ||
+ | | ||
+ | ) | ||
- | | ||
- | ( | ||
- | { id=" | ||
- | { id=" | ||
- | ) | ||
- | | ||
- | ) | ||
- | </ | ||
- | == master.cfg == | ||
- | <sxh> | ||
- | setup= | ||
- | { | ||
- | | ||
- | ( | ||
- | { | ||
- | id=" | ||
- | @include " | ||
- | }, | ||
- | { | ||
- | id=" | ||
- | | ||
- | } | ||
- | ); | ||
- | }; | ||
- | </ | ||
=== Command line syntax === | === Command line syntax === | ||
- | <sxh>TMSS10BatchLoader -S user: | + | |
=== Output Results === | === Output Results === | ||
{{cli: | {{cli: | ||
+ | |||
+ | |||
+ | --> Changelog | ||
+ | [filterrss http:// | ||
+ | <-- | ||
cli/tmss10batchloader.1551060200.txt.gz · Last modified: 2025/01/21 22:07 (external edit)