Академический Документы
Профессиональный Документы
Культура Документы
Overview
BusinessObjects Enterprise and Crystal Reports Server XI R1 and R2 do
not currently have the capability to send objects to secure FTP (File
Transfer Protocol) destinations out of the box. This document outlines
how to implement a solution.
Contents
INTRODUCTION ............................................................................................ 1
SENDING SCHEDULED OBJECTS TO A SECURE FTP LOCATION ....................... 1
Configuring the Job Servers.........................................................................1
Creating a schedule-based event ..................................................................1
Creating a program to perform a secure FTP ..............................................1
Sample Program.bat file contents ................................................................. 2
Sample script.scr file contents ....................................................................... 2
Sample answerfile.txt contents...................................................................... 3
8/29/2007 11:47 AM
Introduction
This document outlines how to implement a solution to send objects to
secure FTP destinations. The final solution involves a two-step process:
scheduling the object with events to an unmanaged disk location, then
scheduling a program object with events to perform the secure FTP.
boe_xi_r2_sending_scheduled_objects_to_secure_FTP.pdf
Page 1
running the program has not accepted this previously, the question on
whether or not to accept the key will have to be acknowledged by piping
in an answer file to the program. If the key has already been accepted by
the account, having the answer file in place will not affect the transfer.
Examples of the program, script file and answer file are in the next
sections.
NOTE
8/29/2007 11:47 AM
Ascii - to change the default ftp transfer method from binary to ascii
to remove unwanted control characters
boe_xi_r2_sending_scheduled_objects_to_secure_FTP.pdf
Page 2
The FTP may have a limit per user as to the number of records they are able to transfer
that may need to be increased for larger reports.
NOTE
If you need an answer file, you will have to pipe it into your program PSFTP command, so
that it reads as follows:
The program should be run manually in a cmd window before uploading to ensure it can
complete successfully. Program Job Server logs on the server will not have any
information on a program failure, just that it failed.
8/29/2007 11:47 AM
boe_xi_r2_sending_scheduled_objects_to_secure_FTP.pdf
Page 3
Remember the time (hour) you select, as this comes into play later. In the example
0200hrs is used.
This is where the schedule time of the report job is important. If the report job is
scheduled at 0200hrs, schedule this program object to run at 0159hrs, so that the event
schedule poll is running before the report schedule kicks off. The event schedule must be
polling before the report job runs in order to note the success.
3. In the Available Events list, select the schedule event you created.
4. Click the Add > button to add it to the Events to wait for list.
5. Click the Schedule button.
8/29/2007 11:47 AM
boe_xi_r2_sending_scheduled_objects_to_secure_FTP.pdf
Page 4
4. The program job schedule notes the success, and runs the FTP
program.
5. The FTP program calls the script file to put the file to the destination
server.
6. If necessary, the program also pipes in an answer file to answer the
"Do you want to accept this key?" question posed by the destination
server.
8/29/2007 11:47 AM
boe_xi_r2_sending_scheduled_objects_to_secure_FTP.pdf
Page 5