IBM E16RMLL-I - Tivoli Storage Manager Implementation Manual page 514

Implementation guide
Table of Contents

Advertisement

compression application to combine and or compress a bunch of smaller files
into one big file of the required size.
equal the total size that you are trying to move—this will skew your benchmarks.
The next task is to automate an FTP logon and push/pull this file from the Tivoli
Storage Manager client to the Tivoli Storage Manager server. This is cleverly
done by creating an FTP script that will:
1. Connect to the FTP daemon on the Tivoli Storage Manager server.
2. Push a file over to the Tivoli Storage Manager server.
3. Pull the file from the Tivoli Storage Manager server to the local system.
4. Delete the file on the Tivoli Storage Manager server after the pull.
5. Log off.
Example 15-1 and Example 15-1 show two typical FTP scripts. The first one is
for Microsoft platforms and the second is for UNIX platforms. With minor
modifications, you can get this code to work on your own platforms.
Example 15-1 FTP sample script for Windows
@echo off
echo open 9.48.202.28
echo user username password >> $ftp$.cmd
echo bin
rem echo hash
echo cd <targetdirectory> >> $ftp$.cmd
echo dir
echo put <samplefile> >> $ftp$.cmd
echo get <samplefile> >> $ftp$.cmd
echo del <samplefile> >> $ftp$.cmd
rem echo dir
echo bye
FTP.EXE -n -s:$ftp$.cmd
del $ftp$.cmd
Example 15-2 Sample FTP script for UNIX
ftp -n TSM-Server <<- EOF!
user username password
cd <targetdirectory>
put <samplefile>
get <samplefile>
del <samplefile>
bye
EOF!
484
IBM Tivoli Storage Manager Implementation Guide
Do not
> $ftp$.cmd
>> $ftp$.cmd
>> $ftp$.cmd
>> $ftp$.cmd
>> $ftp$.cmd
>> $ftp$.cmd
try to push multiple smaller files that

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tivoli storage manager

Table of Contents