TapeTrack Documentation

Because there is more to tape management than you ever realized

User Tools

Site Tools


cli:tmss10batchloader

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
cli:tmss10batchloader [2019/11/05 01:34] – [Example] Scott Cunliffecli:tmss10batchloader [2025/01/21 22:07] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== TMSS10BatchLoader ====== ====== TMSS10BatchLoader ======
 +
 +TMSS10BatchLoader creates [[object:customer|Customer]], [[object:media|Media]] and [[object:repository|Repositories]] by loading a Configuration file into the TapeTrack Database.
  
 ===== Synopsis ===== ===== Synopsis =====
  
 ''TMSS10BatchLoader [-c configuration file] [-S logonstring]'' ''TMSS10BatchLoader [-c configuration file] [-S logonstring]''
- 
-===== Description ===== 
- 
-''TMSS10BatchLoader'' creates [[object:customer|Customer]], [[object:media|Media]] and [[object:repository|Repositories]] by loading a configuration file into the TapeTrack Database. 
  
 ===== Options ===== ===== Options =====
Line 14: Line 12:
   * ''-S'' Logon string argument sets the [[cli:server_argument|Server logon information]].   * ''-S'' Logon string argument sets the [[cli:server_argument|Server logon information]].
  
 +
 +{{page>cli:fi}}
 ===== Editable Fields ===== ===== Editable Fields =====
  
Line 38: Line 38:
 ==== 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:support_details|Accessing Technical Support]] page.+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:support_details|Accessing Technical Support]] page.
  
 ==== Exit Statuses ==== ==== Exit Statuses ====
Line 55: Line 57:
 === Configuration File === === Configuration File ===
  
-Configuration file to create two Customers with Attributes:+Configuration file to create two [[object:customer|Customers]] with Attributes:
  
 Customer 0001 Customer 0001
