Scheduling an Automatic File Transfer

To set up files to be transferred automatically, perform the following procedure. It is recommended that you schedule transfers according to the following guidelines:

Transferring large numbers of files does not impact the processing performance of the LSMS, but it can impact network performance. This feature is designed for insignificant network degradation for up to 10 configured remote locations with up to 600 transferred files.

  1. Log in to the active server as lsmsadm.
  2. Enter the following command (for more information about the format of this command, see “autoxfercfg”):

    $LSMS_DIR/autoxfercfg

    The following menu is displayed:

    Select one of the following menu options:
    1) Display valid remote locations
    2) Add new remote location
    3) Remove remote location
    4) Display all scheduled transfers
    5) Add new scheduled transfer
    6) Remove scheduled transfer
    7) Exit
    

  3. Enter 5.

    Output similar to the following displays:
    Enter filespec:
    Enter remote machine name: 
    Enter remote directory: 
    Enter FTP port [21]: 
    Enter transfer time (HHMM): 
    Run (O)nce, (D)aily, (W)eekly: 
    Enter day of the week: (SU,MO,TU,WE,TH,FR,SA):
    

  4. Type the desired values in all four fields, and then press Return.

    For the time, use the twenty-four hour notation, where 11 p.m is represented as 2300. To specify multiple files, you can use a wildcard character (*) in file names. For example, to set up a weekly transfer of the file haEvents.err in the /var/TKLC/lsms/logs directory every Tuesday morning at 1:30 a.m, type the following values, as shown in bold, and press Return:
    Enter filespec:  /var/TKLC/lsms/logs/haEvents.err
    Enter remote machine name:  lnp3
    Enter remote directory:  /common/logs
    Enter FTP port [21]:  80
    Enter transfer time (HHMM):  0130
    Run (O)nce, (D)aily, (W)eekly:  W
    Enter day of the week: (SU,MO,TU,WE,TH,FR,SA):  TU
    
    Output similar to the following displays to verify your input. If the display agrees with your input, type y, as shown in bold, and press Return:
    SMTWHFS HHMM Filespec                                       Remote
      *     0230 /var/TKLC/lsms/logs/haEvents.err        lnp3:/common/logs
    Is this correct (y/n)?  y
    
    The following output displays:
    Automatic transfer successfully scheduled.
    <hit any key to continue>
    

  5. After you have pressed any key, the output displayed in step 3 is displayed again.

    If you desire to perform other functions, enter a number and follow the procedure described in one of the other sections that describe this feature. For a list of the sections, Managing Automatic File Transfers.

  6. If you do not need to perform any other function, type 7.