!--------------------------------------------------------------------
!
!      CDBCPY RESOURCE FILE
!
!       This file is used to define various values for the calibration
!       file retrieval command, CDBCPY.
!
!--------------------------------------------------------------------
!                          REVISION HISTORY
!--------------------------------------------------------------------
!  MOD             PR
! LEVEL   DATE   NUMBER    User  Description
! ----- -------- ------    ------ -------------------------------------
!  000  11/01/96 32416     mswam  Initial version
!  001  02/17/97 33145     MSwam  Add NETCPY_MAIL_FILE.
!  002  05/29/97 34023.2   MSwam  Add OUTPATH (reqd by EVNT pkg)
!  003  05/29/97 33423.3   MSwam  Remove MINBLOCKS and OUTPATH
!                                 (application does disk space check)
!  004  05/26/98 35570     MSwam  Port to UNIX
!  005  09/15/98 35570_04  MSwam  Change exit codes
!  006  09/06/98 36860     MSwam  Change to OSF poller
!  007  11/13/98 36860_02  MSwam  remove logfile resource
!  008  06/24/99 38324     WMiller Set ENV vars
!  009  08/02/99 38834_02  MSwam  Add USE_RSH_RCP
!  010  11/09/01 44616     MSwam  Trigger P1 next
!  011  01/14/02 44949     Slowinski  Comment out firewall
!       01/24/02 44616     MSwam  Set time rank = 1
!  012  04/22/02 44741     WMiller add ^CL to COMMAND
!       05/15/03 48141     MSwam   add cleandata entries
!       02/18/05 51570     Sontag  Handle unexpected error statuses
!       12/05/05 42283     Sontag  Some items need not be ENV. vars
!       03/16/10 64274     MSwam   adjust TEMP_DIR for Linux
!       06/30/10 65423     MSwam   Use netcopy/SFTP
!--------------------------------------------------------------------
!
COMMAND  = 'cdbcpy.sh ^CL'
TASK     = <xpoll -p $PATH_FILE -r cdbcpy>
!
CLASS       = cdb
DESCRIPTION = 'CDBS File transfer process'
SYSTEM      = CDBS
!
OSF_RANK           = 1
OSF_TRIGGER1.CP    = w          ! Need a 'Wait' flag to proceed
OSF_TRIGGER1.DATA_ID = ref

OSF_PROCESSING.CP  = p          ! Set the processing flag to 'Processing'

OSF_NORMAL.CP      = c          ! Normal: Completed this process
OSF_NORMAL.AR      = w          ! Normal: Waiting for next process

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

POLLING_TIME       = 60         !required
XPOLL_ERROR_COUNT  = 20         !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.03 = OSF_NORMAL
XPOLL_STATE.05 = OSF_ERROR 
XPOLL_STATE.07 = OSF_ERROR
XPOLL_STATE.09 = OSF_ERROR
XPOLL_ERROR.CP = x              ! handle entirely unexpected failure cases
!
! entries for controlling cleanup by cleandata
DATA_DELETE_LOCATION.01 = cdbs_input_dir
DATA_DELETE_FILTER.01   = <OSF_DATASET>.cat
DATA_DELETE_LOCATION.02 = cdbs_input_dir
DATA_DELETE_FILTER.02   = <OSF_DATASET>.trl
!
REMOTE_MACHINE          = cdbs_machine
REMOTE_FILESPEC         = cdbs_rmt_directory
LOCAL_FILESPEC          = cdbs_input_dir
REMOTE_LOGIN            = cdbs_login
DISK_SLOP_PERC          = 3
DELETE_AFTER_COPY       = yes  !after copy wipe out the copies on UNIX source
ROLLBACK_PARTIAL_COPY   = yes
TEMP_DIR                = /tmp/
PUT_OR_GET              = GET
