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 02:59] – [Networker Sync Cookbook] 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 ==== | ||
<note important> | <note important> | ||
- | 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. | + | ==== Barcodes ==== |
+ | It possible for NetWorker barcodes | ||
- | ===== default.ttidef ===== | + | It is always recommended that where possible volumes are loaded into TapeTrack with their L-Suffix, and this suffix can be established by: |
+ | - 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 based upon the range of the Media-ID. | ||
+ | - Using TapeTrack' | ||
- | default.ttidef file sample with code to: | + | ===== Synchronization ===== |
- | * Set CSV file delimiter (2) | + | |
- | * Exclude any string that starts with barcode (5) | + | |
- | * Set customer ID to US01 (8) | + | |
- | * 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;> | + | Synchronization with TapeTrack is performed by calling the [[cli: |
- | # Set CSV delimiter | + | |
- | SetCSVDelimiter(" | + | |
- | # Skip any line that begins with barcode (header) | + | - The CSV file produced by pre-processing the mminfo output. |
- | AddString(EXCLUSION, | + | - Command-line arguments |
+ | - A synchronization definition file that instructs the program how to interpret the mminfo output. | ||
- | # Set customer ID and media ID to sync with | + | {{networker_sync.png}} |
- | setLiteral(CUSTOMER, | + | |
- | setLiteral(MEDIA, | + | |
- | # All volumes initially set to library | + | ==== Example Command Line Arguments ==== |
- | setLiteral(REPOSITORY, | + | |
- | # Extract | + | < |
- | Extract(VOLUME, | + | TMSS10Sync -d Volume.ttidef -a -S user: |
+ | </ | ||
- | # Extract volume Description from column 6 (up to fifty characters long) | + | Where: |
- | Extract(DESCRIPTION, | + | * '' |
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
- | # Send any volume from the pool **offsite** to OFFS repository | ||
- | AddTranslation2(REPOSITORY, | ||
- | </ | ||
+ | ==== Example Synchronization Definition ==== | ||
- | ===== Sync Information ===== | + | <code plain;> |
- | + | # | |
- | 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. | + | # Set the Customer |
- | + | # | |
- | Sample batch file to run mminfo, pass the information | + | SetLiteral(CUSTOMER, " |
- | <sxh plain;> | + | SetLiteral(MEDIA, |
- | mminfo -xc, -a -r " | + | # |
- | + | # Set the delimiter | |
- | TMSS10Sync | + | # |
- | </ | + | SetCSVDelimiter(" |
- | + | # | |
- | 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. | + | # Skip any line that begins with string |
- | + | AddString(EXCLUSION, 0, " | |
- | <sxh plain;> | + | # |
- | mminfo -xc, -a -r "volume,barcode,family,type,location,pool" | + | # Set the Description to the Pool Name |
+ | # | ||
+ | Extract(DESCRIPTION, 6, 20, 0); | ||
+ | RemoveSpaces(DESCRIPTION); | ||
+ | # | ||
+ | # Get the Volume-ID from the report | ||
+ | Extract(VOLUME, | ||
+ | # | ||
+ | # Get the Repository from a translated location | ||
+ | Extract(REPOSITORY, | ||
+ | RemoveSpaces(REPOSITORY); | ||
+ | # | ||
+ | # Send any volume | ||
+ | AddTranslation(REPOSITORY, " | ||
+ | AddTranslation(REPOSITORY, *, "LIBR" | ||
- | TMSS10Sync -S user: | + | </code> |
- | </sxh> | + | |
- | ===== Automating The Sync Process ===== | ||
- | Once the Sync process is set up and running correctly, the batch file can be run automatically every hour (or at a time frame that suits) through windows scheduler to keep TapeTrack up to date. | + | <- : |
+ | {{tag> cookbook}} |
cookbook/networker.1537325973.txt.gz · Last modified: 2025/01/21 22:07 (external edit)