cookbook:networker
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
cookbook:networker [2018/09/19 03:22] – [Synchronization] Scott Cunliffe | cookbook:networker [2025/01/23 03:50] (current) – [Example Synchronization Definition] Gerard Nicol | ||
---|---|---|---|
Line 3: | Line 3: | ||
[[https:// | [[https:// | ||
+ | ===== Data Extraction From Networker ===== | ||
+ | |||
+ | The first step in Synchronizing your Networker Library with TapeTrack is to extract the Volume data from your Networker instance. | ||
+ | |||
+ | Using the administrative tool mminfo, the Volume data needs to be extracted from the Networker save sets and exported into CSV file format. | ||
+ | |||
+ | {{mminfo_extract.png}} | ||
===== The mminfo command ===== | ===== The mminfo command ===== | ||
Line 9: | Line 16: | ||
To get a report that is suitable for the TapeTrack Sync command, the following minimum arguments should be used: | To get a report that is suitable for the TapeTrack Sync command, the following minimum arguments should be used: | ||
- | <sxh plain;> | + | <code plain;> |
mminfo -xc, -a -r " | mminfo -xc, -a -r " | ||
- | </sxh> | + | </code> |
==== Example mminfo output ==== | ==== Example mminfo output ==== | ||
- | <sxh plain;> | + | === Output With Suffix === |
+ | |||
+ | <code plain;> | ||
volume, | volume, | ||
000000L6, | 000000L6, | ||
Line 25: | Line 34: | ||
000006L6, | 000006L6, | ||
000007L6, | 000007L6, | ||
- | </sxh> | + | </code> |
+ | === Output Without Suffix === | ||
+ | |||
+ | <code plain;> | ||
+ | volume, | ||
+ | 000000, | ||
+ | 000001, | ||
+ | 000002, | ||
+ | 000003, | ||
+ | 000004, | ||
+ | 000005, | ||
+ | 000006, | ||
+ | 000007, | ||
+ | </ | ||
==== Post-processing ==== | ==== Post-processing ==== | ||
Line 34: | Line 56: | ||
It possible for NetWorker barcodes to be missing the LTO L-Suffix. | It possible for NetWorker barcodes to be missing the LTO L-Suffix. | ||
- | It is always recommended that where possible volumes | + | It is always recommended that where possible volumes |
- | - The Media ID value if it includes the suffix. | + | - The Media-ID value if it includes the suffix. |
- | - Adding an appropriate suffix to the Media ID based upon the value of the Media Type field. | + | - Adding an appropriate suffix to the Media-ID based upon the value of the Media Type field. |
- | - Adding an appropriate suffix based upon the range of the Media ID. | + | - Adding an appropriate suffix based upon the range of the Media-ID. |
- Using TapeTrack' | - Using TapeTrack' | ||
===== Synchronization ===== | ===== Synchronization ===== | ||
- | Synchronization with TapeTrack is performed by calling the [[cli: | + | Synchronization with TapeTrack is performed by calling the [[cli: |
- The CSV file produced by pre-processing the mminfo output. | - The CSV file produced by pre-processing the mminfo output. | ||
- | - Command line arguments that instruct the program how to process volumes. | + | - Command-line arguments that instruct the program how to process volumes. |
- A synchronization definition file that instructs the program how to interpret the mminfo output. | - A synchronization definition file that instructs the program how to interpret the mminfo output. | ||
+ | |||
+ | {{networker_sync.png}} | ||
==== Example Command Line Arguments ==== | ==== Example Command Line Arguments ==== | ||
- | <sxh> | + | <code> |
- | TMSS10Sync -d NetWorker.ttidef -a -S user: | + | TMSS10Sync -d Volume.ttidef -a -S user: |
- | </sxh> | + | </code> |
Where: | Where: | ||
* '' | * '' | ||
* '' | * '' | ||
- | * '' | + | * '' |
- | * '' | + | * '' |
+ | ==== Example Synchronization Definition ==== | ||
- | To interpret the output in the file we use a definition file (default.ttidef) which reads the data in the Networker file, line by line, and parses the information which TMSS10Sync then uses to update the volumes location (and other data as specified) in the TapeTrack Server. | + | < |
- | + | # | |
- | ===== default.ttidef ===== | + | # Set the Customer and Media as literal values as they never change |
- | + | # | |
- | default.ttidef file sample with code to: | + | SetLiteral(CUSTOMER, " |
- | * Set CSV file delimiter (2) | + | SetLiteral(MEDIA, "LTO"); |
- | * Exclude any string that starts with barcode (5) | + | # |
- | * Set customer ID to US01 (8) | + | # Set the delimiter to a CSV |
- | * Set media ID to LTO (9) | + | # |
- | * Set default repository to LIBR (12) | + | |
- | * extract volume ID from column 1, length 8 characters (15) | + | |
- | * extract volume description from column 6, length 50 characters (18) | + | |
- | * If description contains the string | + | |
- | + | ||
- | <sxh plain;> | + | |
- | # Set CSV delimiter | + | |
SetCSVDelimiter("," | SetCSVDelimiter("," | ||
- | + | # | |
- | # Skip any line that begins with barcode | + | # Skip any line that begins with string volume |
- | AddString(EXCLUSION, | + | AddString(EXCLUSION, |
- | + | # | |
- | # Set customer ID and media ID to sync with | + | # Set the Description |
- | setLiteral(CUSTOMER, " | + | # |
- | setLiteral(MEDIA, " | + | Extract(DESCRIPTION, 6, 20, 0); |
- | + | RemoveSpaces(DESCRIPTION); | |
- | # All volumes initially set to library | + | # |
- | setLiteral(REPOSITORY, | + | # Get the Volume-ID from the report |
- | + | ||
- | # Extract | + | |
Extract(VOLUME, | Extract(VOLUME, | ||
+ | # | ||
+ | # Get the Repository from a translated location | ||
+ | Extract(REPOSITORY, | ||
+ | RemoveSpaces(REPOSITORY); | ||
+ | # | ||
+ | # Send any volume from the pool **offsite** to OFFS repository, all others to LIBR | ||
+ | AddTranslation(REPOSITORY, | ||
+ | AddTranslation(REPOSITORY, | ||
- | # Extract volume Description from column 6 (up to fifty characters long) | + | </ |
- | Extract(DESCRIPTION, | + | |
- | + | ||
- | # Send any volume from the pool **offsite** to OFFS repository | + | |
- | AddTranslation2(REPOSITORY, | + | |
- | </sxh> | + | |
- | + | ||
- | + | ||
- | ===== Sync Information ===== | + | |
- | + | ||
- | Create a batch file with code to run Networkers mminfo command and then TMSS10Sync with the required parameters to input the report.csv file and default.ttidef file. Running with the -M command will place the Sync in dump mode, which allows you to check the output from the process without executing any alterations in the TapeTrack Server. | + | |
- | + | ||
- | Sample batch file to run mminfo, pass the information to TMSS10Sync and output a dump of information. | + | |
- | <sxh plain;> | + | |
- | mminfo -xc, -a -r " | + | |
- | + | ||
- | TMSS10Sync -M < report.csv > stdout.txt 2> stderr.txt | + | |
- | </ | + | |
- | + | ||
- | When you are happy with the output, remove the -M attribute and insert -S attribute and access credentials for the TMSS10Sync command line. Adding an attribute -a will add any new volumes in Networker not present in TapeTrack. | + | |
- | + | ||
- | <sxh plain;> | + | |
- | mminfo -xc, -a -r " | + | |
- | TMSS10Sync -S user: | ||
- | </ | ||
+ | <- : | ||
+ | {{tag> cookbook}} |
cookbook/networker.1537327334.txt.gz · Last modified: 2025/01/21 22:07 (external edit)