Documente Academic
Documente Profesional
Documente Cultură
AutoSys is an automated job control system for scheduling, monitoring and reporting. An AutoSys job is any single command, executable, script, or NT batch file. AutoSys job definition contains a variety of qualifying attributes, including the conditions specifying when and where a job should be run.
There are the two methods to create job definitions: Using the AutoSys Graphical User Interface (GUI). Using the AutoSys Job Information Language (JIL) through a command-line interface.
TCS GE Confidential
TCS GE Confidential
JOB Definition Name Starting Conditions Alarms Restart Conditions Current status Start time End time Exit code
DEPENDS ON
TIME
Current State
COMMAND Command to execute File to source Machine to run on Standard output files Standard input file
FILE WATCHER
CONTAINER
Box
TCS GE Confidential
TCS GE Confidential
Box jobs are containers that hold other jobs. A box job can be used to organize and control process flow. The box itself performs no actions, although it can trigger other jobs to run. An important feature of this type of job is that boxes can be put inside of other boxes. Default Box Job Behavior: Some important rules to remember about boxes are Jobs run only once per box execution. Jobs in a box will start only if the box itself is running. As long as any job in a box is running, the box remains in RUNNING state; the box cannot complete until all jobs have run. By default, a box will return a status of SUCCESS only when all the jobs in the box have run and the status of all the jobs is "success. By default, a box will return a status of FAILURE only when all jobs in the box have run and the status of one or more of the jobs is "failure." Unless otherwise specified, a box will run indefinitely until it reaches a status of SUCCESS or FAILURE. Changing the state of a box to INACTIVE changes the state of all the jobs in the box to INACTIVE.
TCS GE Confidential
TCS GE Confidential
TCS GE Confidential
TCS GE Confidential
RESTART: The job was unable to start due to hardware or application problems, and has been scheduled to restart. QUE_WAIT: The job can logically run (that is, all the starting conditions have been met), but there are not enough machine resources available.
ON_HOLD: This job is on hold and will not be run until it receives the JOB_OFF_HOLD event. ON_ICE: This job is removed from all conditions and logic, but is still defined to AutoSys. Operationally, this condition is like deactivating the job. It will remain on ice until it receives the JOB_OFF_ICE event.
TCS GE Confidential
TCS GE Confidential
Status Abbreviations: The following table lists the abbreviations used in the ST (status) column of the autorep report, and gives the status for each abbreviation.
AC - ACTIVATED FA - FAILURE IN - INACTIVE OH - ON_HOLD OI - ON_ICE QU - QUE_WAIT RE - RESTART RU - RUNNING ST - STARTING SU - SUCCESS TE - TERMINATED
TCS GE Confidential
TCS GE Confidential
Note:
The difference between "on hold" and "on ice" is that when an "on hold" job is taken off hold, if its starting conditions are already satisfied, it will be scheduled to run, and it will run. On the other hand, if an "on ice" job is taken "off ice," it will not start, even if its starting conditions are already satisfied. This job will not run until its starting conditions reoccur. The other major distinction is that jobs downstream from the job that is "on ice" will run as though the job succeeded. Whereas, all dependent jobs do not run when a job is on "on hold"nothing downstream from this job will run.
Some basic Autosys Commands: This will display a list of jobs with complete details with box/jobname, last/latest run date & time, status, exit code, etc. autorep j <job_name> example: autorep j gpag0201f_orders_load_daily_inf
TCS GE Confidential
TCS GE Confidential
Viewing JIL code for any Autosys job: autorep j <job_name> -q example: autorep j gpag0201f_orders_load_daily_inf q To check the dependent jobs: job_depends -c -j <job_name> example: job_depends -c -j gpag0201f_orders_load_daily_inf To get all the jobs which are running at the time when this command is fired: autorep -j gp%inf| egrep "RU|FA To obtain the information of previous runs autorep j <job_name> -r -1 example: autorep -j gpag0201f_orders_load_daily_inf -r -1
TCS GE Confidential
TCS GE Confidential
TCS GE Confidential
TCS GE Confidential
TCS GE Confidential
TCS GE Confidential
Option I GUI Link For Autosys http://gcoasys02.corporate.ge.com/autosys/login Job Monitoring & Reports: GUI to Monitor the Jobs Reporting Through GUI Dashboard for Functional Users: In Progress
Option II Autosys Command Prompt Go to Remote Login Server > Start > Unicenter Autosys Cmd Prompt > Enter the command autorep j autosys jobname
TCS GE Confidential
TCS GE Confidential
FAQs
What if I don't want to run the ETL cycle for the given day? How do I delay a box? How do I delay the job within a box? How do I cancel a box? How do I cancel a job within a box? How do I run a failed/errored out job or box on the same day? How do re run any job/box on the same day?
TCS GE Confidential
TCS GE Confidential
3.
What is Autosys?
Limitations of BO DI Scheduler
Distinctive Features
Offerings by GIS
GIS Customers
TCS GE Confidential
TCS GE Confidential
What is Autosys?
CA-Autosys is a batch monitoring and scheduling tool for the Open Systems environment.
It uses several supplemental products to provide a complete cross platform scheduling and monitoring solution for GIS.
TCS GE Confidential
TCS GE Confidential
Limitations of BO DI Scheduler:
Jobs can only be scheduled based on Day/Time Jobs can not be scheduled on the Success or Failure of Particular Job Lots of manual intervention is needed to complete the Data Warehouse Load Continuous Monitoring efforts required Longer Job Cycle Time due to Manual Intervention
TCS GE Confidential
TCS GE Confidential
TCS GE Confidential
TCS GE Confidential
TCS GE Confidential
TCS GE Confidential
TCS GE Confidential
TCS GE Confidential
TCS GE Confidential
TCS GE Confidential
TCS GE Confidential
TCS GE Confidential
1. 2. 3. 4. 5.
TCS GE Confidential
TCS GE Confidential
TCS GE Confidential
TCS GE Confidential
Log in to Autosys Command Prompt Start->All Programs->Computer Associates ->Unicenter->Unicenter Autosys ->Unicenter Autosys Command Prompt
TCS GE Confidential
TCS GE Confidential
GUI Link For Autosys http://gcoasys02.corporate.ge.com/autosys/login Job Monitoring & Reports: GUI to Monitor the Jobs Reporting Through GUI Dashboard for Functional Users: In Progress
TCS GE Confidential
TCS GE Confidential
TCS GE Confidential
TCS GE Confidential
Various Boxes giving Status of Jobs in them ( Green Success, Yellow Ice, Red- Failure ) Boxes are used to bring together similar jobs
TCS GE Confidential
TCS GE Confidential
Jobs in Boxes can be seen by double clicking on Box which gives job details
TCS GE Confidential
TCS GE Confidential
TCS GE Confidential
TCS GE Confidential
To run Informatica job from Autosys we have two shell scripts 1) Normal job not having flat file load /inforprdsec/data/Scripts/exe_workflows.sh SEC_SC_PSI w_Sec_SC_PSI_Intransit_STG /inforprdsec/data/Scripts/exe_workflows.sh : -- The shell script that is called. Take two params Param 1 -- SEC_SC_PSI Folder Name Param 2 -- w_Sec_SC_PSI_Intransit_STG --Workflow Name 1) Job execution having flat file. /inforprdsec/data/Scripts/exe_workflow_flat_file.sh ILX_TMP_EMEA_OVERDUE_DEMAND.ipf SEC_EMEA_Miscellaneous w_SEC_EMEA_Miscellaneous_Tmp_Emea_Overdue_Demand /inforprdsec/data/Scripts/exe_workflow_flat_file.sh ---------- Shell script used Takes 3 param Param 1 --- ILX_TMP_EMEA_OVERDUE_DEMAND.ipf -Parameter File of the Job Param 2 -SEC_EMEA_Miscellaneous --Folder Param 3 -- w_SEC_EMEA_Miscellaneous_Tmp_Emea_Overdue_Demand -Work flow name What happens in the shell script on High level is Based on the parameter file name this select is run select FIELD02_VALUE_TXT ||'~'|| FTP_DIRECTORY_NAM ||'~'|| FTP_ARCHIVE_DIRECTORY_NAM || '~' || EMAIL_MISSING_FILES_NAM ||'~'|| FTP_FILE_EXTENSION_NAM ||'~'|| FIELD03_VALUE_TXT from tb_etl_ctl_parameters where PARAMETERFILE_NAME = '$PARAMETER_FILE_NAME';
TCS GE Confidential
TCS GE Confidential
Then this section FILE_PAT_TMP=`awk -F~ '{print $1}' $PARAM_TMP` Pattern Of the File SOURCE_DIR=`awk -F~ '{print $2}' $PARAM_TMP` Source Direcotry TARGET_DIR=`awk -F~ '{print $3}' $PARAM_TMP` FTP_ARCHIVE_DIRECTORY_NAM Target Directory MAIL_LIST=`awk -F~ '{print $4}' $PARAM_TMP` EMAIL_MISSING_FILES_NAM --- Mailing List FILE_EXTN=`awk -F~ '{print $5}' $PARAM_TMP` FTP_FILE_EXTENSION_NAM -- File extension FTP_FLAG=`awk -F~ '{print $6}' $PARAM_TMP` flag decides if FTP from DI is req or not If FTP from DI is req then following is run
${SEC_SCRIPTS}/ftp_get_flat_files.sh ${PARAMETER_FILE_NAME} "${FILE_PAT}" Shell Script Name Parameter File Name File Pattern This shell script basically opens FTP session Pulls file and does Archive of the file in DI server. After the FTP part is complete below is done # Loop through the files in the directory for CURR_FILE in `ls ${FILE_PAT} 2>/dev/null` --- Loops thru the file list to be loaded do FCNT=`expr $FCNT + 1` --- Takes care Count
TCS GE Confidential
TCS GE Confidential
------------- Below part updates the Parameter Table with File name and file count ${SQLPLUS} -s $DBUSER/$DBPASS@$DBNAME <<EOF > ${ORA_OUT} ---- All these $dbuser things come from Env_Var_Config.sh WHENEVER SQLERROR EXIT 1; WHENEVER OSERROR EXIT 1; update tb_etl_ctl_parameters set FIELD04_VALUE_TXT = '$CURR_FILE' , FIELD05_VALUE_TXT = '$FCNT' where PARAMETERFILE_NAME = '$PARAMETER_FILE_NAME'; commit; EXIT; EOF And then runs the Informatica Workflow # Call the workflow to execute the job echo "Invoking the workflow ${INFORMATICA_FOLDER}.${WORKFLOW_NAME}" >> ${LOG_FILE} $SEC_SCRIPTS/exe_workflows.sh $INFORMATICA_FOLDER $WORKFLOW_NAME >> ${LOG_FILE}
TCS GE Confidential
TCS GE Confidential