Line 75: Line 77:
  
  
-<sxh+<code
-setup= +  setup= 
-+  
-   customers= +     customers= 
-   +     
-      {  +        {  
-          id="US01"; description="New York Data Center"; +            id="US01"; description="New York Data Center"; 
- +   
-          media= +            media= 
-          +            
-             {  +               {  
-                 id="LTO"; description="LTO Cartridge"; +                   id="LTO"; description="LTO Cartridge"; 
- +   
-                 repositories= +                   repositories=
-                 ( +
-                     { id="LIBR"; description="Library"; type=3; next="OFFS"; }, +
-                     { id="OFFS"; description="Iron Mountain"; type=2; next="LIBR"; }, +
-                     { id="DEST"; description="Destroyed"; type=6; }, +
-                     { id="HOLD"; description="Legal hold"; type=4; } +
-                 ) +
-             }, +
-             {  +
-                 id="3490"; description="IBM 3490 Cartridge"; +
- +
-                 repositories= +
-                 ( +
-                     { id="LIBR"; description="Library"; type=3; next="OFFS"; }, +
-                     { id="OFFS"; description="Iron Mountain"; type=2; next="LIBR";+
-                 ) +
-                 +
-          ) +
-      }, +
-      {  +
-          id="US02"; description="Los Angeles Data Center"; +
- +
-          media= +
-          ( +
-             {  +
-                 id="LTO"; description="LTO Cartridge"; +
- +
-                 repositories= +
-                 ( +
-                     { id="LIBR"; description="Library"; type=3; }, +
-                     { id="OFFS"; description="Iron Mountain"; type=2; } +
-                 ) +
-             }, +
-             {  +
-                 id="3490"; description="IBM 3490 Cartridge"; +
- +
-                 repositories=+
                  (                  (
-                     { id="LIBR"; description="Library"; type=3; }, +                       { id="LIBR"; description="Library"; type=3; next="OFFS"; }, 
-                     { id="OFFS"; description="Iron Mountain"; type=2; } +                       { id="OFFS"; description="Iron Mountain"; type=2; next="LIBR"; }, 
-                 +                       { id="DEST"; description="Destroyed"; type=6; }, 
-             }     +                       { id="HOLD"; description="Legal hold"; type=4; } 
-          +                   ) 
-      +               }, 
-   ); +               {  
-}; +                   id="3490"; description="IBM 3490 Cartridge"; 
-</sxh>+   
 +                   repositories= 
 +                   ( 
 +                       { id="LIBR"; description="Library"; type=3; next="OFFS"; }, 
 +                       { id="OFFS"; description="Iron Mountain"; type=2; next="LIBR";
 +                   ) 
 +                   
 +            ) 
 +        }, 
 +        {  
 +            id="US02"; description="Los Angeles Data Center"; 
 +   
 +            media= 
 +            ( 
 +               {  
 +                   id="LTO"; description="LTO Cartridge"; 
 +   
 +                   repositories= 
 +                   ( 
 +                       { id="LIBR"; description="Library"; type=3; }, 
 +                       { id="OFFS"; description="Iron Mountain"; type=2; } 
 +                   ) 
 +               }, 
 +               {  
 +                   id="3490"; description="IBM 3490 Cartridge"; 
 +   
 +                   repositories= 
 +                   ( 
 +                       { id="LIBR"; description="Library"; type=3; }, 
 +                       { id="OFFS"; description="Iron Mountain"; type=2; } 
 +                   
 +               }     
 +            
 +        
 +     ); 
 +  }; 
 +</code>
  
  
 === Command line syntax === === Command line syntax ===
  
-<sxh>TMSS10BatchLoader -S user:-password@localhost -c master.cfg</sxh>+  TMSS10BatchLoader -S user:-password@localhost -c master.cfg 
  
 === Output Results === === Output Results ===
  
-{{cli:tmss10batchloder.output.png}}+{{tmss10batchloder_output.png}}
  
  
 ---- ----
 +
 +=== Configuration Files - Minimising Duplicate Code ===
  
 When creating multiple [[object:customer|Customers]] with identical [[object:media|Media Types]] and/or [[object:repository|Repositories]] it is possible to create a configuration file with these Attributes and include it in the master configuration file to save duplication of code blocks. When creating multiple [[object:customer|Customers]] with identical [[object:media|Media Types]] and/or [[object:repository|Repositories]] it is possible to create a configuration file with these Attributes and include it in the master configuration file to save duplication of code blocks.
Line 158: Line 162:
 <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 the contents of the named file at the point of inclusion.+This directive has the effect of in-lining the contents of the named file at the point of inclusion.
  
 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 170: Line 174:
 == master.cfg == == master.cfg ==
  
-<sxh> +  
-setup= +  setup= 
-+  
-   customers= +     customers= 
-   +     
-      {  +        {  
-          id="US01"; description="New York Data Center"; +            id="US01"; description="New York Data Center"; 
-          @include "include.cfg"     +            @include "include.cfg"     
-      }, +        }, 
-      {  +        {  
-          id="US02"; description="Los Angeles Data Center"; +            id="US02"; description="Los Angeles Data Center"; 
-          @include "include.cfg"   +            @include "include.cfg"   
-      +        
-   ); +     ); 
-}; +  }; 
-</sxh>+
  
 == include.cfg == == include.cfg ==
  
-<sxh> 
-          media= 
-          ( 
-              
-                 id="LTO"; description="LTO Cartridge"; 
  
-                 repositories= +            media= 
-                 +            ( 
-                     { id="LIBR"; description="Library"; type=3; next="OFFS"; }, +               {  
-                     { id="OFFS"; description="Iron Mountain"; type=2; next="LIBR";+                   id="LTO"; description="LTO Cartridge"; 
-                 +   
-             }, +                   repositories= 
-             {  +                   
-                 id="3490"; description="IBM 3490 Cartridge";+                       { id="LIBR"; description="Library"; type=3; next="OFFS"; }, 
 +                       { id="OFFS"; description="Iron Mountain"; type=2; next="LIBR";
 +                   
 +               }, 
 +               {  
 +                   id="3490"; description="IBM 3490 Cartridge"; 
 +   
 +                   repositories= 
 +                   ( 
 +                       { id="LIBR"; description="Library"; type=3; next="OFFS"; }, 
 +                       { id="OFFS"; description="Iron Mountain"; type=2; next="LIBR";
 +                   ) 
 +                   
 +            )
  
-                 repositories= 
-                 ( 
-                     { id="LIBR"; description="Library"; type=3; next="OFFS"; }, 
-                     { id="OFFS"; description="Iron Mountain"; type=2; next="LIBR"; } 
-                 ) 
-                 
-          ) 
-</sxh> 
  
  
Line 217: Line 221:
 === Command line syntax === === Command line syntax ===
  
-<sxh>TMSS10BatchLoader -S user:-password@localhost -c master.cfg</sxh>+  TMSS10BatchLoader -S user:-password@localhost -c master.cfg 
  
 === Output Results === === Output Results ===
 {{cli:tmss10batchloder.output_include.png}} {{cli:tmss10batchloder.output_include.png}}
 +
 +
 +--> Changelog
 +[filterrss http://www.tapetrack.com/cgi/changelog.cgi?module=TMSS10BatchLoader]
 +<--
  
cli/tmss10batchloader.1572917647.txt.gz · Last modified: 2025/01/21 22:07 (external edit)