!--------------------------------------------------------------------
!
!      CDBPS2 RESOURCE FILE
!
!
!	This file is used to define various values for the calibration
!	update command CDBPS2.
!
!--------------------------------------------------------------------
!                          REVISION HISTORY
!--------------------------------------------------------------------
!  MOD             PR
! LEVEL   DATE   NUMBER    User  Description
! ----- -------- ------    ------ -------------------------------------
!       11/09/01 44616     MSwam   first version
!       01/24/02 44616     MSwam  Set time rank = 1  
!       04/22/02 44741     WMiller add ^CL to COMMAND
!       11/15/02 46981     MSwam   add DO_COPY parameter
!       04/11/03 48141     MSwam   move pause to separate stage
!       05/06/04 48141     MSwam   add cleandata entries for trailer
!       02/18/05 51570     Sontag  Handle unexpected error statuses
!       03/16/10 64274     MSwam   adjust TEMP_DIR for Linux
!       12/10/10 65423     MSwam   use ftpcopy for remote sites
!--------------------------------------------------------------------
!
COMMAND                 = 'cdbpsh.sh ^CL'
TASK                    = <xpoll -p $PATH_FILE -r cdbps2>
!
CLASS = cdb
DESCRIPTION = 'CDBS Push a delivery to remote site 2'
SYSTEM = CDBS
!
PASSWORD = REQUIRED
PASSWORD_PROMPT = remote2_prompt
!
TIME_RANK          = 1            ! time trigger once to validate passwd
DELTA_TIME         = 999:00:00:00

OSF_RANK           = 2
OSF_TRIGGER1.P2    = w          ! Need a 'Wait' flag to proceed
OSF_TRIGGER1.DATA_ID = ref

OSF_PROCESSING.P2  = p          ! Processing

OSF_NORMAL.P2      = c     ! Normal: Completed this process.
                           ! NOTE: No further stages are triggered
                           !       since this process runs in parallel with P1.
                           !       Further triggering is handled by cdbps1.

OSF_ERROR.P2       = e          ! Error:  Set the error flag

POLLING_TIME       = 60         !required
XPOLL_ERROR_COUNT  = 1          !this many XPOLL errors will cause the
                                !process to go ABSENT
!
! Valid exit codes for COMMAND that allow XPOLL to continue.
! (The labels are not used for TIME events)
XPOLL_STATE.00 = OSF_NORMAL
XPOLL_STATE.01 = OSF_ERROR
XPOLL_ERROR.P2 = x              ! handle entirely unexpected failure cases

! specifies cleanup of trailer file by cleandata
DATA_DELETE_LOCATION.01     = outgoing_remote2_dir
DATA_DELETE_FILTER.01       = <OSF_DATASET>.trl

ENV.DO_COPY                 = YES   !if anything but YES, copy is skipped
ENV.CATALOG_FILE_EXT        = .cat  !file extension for catalogs
ENV.CDB_IN_DIR              = outgoing_remote2_dir
ENV.CDB_TEMP_DIR            = /tmp/  ! Use "/" for UNIX
!
ENV.RMT_MACHINE             = remote2_machine
ENV.RMT_MACHINE_TYPE        = UNIX
ENV.RMT_LOGIN               = remote2_login
ENV.RMT_DIRECTORY           = remote2_directory
ENV.DISK_SLOP_PERC          = 3
ENV.TEMP_DIR                = /tmp/
ENV.FILE_TYPE               = BINARY
ENV.PUT_OR_GET              = PUT
