180
Autosys - Computer Associates (CA) Job Scheduling and Troubleshooting Introduction System Components How it Works Defining Writing Jobs Box Jobs Running JIL Troubleshooting Handy Aliases CA Abbreviations Autosys CheatSheet Autosys Configuration Configuration Autosys man autosys Calulate AutoSys time man time0 Command-time0 Check system status man autoflags man autoping man autosyslog man chase man chk_auto_up Command-autoflags Command-autoping Command-autosyslog Command-chase Command-chk_auto_up Check install status man as_info Command-as_info Convert cron to JIL man cron2jil Command-cron2jil Define jobs or machines man jil Command-jil Define calendars man autocal_asc Command-autocal_asc Event commands man sendevent man get_auto_event Command-sendevent Command-get_auto_event Generate an AutoSys virtual machine man autodwp Command-autodwp Maintain database

Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

Embed Size (px)

Citation preview

Page 1: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

Autosys - Computer Associates (CA)

Job Scheduling and Troubleshooting

• Introduction • System Components • How it Works • Defining Writing Jobs • Box Jobs • Running JIL • Troubleshooting • Handy Aliases • CA Abbreviations • Autosys CheatSheet

Autosys Configuration

• Configuration

Autosys

• man autosys

Calulate AutoSys time • man time0 • Command-time0

Check system status • man autoflags • man autoping • man autosyslog • man chase

• man chk_auto_up

• Command-autoflags • Command-autoping • Command-autosyslog • Command-chase

• Command-chk_auto_up Check install status

• man as_info • Command-as_info Convert cron to JIL

• man cron2jil • Command-cron2jil Define jobs or machines

• man jil • Command-jil Define calendars

• man autocal_asc • Command-autocal_asc Event commands

• man sendevent

• man get_auto_event

• Command-sendevent

• Command-get_auto_event Generate an AutoSys virtual machine

• man autodwp • Command-autodwp Maintain database

Page 2: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• man archive_events • man autoaggr • man autotrack • man clean_files • man job_delete • man xql

• man zql

• Command-archive_events • Command-autoaggr • Command-autotrack • Command-clean_files • Command-job_delete • Command-xql

• Command-zql Manage security

• man as_safetool • man autosec_test

• man autosys_secure

• Command-as_safetool • Command-autosec_test

• Command-autosys_secure Manage time zone table

• man autotimezone • Command-autotimezone Monitor jobs

• man monbro

• man autosyslog

• Command-monbro

• Command-autosyslog Open a Unicenter Service Desk ticket

• man auto_svcdesk • Command-auto_svcdesk Report job dependencies and conditions

• man job_depends • Command-job_depends Report job status

• man autorep • man autostatad • man autostatus

• man monbro

• Command-autorep • Command-autostatad • Command-autostatus

• Command-monbro Start Scheduler

• man eventor • Command-eventor Start Application Server

• man as_server • Command-as_server

Commands

• Command Lines • Check Servers Status • Command-unisrvcntr • Command-astail • Monitoring TGPROD Jobs • Monitoring TGPROD Logs • Backups

References

• CA::AutoSys - Interface to CA's AutoSys job control • CA AutoSys Workload Automation • CA AutoSys®Workload Automation r11

Page 3: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• Autosys - A Job Scheduling tool • IT Automation • Autosys Connection

Autosys Introduction

• Unicenter AutoSys Job Management (JM) is an automated job control system for scheduling, monitoring, and reporting. These jobs can reside on any Unicenter AutoSys JM -configured machine that is attached to a network. A job is any single command, executable, script. Each job definition contains a variety of qualifying attributes, including the conditions specifying when and where a job should be run. The question is how to define a job? The two methods you can use to create job definitions are as follows:

• Using the Graphical User Interface (GUI). The GUI lets you interactively set the attributes that describe when, where, and how a jobbshould run. You create job definitions using the GUI Control Panel and the dialogs you can launch from it. The fields in the GUIs correspond to the AutoSys JIL sub -commands and attributes.

• Using the Job Information Language (JIL) through a command -line interface.JIL is a specification language, with its own syntax, that is used to describe when, where,and how a job should run. When you enter the jil command, you get the jil command prompt, at which you can enter the job definitions one line at a time using this special language. When you exit the jil command -line interface, the job definition is loaded into the database. Alternatively, you can enter the definition as a text file and redirect the fileto the jil command. In this case, the jil command activates the language processor, interprets the information in the text file, and loads this information in the database.

Autosys System ComponentsAutosys Scheduler has a Server/Client Architecture and requires a 3rd Party Database or the bundled version of Sybase.

• Event Server — The database containing the job definitions and events. • Event Processor — The daemon which reads from the Event Server and

sends thejob stream to the Remote Agent • Remote Agent — The Remote Agent is the client component of AutoSys and

will execute the command as defined and write the result back to the Event Server.

• Shadow Processor — The daemon running on the server which takes over from the Event Processor if it is interrupted.

• 3rd Machine — An AutoSys Remote Agent that acts as the tie breaker if the EventProcess and Shadow Process lose connectivity with each other.

Page 4: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

Autosys How it WorksStarting a job (that is, executing a command) on a client machine.

• Working through this example will be very helpful for understanding how Unicenter AutoSys JM processes jobs.

• Note: Typically, the event processor and the event server are installed on the same server machine (along with a required remote agent), and other remote agents are installed on separate client machines.

• The event processor scans the event server for the next event to process. If no event is ready, the event processor scans again in five seconds.

• The event processor reads from the event server that an event is ready. If the event is a STARTJOB event, the job definition and attributes are retrieved from the Event Server, including the command and the pointer (full path name on the client machine) to the profile file to be used for the job. In addition, for jobs running on Windows machines, the event processor retrieves from the database the user IDs and passwords required to run the job on the client machine.

• The event processor processes the event. If the event is a STARTJOB, the event processor attempts to establish a connection with the remote agent on the client machine, and passes the job attributes to the client machine. The event processor sends a CHANGE_STATUS event marking in the event server that the job is in STARTING state.

• On a UNIX machine, the inetd invokes the remote agent. On a Windows machine, the remote agent logs onto the machine as the user, defined as the job’s owner, using the user IDs and passwords passed to it from the event processor.

• The remote agent sends an acknowledgment back to the event processor indicating that it has received the job parameters. The socket connection is terminated. At this point, the event processor resumes scanning the event server database, looking for events to process.

• The remote agent starts a process and executes the command in the job definition.

• The remote agent issues a CHANGE_STATUS event marking in the event server that the job is in RUNNING state.

• The client job process runs to completion, then returns an exit code to the remote agent and quits.

• The remote agent sends the event server a CHANGE_STATUS event corresponding to the completion status of the job and passes back an exit code, using the communications facilities of the database. If the return status is SUCCESS, the remote agent deletes the log file in its temporary file directory (usually tmp) on the client machine (if so specified in the AutoSysconfiguration file on UNIX). The remote agent quits

Autosys Defining Writing Jobs• Once you are done with your job definition, you can submit it to the Autosys

database using the following two methods1.

Page 5: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

o Using GUI2. o Using JIL

• The second method was shown here. • Submit the job by redirecting a JIL script file to the jil command, for example:

jil < jil_script

• Let us start with a job template and explanation with line by line • • ------------------------------start of Sample

job-----------------------------• insert_job: template • job_type: c• box_name: box1• command: ls -l• machine: localhost• owner: user@machine• permission: gx,ge,wx,we,mx,me• date_conditions: 1• days_of_week: all• start_times: "15:00, 14:00"• condition: s (job1)• description: "description field"• n_retrys: 12• box_terminator: 1• job_terminator: 1• std_out_file: /tmp/std_out• std_err_file: /tmp/std_err• min_run_alarm: 5• max_run_alarm: 10• alarm_if_fail: 1• max_exit_success: 2• profile: /tmp/.profile• ------------------------------end of sample job

-------------------------------

Line by line explanation for the above job template:

• The first line is to define the job name and type of the job • Box_name: is to have this job in a box with other jobs. This box job can able

to run all the jobs defines in it. • Command: is the action which you want the Autosys job to perform • Machine: where you want to execute the job • Owner: with what user you want the job execution on the machine • Permissions: permissions for the job • Date conditions: like any condition on the date to run the job • Days of week: on which days of the week you want the job to execute . All is

for all days of the week • Start time: the time at which the job should run • Condition: when the job should start (like after success of another job) • Description: description like what the job is doing • N_retrys: no of the times the job should try before exit/fail • Std_out_file: output of the job messages. You can define a custom location

Page 6: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• Std_err_file: errors messages of the job . You can define a custom location • Min_run_alarm: to give an alarm if the job runs less than that time • Max_run_alarm: to give an alarm if the job runs more than that time • Alarm_if_fail: to give an alarm if job fails for any reason • Profile: where you can define the variables used in the job

Job Status Dependencies

• You can define a starting condition for a job so that it starts when another job returns a specific status. For example, you might specify that JobB starts when JobA returns a SUCCESS status and JobC starts when JobB returns a SUCCESS status.

• To define a starting condition based on a job's Unicenter AutoSys JM status, use the following format in the condition attribute:

o status(job_name) o status - Specifies one of the following: o Done - Indicates that the job you are defining may run when

job_name's status is SUCCESS, FAILURE, or TERMINATED. o Failure - Indicates that the job you are defining may run when

job_name's status is FAILURE. o Notrunning - Indicates that the job you are defining may run when

job_name's status is anything except RUNNING. Set status to notrunning to keep the dependent job from running at the same time as job_name.

o Success - Indicates that the job you are defining may run when job_name's status is SUCCESS.

o Terminated - Indicates that the job you are defining may run when job_name's status is TERMINATED. A status of TERMINATED means the job was killed.

• These statuses are internal Unicenter AutoSys JM settings, so you need not know their actual values.

• You can use the max_exit_success attribute to control the value of the SUCCESS status for a specific job. When you define the max_exit_success attribute, a job that exits with an exit code less than or equal to the specified value is treated as a success. FAILURE means the job exited with an exit code higher than the max_exit_success value. All other status settings are internally defined and you cannot control them.

• You can use either uppercase or lowercase characters to define conditions. However, you cannot mix case.

Autosys Box JobsWhat is a box or logic behind it

• Use boxes to group jobs with like scheduling parameters, not as means of grouping jobs organizationally. For example, if you have a number of jobs that run daily at 1:00 a.m.,you could put all these jobs in a box and assigning a daily start condition to the box. However, a variety of account processing jobs with diverse starting conditions should not be grouped in the same box.

Page 7: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

How box logic works?

• 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 (via the sendevent command)

changes the state of all the jobs in the box to INACTIVE.

What Happens when a Box Runs

• As soon as a box starts running, all the jobs in the box (including sub-boxes) change to status ACTIVATED, meaning they are eligible to run. (Because of this, jobs in boxes do not retain their statuses from previous box cycles.) Then each job is analyzed for additional starting conditions. All jobs with no additional starting conditions are started, without any implied ordering or prioritizing. Jobs with additional starting conditions remain in the ACTIVATED state until those additional dependencies have been met. The box remains in the RUNNING state as long as there are activated or running jobs in thebox. If a box is terminated before a job in it was able to start, the status of that job will change directly from ACTIVATED to INACTIVE.

• Note: Jobs in a box cannot start unless the box is running. However, once the job starts running, it will continue to run even if the box is later stopped for some reason.

Time Conditions in a Box

• Each job in a box will run only once per box execution. Therefore, you should not define more than one time attribute for any job in a box because the job will only run the first time. If you want to put a job in a box, but you also want it to run more than once, you must assign multiple start time conditions to the box itself, and define no time conditions for the job. Remember also that the box must be running before the job can start. Do not assign a start time for a job in a box if the box will not be running at that time. If you do, the next time the box starts the job will start immediately.

Example of a box job # Example of Jobsinsert_job: Nightly_Downloadjob_type: b date_conditions: yes days_of_week: all start_times: 02:00

insert_job: Watch_4_filejob_type: f

Page 8: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

box_name: Nightly_Downloadwatch_file: /download/mainframe/sales.rawmachine: gateway

insert_job: filter_datajob_type: c box_name: Nightly_Downloadcondition: success(Watch_4_file) command: filter_mainframe_infomachine: gatewaystd_in_file: /download/mainframe/sales.raw std_out_file: /download/mainframe/sales.sql std_err_file: /log/filter_mainframe_info.err

insert_job: update_DBMSjob_type: c box_name: Nightly_Downloadcondition: success(filter_data) machine: gatewaycommand: isql -U mutt -P jeffstd_in_file: /download/mainframe/sales.sql

Autosys Running JIL• After a job definition has been submitted to the database, it will be started

according to the starting parameters specified in its JIL script. That is, the event processor will continually poll the database and when it determines that the starting parameters have been met, it will run t he job.

• Manually starting the job: o sendevent -E STARTJOB -J job_name

Job Status Codes

• While the job is running it goes through different states and can seen if you are monitoring the job, the job state codes and meanings are given in the following table.

Job State - Status

• INACTIVE - The job has not yet been processed. Either the job has never been run, or its status was intentionally altered to turn off its previous completion status.

• ACTIVATED - The top-level box that this job is in is now in the RUNNING state, but the job itself has not started yet.

• STARTING - The event processor has initiated the start job procedure with the remote agent.

• RUNNING - The job is running. If the job is a box job, this value simply means that the jobs within the box can be started (other conditions permitting). If it is a command or file watcher job, the value means that the process is actually running on the remote machine.SUCCESSThe job exited with an exit code equal to or less than the maximum exit code for success.By default, only the exit code 0 is interpreted as success. However, a range of values up to the

Page 9: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

maximum exit code for success can be reserved for each job to be interpreted as success. If thejob is a box job, this value means that all thejobs within the box have finished with thestatus SUCCESS (the default), or the Exit Condition for Box Success evaluated to true. (These exit conditions are discussed further in later sections.)

• FAILURE - The job exited with an exit code greater than the maximum exit code for success. By default,any number greater than zero is interpreted as failure. If the job is a box job, a FAILURE status means either that at least one job within the box exited with the status FAILURE (the default), or that the Exit Condition for Box Failure evaluated to true. Unicenter AutoSys JM issues an alarm if a job fails.

• TERMINATED - The job terminated while in the RUNNING state. A job can be terminated if a user sends a KILLJOB event or if it was defined to terminate if the box it is in failed. If the job itself fails, it has a FAILURE status, not a TERMINATED status. A job may also be terminated if it has exceeded the maximum runtime(term_run_time attribute, if one was specified for the job), or if it was killed from thecommand line through a UNIX kill command. Unicenter AutoSys JM issues an alarm if a job is terminated.

• 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. Operationally, this condition is like deactivating the job. It will remain on ice until it receives the JOB_OFF_ICE event.

Autosys TroubleshootingSteps to be followed if a job failed:

• Give autorep –j job_name • This gives the job status • Give autorep –j job_name –q • Gives you the job definition. • Check the server name and user under which the job is running • Login to that machine as that user • In the Autosys job definition check for the error log file (std_err_file column) • Open that error log file and check what was wrong • chk_auto_up - checks to see if event processor and the DB are both up. • autoping -m machine - verify that both client & server are correctly

configured. • Check for the license on client machine

Changing job status after rectifying the error:

• sendevent -E FORCE_STARTJOB -J job_name; - this force starts the job • sendevent -E JOB_ON_ICE -J job_name; - to put job on ice

Page 10: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• sendevent -E JOB_OFF_ICE -J job_name; - to take job off ice • sendevent -E JOB_ON_HOLD -J job_name; - to put job on hold • sendevent -E JOB_OFF_HOLD -J job_name; - to take job off hold.

Autosys Handy AliasesHere are some handy aliases to use with autosys... # Send Eventalias -x se='sendevent -E'

# Start Jobalias -x fsj='sendevent -E FORCE_STARTJOB -J'alias -x sj='sendevent -E STARTJOB -J'

# Job Reportar='autorep -w -J '

fsj='sendevent -E FORCE_STARTJOB -J'hold='sendevent -E JOB_ON_HOLD -J 'ice='sendevent -E JOB_ON_ICE -J '

jd='job_depends -c -w -J 'killjob='sendevent -E KILLJOB -J 'offhold='sendevent -E JOB_OFF_HOLD -J 'office='sendevent -E JOB_OFF_ICE -J 'se='sendevent -E'sj='sendevent -E STARTJOB -J'success='sendevent -E CHANGE_STATUS -s SUCCESS -J 'terminate='sendevent -E CHANGE_STATUS -s TERMINATED -J '

Display JIL (Job Instruction Language):autorep -w -J <jobname> -q

Load JIL:jil < JIL_source

Find unique commands currently being used:autorep -J PARTIALJOBNAME% -q | grep "command:" | awk -F: '{print $2}'|awk '{print $1}' | sort -u > /tmp/cmds.txt

Find all command linesautorep -J job_TG% -q | grep "command:" | awk -F: '{print $2}'

Meaning of AutoSys status:STATUS AUTOSTATUS MeaningRU RUNNING RunningST STARTING StartingSU SUCCESS SuccessFA FAILURE FailureTE TERMINATED TerminatedOI ON_ICE On IceIN INACTIVE InactiveAC ACTIVATED ActivatedRE RESTART RestartOH ON_HOLD On HoldQW QUE_WAIT Queue WaitRD Refresh Dependencies

Page 11: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

RF Refresh Filewatcher

Forecast report from date to infinity:job_depends -t -J ALL -F "mm/dd/yyyy"

Display all jobs scheduled to run between these two dates:job_depends -t -J ALL -F 01/03/2009 10:01 -T 02/15/2009 19:01

Job Forecast Report for 1st February 2009job_depends -t -J ALL -F 02/01/2009 00:01 -T 02/01/2009 23:59

check if the event procesor is up and runningchk_auto_up

Display list of available timezones:autotimezone -l

Get version information:autoflags -a

View Remote Agent log:autosyslog -J jobname

AutoSys Unix xwindows GUI control panelautosc &

Check Database connections:autoping -m machinename -D

Autosys CA AbbreviationsComputer Associates Abbreviations

Name Full description

CA Computer Associate

JM Job Management

etrust IAM eTrust® Identity and Access Management

eTrust AC eTrust® Access Control

Unicenter AutoSys JM Unicenter® AutoSys® Job Management

Unicenter CA-7 Unicenter® CA-7™ Job Management

Unicenter CA-Jobtrac Unicenter® CA-Jobtrac® Job Management

Unicenter CA-Scheduler Unicenter® CA-Scheduler® Job Management

Unicenter DSM Unicenter® Desktop and Server Management

Unicenter EM Unicenter® Event Management

Unicenter MCC Unicenter® Management Command Center

Unicenter MP Unicenter® Management Portal

Unicenter NSM Unicenter® Network and Systems Management

Unicenter SD Unicenter® Service Desk

Unicenter UUJMA Unicenter® Universal Job Management Agent

Unicenter WCC Unicenter® Workload Control Center

Page 12: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

CAICCI CA Integrated Common Communication Interface

JIL Job Information Language

CLI Command Line Interface

• Unicenter AutoSys JM is an industry-leading job management system that provides unparalleled reliability to support your mission-critical applications, enterprise-wide. Designed for distributed environments, Unicenter AutoSys JM delivers event-driven scheduling, centralized real-time monitoring and programmable error recovery — providing reliability and scalability to your production environment.

• eTrust™ - Embedded Identity and Access Management (eTrust IAM) lets you centrally manage user access privileges and quickly deploy pre-configured basic security policies. eTrust IAM makes sure that the right people have access to the right information. It actively secures access to data and applications on the system servers throughout your organization.

• Unicenter WCC is a Web interface that can be used to manage, schedule, and monitor Unicenter AutoSys JM jobs. A dashboard, Workload Control Center, provides all of the information you need about your jobs in one centralized location. You can create and manage jobs, box jobs, and job flows using Unicenter WCC. You can also easily verify the status of jobs and set up alerts.

AutoSys CheatsheetAutoSys: UNIXCd to the "autouser" ($AUTOUSER) directory and "." (or source) the "ksh" file. Ex: ". ./autosys.ksh.machine" After installing AutoSys, first make sure that the DB is up and running. Check the installation by running the command chk_auto_up to verify connection to the DB and event processor.Enter the KEYS through "gatekeeper", add keysRun the "autosys_secure" command to set the AutoSys Edit and Exec Super users (and also to enter NT users/passwords)Start the Event Processor by running the command "eventor"Shutdown AutoSys: "sendevent -E STOP_DEMON"To start the AutoSys GUI set your DISPLAY and run the command "autosc &". NT: Start AutoSys from start->programs->AutoSys-> administrator ->Graphical User Interface ->Command PromptCommand Line Commands:

1. gatekeeper: Allows you to enter the License Keys which allow you to run AutoSys.

2. eventor [-M machine_name] : Starts the event processor.

3. autorep -J [ALL | Job_name] [-q] [> file_name], -d (detail), -r (run number), -o (override), jil < file_na -G (global var report), -M -q for machine definitions.Ex: autorep -J job_name -d autorep -J job_name -d autorep -J job_name -q > file_name queries the DB & save job Dfn. Into a file vi file_name When you want a report of a box use the -L0 option Autorep -J job_name -l1 report on the job for the day -1 (prev day)

4. sendevent -E STARTJOB -J job_name, sendevent -E FORCE_STARTJOB -J job_name, [JOB_ON_ICE, JOB_OFF_ICE, JOB_ON_HOLD, JOB_OFF_HOLD, SET_GLOBAL, STOP_DEMON. . . .] sendevent -E STOP_DEMON - to stop AutoSys (ex: sendevent -E SET_GLOBAL -G "var_name=/home/mydir" to set a var) (ex: sendevent -E SET_GLOBAL -G "var_name=DELETE" to delete a var)]

5. chk_auto_up: checks to see if event processor and the DB are both up.

Page 13: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

6. autoping -m machine: verify that both client & server are correctly configured.

7. cron2jil -f cronfile [-d outdir] [-I incl_file] [-m machine] [-p prefix]

8. jil <CR>To insert a job directly into the DBinsert_job: job.id job_type: cmachine: machine_namecommand: echo testing jil[go | ;] (depending on the DB you are using)Template example: /* ----------------- template ----------------- */insert_job: template job_type: c box_name: box1command: ls -lmachine: localhostowner: lyota01@TANT-A01permission: gx,ge,wx,we,mx,medate_conditions: 1days_of_week: allstart_times: "15:00, 14:00"run_window: "14:00 - 6:00"condition: s (job1)description: "description field"n_retrys: 12term_run_time: 60box_terminator: 1job_terminator: 1std_out_file: /tmp/std_outstd_err_file: /tmp/std_errmin_run_alarm: 5max_run_alarm: 10alarm_if_fail: 1max_exit_success: 2chk_files: /tmp 2000profile: /tmp/.profilejob_load: 25priority: 1auto_delete: 12

9. autosyslog -e: same as tail -f autosys_log_file. This command must be run from the machine where the server resides if used with the -e option. Else it can be used with the -J option to see that job's run log.

10. job_depends: -[c|d|t] -J jobname [-F "mm/dd/yy time"] [-T "mm/dd/yy time"] (Note: It will only print out the first occurrence found)

11. monbro -n monitor_name: Allows you to run from command line monitor/browser programs previously created using the monitor/browser GUI.exec superuser: AUTOSYS superuser

12. autocal_asc full_cal_name: prints, adds & deletes custom calendar definitions.

13. autostatus: Reports the current status of a specific job, or the value of an AutoSys global variable. Ex: autostatus -J job_name, -S instance

14. autotimezone -l : Allows additions, deletions, and queries to the timezones table (-l provides list).

15. autotrack: Tracks & report changes to the AutoSys DB. Ex: autotrack -l 2 (level 2) [sets the tracking level] autotrack -U sys -v (user sys: verbose) To start using the autotrack utility type: autotrack -u to set tracking level 1 or 2. By default it is set to 0. Autotrack -l will list the current tracking level. Options -[J, U, m, F, T, and t] are to request reporting on a specific Job, User, machine, time window (-F -T), and event type (t). Type is used in conjunction w/other parameters. autotrack w/no arguments retrieves information an all events omitting detail. -v option is for verbose.

16. autosys_secure: to change edit, exec superusers, change DB passwd, change remote authentication method.

17. chase [-A|E]: Makes sure that jobs claiming to be running in the client machine are running. The "-E" option restarts the job.

Page 14: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

18. archive_events: to archive events in the DB which are older than x days to prev DB from becoming full.

19. clean_files: Deletes old remote agent log files. It does it by searching the DB for all machines which have had jobs started on them.

20. autostatad: to get the status of a PeopleSoft job. You can define one of the user definable buttons to view PeopleSoft job: Autocons*userButton1Label: Adapter Status

User definable buttons: There are user definable buttons in the operator's console.How to configure: Autocons*userButton1Command: /autosys/bin/autostatad -J $JOB -g & (which allows you to have a command button on the operator's console.)Dependencies:success (job) and s(job_b)failure(job_a) or f (job_b)notrunning (job)terminated(job)exitcode(job) > 5 and exitcode(job_b) != 10value(global_name)=100done(job)Hostscape: Schedule a job to run every x minutes & then go into forecasting. Make that job fail.

• Solid black line: Hostscape can communicate with the remote agent in the client machine.

• Solid red line: Hostscape can't communicate with the remote agent but it can communicate with the internet daemon (inetd) running on that machine..

• Dashed red line: Hostscape can't communicate with the client machine at all. Client is probably down.

• Accessing a variable name: $$GLOBAL_VAR_NAME (unless used in dependency condition with a job definition. If used in the "command" field, you must use the $$)

Tunable Parameters:• $AUTOUSER/config.ACE• $AUTOUSER/autosys.ksh.xxx• /etc/auto.profile• /etc/inetd.conf• /etc/services

Notify.Ace: The alarms to notify on are:(There is an example in $AUTOSYS/install/data/Notify.Ace).

• DB_ROLLOVER• DB_PROBLEM• EP_HIGH_AVAILABILITY• EP_ROLLOVER• EP_SHUTDOWN

Where to go to find the Errors:• $AUTOUSER/out/event_demon.$AUTOSERV

($AUTOUSER/out/event_demon.ACE)• Output from the job definition output & error files• /tmp files created for job_run at client machine• $AUTOSYS/out/DBMaint.out for DB problems• $SYBASE/install/errorlog_$DSQUERY when event server will not start.• NT: AutoNuTc\lib/X11\app-defaults\xpert

AutoSys Maintenance: DBMaint @$AUTOSYS/binOnce a day the Database goes into a maintenance cycle. Every day at 3:00am it runs a program called DBMaint. This is user configurable. The program runs DBstatistics which is found in $AUTOSYS/bin.app-defaults file: /usr/openwin/lib/app-defaults directory. Autocons, Xpert, etc.. ( or: /usr/lib/X11/app-defaults, /autosys/bin/X11/app-defaults)Environment file: /etc./auto.profileC programs: $AUTOSYS/code Where to change AutoSys screen fonts: /usr/openwin/lib/app-defaultsWhere to look for troubleshooting: Chapter 15Summary of commands: Appendix C

Page 15: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

$AUTO_JOB_NAME: when naming a file dynamically using as prefix AutoSys's job name.$AUTORUN: unique identifier for the run of that job$AUTOPID: unique identifier for that job's run number (PID)$JOID: DB identifier for a job. To extract from the DB: select joid from job where job_name=" "Creating a Virtual Machine: insert_machine: virtualtype: v /* default, not required */machine: real_1machine: real_2max_load: 100factor: 0.5 /* used to describe the relative processing power of a machine. Usually between 0.0-1.0*/machine: real_2max_load: 60 /* this is designed to limit the loading of a machine */Load Balancing, Queuing, priorities:insert_job: test_loadmachine: localhostcommand: echo "Test load balancing"job_load: 50priority: 1 /* this only affects queues */Note: For 5.0 we will be using information from ServerVision's towards our load balancer which is composed of 26 categories such as i/o usage, disk usage, CPU usage, etc.Testing: zql zql -U autosys -P autosysNOTES:When a job is stuck in the starting condition this means that the event processor communicated with the remote agent and passed all the information the remote agent ran the job but was not able to communicate to the DB. Once testing is done with AutoSys one should change the default refresh interval for AutoSys. This is so there is less querying to the DB. When AutoSys goes from dual mode to single mode, always run the autobcp command before bringing AutoSys back to dual mode/High Availability. Default behavior for stdout is to always appends. If you want to overwrite the file enter the following, no spaces: ">file.out"Box LogicUse boxes to group jobs with like scheduling parameters, not as means of grouping jobs organizationally. For example, if you have a number of jobs that run daily at 1:00 a.m., you could put all these jobs in a box and assigning a daily start condition to the box. However, a variety of account processing jobs with diverse starting conditions should not be grouped in the same box.Default Box Job BehaviorSome 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." Default SUCCESS is described in Default Box Success and Box Failure on page 5-13.

• 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." Default FAILURE is described in Default Box Success and Box Failure on page 5-13.

• Unless otherwise specified, a box will run indefinitely until it reaches a status of SUCCESS or FAILURE. For a description of how to override this behavior, see Box Job Attributes and Terminators on page 5-6.

• Changing the state of a box to INACTIVE (via the sendevent command) changes the state of all the jobs in the box to INACTIVE.

When you Should Not Use a BoxThe fact that all jobs in a box change status when a box starts running has lead some to use boxes to implement "job cycle" behavior. Be aware that placing jobs in a box to achieve this end may bring with it undesired behavior due to the nature of boxes.Avoid the temptation to put jobs in a box as a short cut for performing events (such as ON_ICE or ON_HOLD) on a large number of jobs at once. You will most likely find that the default behavior of boxes inhibits the expected execution of the jobs you placed in the box.

Page 16: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

Likewise, you should not place jobs in a box solely because you want to run reports on all of them. When you run autorep on a box, you will get a report on the box and all the jobs in the box (unless you use the -L0 option). In addition, if you use wildcarding when specifying a job name, you could get duplicate entries in your report. For example, suppose you have a box named "acnt_box" containing three jobs named "acnt_job1", "acnt_job2", and "daily_rep". If you specify acnt% as the job name for the autorep report, the report will have an entry for the box "acnt_box" and an entry for each job in the box. Then autorep will continue searching for all job names matching the wildcard characters and, thus, will list "acnt_job1" and "acnt_job2" a second time.What Happens when a Box RunsAs soon as a box starts running, all the jobs in the box (including sub-boxes) change to status ACTIVATED, meaning they are eligible to run. (Because of this, jobs in boxes do not retain their statuses from previous box cycles.) Then each job is analyzed for additional starting conditions. All jobs with no additional starting conditions are started, without any implied ordering or prioritizing. Jobs with additional starting conditions remain in the ACTIVATED state until those additional dependencies have been met. The box remains in the RUNNING state as long as there are activated or running jobs in the box.If a box is terminated before a job in it was able to start, the status of that job will change directly from ACTIVATED to INACTIVE.Note o Jobs in a box cannot start unless the box is running. However, once the job starts running, it will continue to run even if the box is later stopped for some reason.Time Conditions in a BoxEach job in a box will run only once per box execution. Therefore, you should not define more than one time attribute for any job in a box because the job will only run the first time. If you want to put a job in a box, but you also want it to run more than once, you must assign multiple start time conditions to the box itself, and define no time conditions for the job. Remember also that the box must be running before the job can start. Do not assign a start time for a job in a box if the box will not be running at that time. If you do, the next time the box starts the job will start immediately.The following example illustrates a scenario that would not work properly if placed in a box."job_a" is defined to run repeatedly until it succeeds. "job_report" has one starting condition-the success of "job_a".How Job Status Changes Affect Box StatusIf a box that is not running contains a job that changes status, as a result of a FORCE_STARTJOB or CHANGE_STATUS event, the new job status could change the status of its container box. A change of status of the box could trigger the start of downstream jobs that are dependent on the box.If a box contained only one job, and the job changed status, the box status would change.

Autosys Configuration• Autosys Unix Configuration File • • cat $AUTOUSER/config.$AUTOSERV•• cat /etc/auto.profile

• Autosys Agent Log files • • ll /opt/CA/UnicenterAutoSysJM/agent/out•• cat /opt/CA/UnicenterAutoSysJM/agent/out/univagent.out• cat /opt/CA/UnicenterAutoSysJM/agent/out/auto_rem.*

• Autosys Event Log files • • ll $AUTOUSER/out•

Page 17: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• cat $AUTOUSER/out/as_server.PRD• cat $AUTOUSER/out/DBMaint.out• cat $AUTOUSER/out/event_demon.PRD•• cat $AUTOUSER/archive•• Variables • • echo $AUTOSYS• /opt/CA/UnicenterAutoSysJM/autosys•• echo $AUTOSERV• PRD•• echo $AUTOUSER• /opt/CA/UnicenterAutoSysJM/autouser.PRD•• ls -lrt $AUTOUSER• total 60• -rw-r--r-- 1 autosys other 8435 Mar 2 2009

config.PRD• -rw-r--r-- 1 autosys other 2944 Mar 2 2009

autosys.sh.abtgqdb• -rw-r--r-- 1 autosys other 3240 Mar 2 2009

autosys.ksh.abtgqdb• -rw-r--r-- 1 autosys other 3238 Mar 2 2009

autosys.env.abtgqdb• -rw-r--r-- 1 autosys other 3238 Mar 2 2009

autosys.csh.abtgqdb• -rw-r--r-- 1 autosys other 3225 Mar 2 2009

autosys.bash.abtgqdb• drwxr-xr-x 2 autosys other 512 Mar 2 2009 archive• drwxr-xr-x 2 autosys other 512 Mar 2 2009 out

• Oracle connection • • cat $ORACLE_HOME/network/admin/tnsnames.ora

Man AutosysAutoSys 1

Unicenter AutoSys JM Commands autosys(8)

NAME autosys, AutoSys, Autosys - Introduction to Unicenter AutoSys Job Management (JM) commands

DESCRIPTION This man page lists the Unicenter AutoSys JM commands in alphabetical order and provides a brief description. Follow- ing the alphabetical list is a task-oriented list, where the commands are listed by Unicenter AutoSys JM task.

To view the man page for any of these commands, type man command_name. Also, typing just the command at the command line prompt displays the usage statement for that command.

Page 18: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

Refer to the Unicenter AutoSys JM Reference Guide for com- plete information on using Unicenter AutoSys JM.

LIST OF COMMANDS archive_events Removes old information from the Unicenter AutoSys JM database and optionally archives the data before delet- ing it.

as_info Lists information about the Unicenter AutoSys JM ins- tallation.

as_safetool Maintains Unicenter AutoSys JM authentication certifi- cates.

as_server Starts a Unicenter AutoSys JM Application Server on an instance.

auto_svcdesk Open a Unicenter Service Desk helpdesk ticket on behalf of an existing Unicenter AutoSys JM job or on behalf of some action that occurred within the Unicenter AutoSys JM environment.

autoaggr Aggregates Unicenter AutoSys JM data into periodic tables, which tables are then used by other programs.

autocal_asc Starts the command-line Unicenter AutoSys JM calendar facility

autoflags Lists information about Unicenter AutoSys JM and the system configuration.

autoping Verifies the connectivity of Unicenter AutoSys (JM) server and client machines.

autorep Reports information from the database about Unicenter AutoSys JM jobs, including run information, overrides, and global variables.

autosec_test Simulates a call to the security subsystem issued by a Unicenter AutoSys JM application for a given secured asset.

autostatad Retrieves the current status of Unicenter Job Manage- ment (JM) Adapter jobs.

autostatus Reports the current status of Unicenter AutoSys JM jobs or global variables.

Page 19: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

autosys_secure Maintains the AutoSys Edit and Exec Superuser owner- ships, as well as the AutoSys database password and the remote authentication methods.

autosyslog Displays Unicenter AutoSys JM scheduler and agent log files.

autotimezone Maintains the Unicenter AutoSys JM ujo_timezones table.

autotrack Tracks changes to the Unicenter AutoSys JM database.

chase Verifies the status of the Unicenter AutoSys JM environment.

chk_auto_up Verifies status of the Unicenter AutoSys JM scheduler and database.

clean_files Removes Unicenter AutoSys JM agent log files.

cron2jil Translates UNIX crontab files into Unicenter AutoSys JM JIL format.

dbstatistics Generates statistics for the Unicenter AutoSys JM data- base.

DBMaint Performs maintenance on the Unicenter AutoSys JM data- base.

eventor Starts the Unicenter AutoSys JM scheduler.

jil Runs the Unicenter AutoSys JM Job Information Language (JIL) processor to add, update, and delete Unicenter AutoSys JM jobs and machines from the command line.

job_delete Cleans a Unicenter AutoSys JM ujo_job_delete database table.

job_depends Reports on Unicenter AutoSys JM job dependencies and conditions.

monbro Runs a Unicenter AutoSys JM monitor or report (browser) previously registered in the database.

sendevent Sends an event to Unicenter AutoSys JM for a variety of purposes, including starting or stopping Unicenter

Page 20: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

AutoSys JM jobs, stopping the scheduler, and setting Unicenter AutoSys JM global variables.

time0 Calculates the Unicenter AutoSys JM time.

xql Provides access to the Sybase database.

zql Provides access to the Oracle database.

TASK LIST Task Command ______________________________________ ______________________

Calulate AutoSys time time0

Check system status autoflags autoping autosyslog chase chk_auto_up

Check install status as_info

Convert cron to JIL cron2jil

Define jobs or machines jil

Define calendars autocal_asc

Event commands sendevent

Generate an AutoSys virtual machine autobwp

Maintain database archive_events autoaggr autotrack clean_files dbstatistics DBMaint job_delete xql zql

Manage security as_safetool autosec_test autosys_secure

Manage time zone table autotimezone

Monitor jobs monbro autosyslog

Open a Unicenter Service Desk ticket auto_svcdesk

Report job dependencies and conditions job_depends

Report job status autorep autostatad autostatus monbro

Page 21: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

Start Scheduler eventor

Start Application Server as_server

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup- port is available 24 hours a day, 7 days a week.

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

SEE ALSO archive_events(8), as_info(8), as_safetool(8), as_server(8), auto_svcdesk(8), autoaggr(8), autobwp(8), autocal_asc(8), autoflags(8), autoping(8), autorep(8), autosec_test(8), autostatad(8), autostatus(8), autosyslog(8), autosys_secure(8), autotimezone(8), autotrack(8), chase(8), chk_auto_up(8), clean_files(8), cron2jil(8), DBMaint(8), dbstatistics(8), eventor(8), get_auto_event(8), jil(8), job_delete(8), job_depends(8), monbro(8), sendevent(8), time0(8), xql(8), zql(8)

Man Time 0AutoSys 1

Unicenter AutoSys JM Commands time0(8)

NAME time0 - Calculates the Unicenter AutoSys Job Management (JM) time

SYNOPSIS time0 [-A auto_time] [-O date_format] [-S]

DESCRIPTION Calculates the internal Unicenter AutoSys JM time and displays it in MM/DD/YYYY hh:mm:ss format.

When you use time0 with no arguments, the current Unicenter AutoSys JM time and date information (auto_time) are displayed.

OPTIONS -A auto_time Converts the internal Unicenter AutoSys JM date and time information to MM/DD/YYYY hh:mm:ss format. You cannot specify -A auto_time if you specify -T date_time.

-O date_format Specifies a format with which to override the MM/DD/YYYY hh:mm:ss format. You must enclose date_format in quotation marks (").

-S Displays the internal Unicenter AutoSys JM tm struc- ture.

Page 22: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

-T date_time Identifies a date and time to convert to the internal Unicenter AutoSys JM format. You cannot specify -T date_time if you specify -A auto_time.

EXAMPLES time0

Display the date and time in Unicenter AutoSys JM auto_time format. The output resembles the following:

CAUAJM I 50096 Current AutoTime(internal): 1121265931

time0 -A 1121265931

Convert the internal Unicenter AutoSys JM date and time information to MM/DD/YYYY hh:mm:ss format. The output resembles the following:

CAUAJM I 50097 External Time: 07/13/2005 07:45:31

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup- port is available 24 hours a day, 7 days a week.

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

SEE ALSO archive_events(8), as_info(8), as_safetool(8), as_server(8), auto_svcdesk(8), autoaggr(8), autodwp(8), autocal_asc(8), autoflags(8), autoping(8), autorep(8), autosec_test(8), autostatad(8), autostatus(8), autosys(8), autosyslog(8), autosys_secure(8), autotimezone(8), autotrack(8), chase(8), chk_auto_up(8), clean_files(8), cron2jil(8), DBMaint(8), dbstatistics(8), eventor(8), get_auto_event(8), jil(8), job_delete(8), job_depends(8), monbro(8), sendevent(8), xql(8), zql(8)

Man AutoflagsAutoSys 1

Unicenter AutoSys JM Commands autoflags(8)

NAME autoflags - Print Unicenter AutoSys Job Management (JM) and system configuration information

SYNOPSIS autoflags [-a] [-d] [-h] [-i] [-n] [-o] [-r] [-v]

DESCRIPTION Print information about Unicenter AutoSys JM and the system configuration.

OPTIONS

Page 23: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

-a Displays all information.

-d Displays the database type: ING for Ingres r3 Open Source, SYB for Sybase, or ORA for Oracle.

-h Displays the host ID.

-i Displays the Unicenter AutoSys JM tape ID number.

-n Displays the hostname.

-o Displays the operating system type.

-r Displays the Unicenter AutoSys JM release number.

-v Displays the Unicenter AutoSys JM version number.

EXAMPLE autoflags -a

Display all Unicenter AutoSys JM and system configura- tion information.

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup- port is available 24 hours a day, 7 days a week.

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

SEE ALSO archive_events(8), as_info(8), as_safetool(8), as_server(8), auto_svcdesk(8), autoaggr(8), autodwp(8), autocal_asc(8), autoping(8), autorep(8), autosec_test(8), autostatad(8), autostatus(8), autosys(8), autosyslog(8), autosys_secure(8), autotimezone(8), autotrack(8), chase(8), chk_auto_up(8), clean_files(8), cron2jil(8), DBMaint(8), dbstatistics(8), eventor(8), get_auto_event(8), jil(8), job_delete(8), job_depends(8), monbro(8), sendevent(8), time0(8), xql(8), zql(8)

Man AutopingAutoSys 1

Unicenter AutoSys JM Commands autoping(8)

NAME autoping - Verifies the connectivity of Unicenter AutoSys Job Management (JM) server and client machines

SYNOPSIS autoping [-m machine|ALL] [-A] [-D]

DESCRIPTION Verifies that the server and client machines are properly configured and communicating successfully. Also, the Remote Agent data connectivity is verified. In dual-server environ- ments, both databases are checked. Optionally, alarms are raised if problems are detected.

Page 24: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

When autoping is executed, the server (the machine from which autoping is issued) establishes a connection with the client machine, which starts a Remote Agent on that machine, and the server waits for the Remote Agent to respond. If successful, the following message is displayed on standard output at the server:

AutoPinging Machine [target_machine_name] AutoPing WAS SUCCESSFUL!

OPTIONS -m machine|ALL the name of the machine to be verified. machine must be a valid host name and must be listed in the /etc/hosts file on the machine from which the command is issued.

ALL checks all machines. To use ALL, machines must first be defined to the database using the JIL insert_machine subcommand. Failure to define a machine before using ALL will result in the following message being displayed:

Could not get list of machines from Database.

-A send an alarm if problems are detected.

-D check the database connections on the specified machine(s). Both databases are checked in a dual server environment.

EXAMPLES autoping -m columbus

Checks whether the machine columbus is properly config- ured for Unicenter AutoSys JM, and that its Remote Agent can function properly.

autoping -m ALL -D

Checks all machines and verifies their database access.

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup- port is available 24 hours a day, 7 days a week.

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

SEE ALSO archive_events(8), as_info(8), as_safetool(8), as_server(8), auto_svcdesk(8), autoaggr(8), autodwp(8), autocal_asc(8), autoflags(8), autorep(8), autosec_test(8), autostatad(8), autostatus(8), autosys(8), autosyslog(8), autosys_secure(8), autotimezone(8), autotrack(8), chase(8), chk_auto_up(8), clean_files(8), cron2jil(8), DBMaint(8), dbstatistics(8), eventor(8), get_auto_event(8), jil(8), job_delete(8), job_depends(8), monbro(8), sendevent(8), time0(8), xql(8), zql(8)

Page 25: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

Man AutosyslogAutoSys 1

Unicenter AutoSys JM Commands autosyslog(8)

NAME autosyslog - Displays Unicenter AutoSys Job Management (JM) log files

SYNOPSIS autosyslog [-e|-J job_name|-s] [-p]

DESCRIPTION Displays the scheduler or agent log file for the specified job. The agent and the scheduler write diagnostic messages to their respective logs as part of their normal operations and in response to detected error conditions.

The scheduler log contains a timestamped history of each event that occurs. Viewing this log is an alternative to monitoring all jobs and all events.

Because the scheduler logs all events it processes and pro- vides a detailed trace of its activities, autosyslog pro- vides valuable information for troubleshooting, and should always be used early in the troubleshooting process.

Using autosyslog to view the scheduler log is the same as issuing the following command:

tail -f $AUTOUSER/out/event_demon.$AUTOSERV

The last 10 lines of the scheduler log file are displayed when you issue autosyslog. The log file is updated continu- ally as processing occurs. To terminate the display of the log, press Ctrl+C in the display window.

autosyslog can be a useful diagnostic tool when jobs fail. This command, when provided with the name of a job, displays the log of the jobs most recent run. Although the agents log file is automatically deleted by default after a successful job run, the log file is not deleted at job completion if the job ended with a FAILURE status.

OPTIONS -e Indicates that the event scheduler log is to be moni- tored. When in this mode, in order to terminate the command, you must press Ctrl+C.

To view the scheduler log, you must execute this com- mand on the machine that is running the scheduler, or on a machine that can access the same $AUTOUSER file system. Also, the $AUTOUSER and $AUTOSERV environment variables must be set the same as it was when the scheduler was run.

-J job_name

Displays the agent log for the job job_name. If you do not run this command on the machine where the job ran,

Page 26: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

autosyslog generates the following error:

*** No remote agent files found for job_name job_name***

To view the agent log, you must execute this command from the machine on which the specified job ran last.

-s Indicates that the application server log is to be mon- itored. When in this mode, in order to terminate the command, you must press Ctrl+C.

-p Specifies to append messages to the output file if any- thing in the profile file failed, if commands were not executed, or environment variables or definitions were not set. For example, if the profile file tried to exe- cute a command (e.g., date) but could not find it, the output file would contain the line:

/bin/sh: date: not found

The -p option is required when you specify -J job_name.

Note: If the CleanTmpFiles parameter in the configura- tion file is on, Unicenter AutoSys JM removes the agent log file upon successful completion of the job. In this case, autosyslog cannot display the log contents of jobs that completed successfully because they do not exist..

EXAMPLES autosyslog -e

View the scheduler log. (Issue the command on the sys- tem where the scheuler is running, or where it ran last.)

autosyslog -J test_install

View the last run of the test_install job (Issue the command on the machine where the test_install job ran.)

autosyslog -j job_name -p

Display the log file first, appending the profile out- put, if there is any. If no profile output file exists, the profile output section is empty.

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup- port is available 24 hours a day, 7 days a week.

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

SEE ALSO archive_events(8), as_info(8), as_safetool(8), as_server(8), auto_svcdesk(8), autoaggr(8), autodwp(8), autocal_asc(8), autoflags(8), autoping(8), autorep(8), autosec_test(8),

Page 27: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

autostatad(8), autostatus(8), autosys(8), autosys_secure(8), autotimezone(8), chase(8), chk_auto_up(8), clean_files(8), cron2jil(8), DBMaint(8), dbstatistics(8), eventor(8), get_auto_event(8), jil(8), job_delete(8), job_depends(8), monbro(8), sendevent(8), time0(8), xql(8), zql(8)

Man ChaseAutoSys 1

Unicenter AutoSys JM Commands chase(8)

NAME chase - Verifies the status of the Unicenter AutoSys Job Management (JM) environment

SYNOPSIS chase [-A] [-E]

DESCRIPTION Verifies the status of jobs that the database indicates are running and checks the associated agents.

The database is also inspected to determine which jobs are in the STARTING or RUNNING state, and on which machine. For each client, chase passes a list of jobs that are supposed to be running there to an agent. The agent then verifies that the processes are running.

For Command jobs running on a UNIX machine, the agent also checks for the pid of the UNIX process. When verifying that the agent is running, chase checks that the agent has a lock on the agent log file. This is more reliable than checking the agent process ID.

Note: If you disable file locking on the client, chase can- not verify if an agent is running. Therefore, ensure that the directory specified by the AutoRemoteDir parameter in the configuration file is on a file system that has file locking enabled.

When the scheduler is started (with the eventor command), chase is automatically invoked. Because chase uses the same mechanism as the scheduler to communicate with the agent machines, it gives an accurate picture of the system state.

Note: The scheduler does not have to be running while chase runs, but the database must be available.

When chase detects errors, the client sends them to standard output. Optional parameters used with chase further deter- mine the actions to take for error conditions. The -A option sends an alarm to alert the user that problems were found. When the -E option is specified, chase forces a FAILURE of jobs that should be running but are not. When the n_retrys attribute is defined, this triggers an automatic restart of the job. The scheduler must be running for chase to automat- ically restart jobs.

Note: When chase cannot connect to an agent machine, it can- not determine the reason. To prevent jobs from being res- tarted when they may already have run, chase does not change

Page 28: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

the status of jobs in this case, even when you run it with the -E option.

The chase command does not automatically restart jobs that are stuck in the STARTING state. Instead, it writes a mes- sage to standard output that manual intervention may be required. Jobs stuck in the STARTING state should not be automatically restarted -- it is possible (for example, due to network problems) that the job may already have run, and its state was not yet communicated to the database. Verify the actual status of these jobs before they are restarted and their status is changed.

It is a good idea to run chase automatically at regular intervals to track problems on the network. For example, if a machine becomes unreachable while running a job, chase will detect that the machine is down and send an alarm. If a user has a monitor running, they are also alerted to the problem.

OPTIONS -A Sends alarms when errors occur.

-E Puts a job in FAILURE status when the job and its agent are not running on the client but the database indi- cates they should be. In this case, the job restarts if the job definition includes the n_retrys attribute.

Note: When you run chase with no options, Unicenter AutoSys JM performs all chase activities and writes the results to standard output, but sends no alarms or job restart events.

EXAMPLE If a job is running longer than expected and you suspect it may have abnormally ended (but still shows as running ), you should run chase. To verify that the job is running, receive an alarm if there is an inconsistency, and restart the job if necessary, enter this:

chase -A -E

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup- port is available 24 hours a day, 7 days a week.

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

SEE ALSO archive_events(8), as_info(8), as_safetool(8), as_server(8), auto_svcdesk(8), autoaggr(8), autodwp(8), autocal_asc(8), autoflags(8), autoping(8), autorep(8), autosec_test(8), autostatad(8), autostatus(8), autosys(8), autosyslog(8), autosys_secure(8), autotimezone(8), autotrack(8), chk_auto_up(8), clean_files(8), cron2jil(8), DBMaint(8), dbstatistics(8), eventor(8), get_auto_event(8), jil(8), job_delete(8), job_depends(8), monbro(8), sendevent(8), time0(8), xql(8), zql(8)

Page 29: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

Man Chk Auto UpAutoSys 1

Unicenter AutoSys JM Commands chk_auto_up(8)

NAME chk_auto_up - Verifies status of the Unicenter AutoSys JM Scheduler and database

SYNOPSIS chk_auto_up [-Q] [-r value]

DESCRIPTION Determines if the Event Server (database) and the scheduler are running. Because the Event Server and the scheduler must both be running for a job to start, chk_auto_up is the first utility you should run when troubleshooting why events or jobs are not processing as scheduled.

chk_auto_up uses the product environment variables to locate the configuration file $AUTOUSER/config.$AUTOSERV, and uses the information to determine the data server and database names. If chk_auto_up completes successfully, the product environment variables and the configuration file are set up correctly.

The chk_auto_up command looks for schedulers defined in the database. If you are running a Shadow Scheduler or Dual Event Servers, chk_auto_up also reports the state of these objects.

OPTIONS -Q Returns the exit code without any descriptive message. This makes the command useful for inclusion in shell scripts. In this case, the return code is sufficient to indicate status. If you omit the -Q option, the command also returns a descriptive message.

-r value Checks one or more of the Unicenter AutoSys JM com- ponents. Using this option the status of the Event Server and/or the Application Server and/or the Scheduler can be checked. The value specified for the -r option determines the component to be checked.

The value can be one of the following: 1 Returns the status of the Event Server(s). 10 Returns the status of the Scheduler(s). 11 Returns the status of the Event Server(s) and the Scheduler(s). This is default if -r is not speci- fied. 100 Returns the status of the Application Server. 101 Returns the status of the Application Server and

Page 30: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

the Event Server(s). 110 Returns the status of the Application Server and the Scheduler(s). 111 Returns the status of the Application Server, Event Server(s), and Scheduler(s).

Running chk_auto_up with no arguments returns one of the follow- ing return codes.

0 No Scheduler is running and no Event Server is running.

1 No Scheduler is running, but the Event Server is running.

2 No Scheduler is running, but the Primary and Dual Event Servers are running.

10 The Scheduler is running, but the Event Server is not running. This could happen if the database password was changed in configuration file but Application Server was not restarted. chk_auto_up prints a detailed error message if it is not able to connect to Event Server.

11 The Scheduler and the Event Server are running.

12 The Scheduler and the Dual Event Servers are run- ning.

20 The Shadow Scheduler running, but the Event Server is not running. This could happen if the database password was changed in configuration file but Application Server was not restarted. chk_auto_up prints a detailed error message if it is not able to connect to Event Server.

21 The Shadow Scheduler and the Event Server are run- ning.

22 The Shadow Scheduler and the Dual Event Servers are running.

30 The Primary and Shadow Schedulers are running, but the Event Server is not running. This could happen if the database password was changed in configura- tion file but Application Server was not res- tarted. chk_auto_up prints a detailed error mes- sage if it is not able to connect to Event Server.

31 The Primary and Shadow Schedulers and the Event Server are running.

32 The Primary and Shadow Schedulers and the Dual Event Servers are running.

40 The Tie-Breaker Scheduler is running, but the Event Server is not running. This could happen if

Page 31: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

the database password was changed in configuration file but Application Server was not restarted. chk_auto_up prints a detailed error message if it is not able to connect to Event Server.

41 The Tie-Breaker Scheduler and the Event Server are running.

42 The Tie-Breaker Scheduler and the Dual Event Servers are running.

50 The Primary Scheduler and Tie-Breaker Scheduler are running, but the Event Server is not running. This could happen if the database password was changed in configuration file but Application Server was not restarted. chk_auto_up prints a detailed error message if it is not able to con- nect to Event Server.

51 The Primary Scheduler, Tie-Breaker Scheduler and the Event Server are running.

52 The Primary Scheduler, Tie-Breaker Scheduler and the Dual Event Servers are running.

60 The Shadow Scheduler and Tie-Breaker Scheduler are running, but the Event Server is not running. This could happen if the database password was changed in configuration file but Application Server was not restarted. chk_auto_up prints a detailed error message if it is not able to connect to Event Server.

61 The Shadow Scheduler, Tie-Breaker Scheduler and the Event Server are running.

62 The Shadow Scheduler, Tie-Breaker Scheduler and the Dual Event Servers are running.

70 The Primary Scheduler, Shadow Scheduler and Tie- Breaker Scheduler are running, but the Event Server is not running. This could happen if the database password was changed in configuration file but Application Server was not restarted. chk_auto_up prints a detailed error message if it is not able to connect to Event Server.

71 The Primary Scheduler, Shadow Scheduler, Tie- Breaker Scheduler and the Event Server are run- ning.

72 The Primary Scheduler, Shadow Scheduler, Tie- Breaker Scheduler and the Dual Event Servers are running.

81 The Event Server is running but the agent(s) on Scheduler machine(s) are not responding.

82 The Dual Event Servers are running but the agent(s) on Scheduler machine(s) are not respond- ing.

Page 32: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

99 One of the following has occurred:

* One or more of the following environment variables is not set or is set incorrectly: AUTOSYS, AUTOSERV, AUTOUSER.

* You issued chk_auto_up with invalid argu- ments.

* Application Server is not running or not con- figured correctly.

Running chk_auto_up with the -r argument can result in the application exiting with one of the following return codes:

Exit codes when using -r 1 (Check the Event Server):

0 No Event Server is running.

1 Event Server is running.

2 Dual Event Servers are running.

Exit codes when using -r 10 (Check the Scheduler):

0 No Scheduler is running.

10 Primary Scheduler is running.

20 Shadow Scheduler is running.

30 Primary and Shadow Schedulers are running.

40 Tie-Breaker Scheduler is running.

50 Primary and Tie-Breaker Schedulers are running.

60 Shadow and Tie-Breaker Schedulers are running.

70 Primary, Shadow and Tie-Breaker Schedulers are running.

Exit codes when using -r 11 (Check the Scheduler and Event Server):

0 No Scheduler is running and no Event Server is running.

1 No Scheduler is running, but the Event Server is running.

2 No Scheduler is running, but the Primary and Dual Event Servers are running.

10 The Scheduler is running, but the Event Server is not running. This could happen if the database password was changed in configuration file but Application Server was not restarted. chk_auto_up prints a detailed error message if it is not able

Page 33: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

to connect to Event Server.

11 The Scheduler and the Event Server are running.

12 The Scheduler and the Dual Event Servers are run- ning.

20 The Shadow Scheduler running, but the Event Server is not running. This could happen if the database password was changed in configuration file but Application Server was not restarted. chk_auto_up prints a detailed error message if it is not able to connect to Event Server.

21 The Shadow Scheduler and the Event Server are run- ning.

22 The Shadow Scheduler and the Dual Event Servers are running.

30 The Primary and Shadow Schedulers are running, but the Event Server is not running. This could happen if the database password was changed in configura- tion file but Application Server was not res- tarted. chk_auto_up prints a detailed error mes- sage if it is not able to connect to Event Server.

31 The Primary and Shadow Schedulers and the Event Server are running.

32 The Primary and Shadow Schedulers and the Dual Event Servers are running.

40 The Tie-Breaker Scheduler is running, but the Event Server is not running. This could happen if the database password was changed in configuration file but Application Server was not restarted. chk_auto_up prints a detailed error message if it is not able to connect to Event Server.

41 The Tie-Breaker Scheduler and the Event Server are running.

42 The Tie-Breaker Scheduler and the Dual Event Servers are running.

50 The Primary Scheduler and Tie-Breaker Scheduler are running, but the Event Server is not running. This could happen if the database password was changed in configuration file but Application Server was not restarted. chk_auto_up prints a detailed error message if it is not able to con- nect to Event Server.

51 The Primary Scheduler, Tie-Breaker Scheduler and the Event Server are running.

52 The Primary Scheduler, Tie-Breaker Scheduler and the Dual Event Servers are running.

60 The Shadow Scheduler and Tie-Breaker Scheduler are

Page 34: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

running, but the Event Server is not running. This could happen if the database password was changed in configuration file but Application Server was not restarted. chk_auto_up prints a detailed error message if it is not able to connect to Event Server.

61 The Shadow Scheduler, Tie-Breaker Scheduler and the Event Server are running.

62 The Shadow Scheduler, Tie-Breaker Scheduler and the Dual Event Servers are running.

70 The Primary Scheduler, Shadow Scheduler and Tie- Breaker Scheduler are running, but the Event Server is not running. This could happen if the database password was changed in configuration file but Application Server was not restarted. chk_auto_up prints a detailed error message if it is not able to connect to Event Server.

71 The Primary Scheduler, Shadow Scheduler, Tie- Breaker Scheduler and the Event Server are run- ning.

72 The Primary Scheduler, Shadow Scheduler, Tie- Breaker Scheduler and the Dual Event Servers are running.

81 The Event Server is running but the agent(s) on Scheduler machine(s) are not responding.

82 The Dual Event Servers are running but the agent(s) on Scheduler machine(s) are not respond- ing.

99 One of the following has occurred:

* One or more of the following environment variables is not set or is set incorrectly: AUTOSYS, AUTOSERV, AUTOUSER.

* You issued the chk_auto_up command with invalid arguments.

* Application Server is not running or not con- figured correctly.

Exit codes when using -r 100 (Check the Application Server):

0 No Application Server is running.

100 Application Server is running.

Exit codes when using -r 101 (Check the Application Server and Event Server):

0 No Event Server is running, no Application Server is running.

Page 35: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

1 Event Server is running, no Application Server is running.

2 Dual Event Server is running, no Application Server is running.

100 Application Server is running, no Event Server is running.

101 Event Server is running, Application Server is running.

102 Dual Event Server is running, Application Server is running.

and Scheduler): Exit codes when using -r 110 (Check the Application Server

0 No Scheduler is running, no Application Server is running.

10 Primary Scheduler is running, no Application Server is running.

20 Shadow Scheduler is running, no Application Server is running.

30 Primary and Shadow Schedulers are running, no Application Server is running.

40 Tie-Breaker Scheduler is running, no Application Server is running.

50 Primary and Tie-Breaker Schedulers are running, no Application Server is running.

60 Shadow and Tie-Breaker Schedulers are running, no Application Server is running.

70 Primary, Shadow and Tie-Breaker Schedulers are running, no Application Server is running.

100 Application Server is running, no Scheduler is running.

110 Primary Scheduler is running, Application Server is running.

120 Shadow Scheduler is running, Application Server is running.

130 Primary and Shadow Schedulers are running, Appli- cation Server is running.

140 Tie-Breaker Scheduler is running, Application Server is running.

150 Primary and Tie-Breaker Schedulers are running, Application Server is running.

Page 36: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

160 Shadow and Tie-Breaker Schedulers are running, Application Server is running.

170 Primary, Shadow and Tie-Breaker Schedulers are running, Application Server is running.

Exit codes when using -r 111 (Check the Application Server, Scheduler and Event Server):

0 No Scheduler is running, no Event Server is run- ning, no Application Server is running.

1 No Scheduler is running, Event Server is running, no Application Server is running.

2 No Scheduler is running, Primary and Dual Event Servers are running, no Application Server is run- ning.

10 The Scheduler is running, Event Server is not run- ning, no Application Server is running. This could happen if the database password was changed in configuration file but Application Server was not restarted. chk_auto_up prints a detailed error message if it is not able to connect to Event Server.

11 The Scheduler and the Event Server are running, no Application Server is running.

12 The Scheduler and the Dual Event Servers are run- ning, no Application Server is running.

20 The Shadow Scheduler running, the Event Server is not running, no Application Server is running. This could happen if the database password was changed in configuration file but Application Server was not restarted. chk_auto_up prints a detailed error message if it is not able to con- nect to Event Server.

21 The Shadow Scheduler and the Event Server are run- ning, no Application Server is running.

22 The Shadow Scheduler and the Dual Event Servers are running, no Application Server is running.

30 The Primary and Shadow Schedulers are running, the Event Server is not running, no Application Server is running. This could happen if the database password was changed in configuration file but Application Server was not restarted. chk_auto_up prints a detailed error message if it is not able to connect to Event Server.

31 The Primary and Shadow Schedulers and the Event Server are running, no Application Server is run- ning.

Page 37: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

32 The Primary and Shadow Schedulers and the Dual Event Servers are running, no Application Server is running.

40 The Tie-Breaker Scheduler is running, the Event Server is not running, no Application Server is running. This could happen if the database pass- word was changed in configuration file but Appli- cation Server was not restarted. chk_auto_up prints a detailed error message if it is not able to connect to Event Server.

41 The Tie-Breaker Scheduler and the Event Server are running, no Application Server is running.

42 The Tie-Breaker Scheduler and the Dual Event Servers are running, no Application Server is run- ning.

50 The Primary Scheduler and Tie-Breaker Scheduler are running, the Event Server is not running, no Application Server is running. This could happen if the database password was changed in configura- tion file but Application Server was not res- tarted. chk_auto_up prints a detailed error mes- sage if it is not able to connect to Event Server.

51 The Primary Scheduler, Tie-Breaker Scheduler and the Event Server are running, no Application Server is running.

52 The Primary Scheduler, Tie-Breaker Scheduler and the Dual Event Servers are running, no Application Server is running.

60 The Shadow Scheduler and Tie-Breaker Scheduler are running, the Event Server is not running, no Application Server is running. This could happen if the database password was changed in configura- tion file but Application Server was not res- tarted. chk_auto_up prints a detailed error mes- sage if it is not able to connect to Event Server.

61 The Shadow Scheduler, Tie-Breaker Scheduler and the Event Server are running, no Application Server is running.

62 The Shadow Scheduler, Tie-Breaker Scheduler and the Dual Event Servers are running, no Application Server is running.

70 The Primary Scheduler, Shadow Scheduler and Tie- Breaker Scheduler are running, the Event Server is not running, no Application Server is running. This could happen if the database password was changed in configuration file but Application Server was not restarted. chk_auto_up prints a detailed error message if it is not able to con- nect to Event Server.

71 The Primary Scheduler, Shadow Scheduler, Tie-

Page 38: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

Breaker Scheduler and the Event Server are run- ning, no Application Server is running.

72 The Primary Scheduler, Shadow Scheduler, Tie- Breaker Scheduler and the Dual Event Servers are running, no Application Server is running.

81 The Event Server is running but the agent(s) on Scheduler machine(s) are not responding, no Appli- cation Server is running.

82 The Dual Event Servers are running but the agent(s) on Scheduler machine(s) are not respond- ing, no Application Server is running.

99 One of the following has occurred:

* One or more of the following environment variables is not set or is set incorrectly: AUTOSYS, AUTOSERV, AUTOUSER.

* You issued the chk_auto_up command with invalid arguments.

* Application Server is not running or not con- figured correctly.

100 No Scheduler is running, no Event Server is run- ning, Application Server is running.

101 No Scheduler is running, the Event Server is run- ning, Application Server is running.

102 No Scheduler is running, but the Primary and Dual Event Servers are running, Application Server is running.

110 The Scheduler is running, but the Event Server is not running. This could happen if the database password was changed in configuration file but Application Server was not restarted. chk_auto_up prints a detailed error message if it is not able to connect to Event Server.

111 The Scheduler and the Event Server are running, Application Server is running.

112 The Scheduler and the Dual Event Servers are run- ning, Application Server is running.

120 The Shadow Scheduler running, but the Event Server is not running. This could happen if the database password was changed in configuration file but Application Server was not restarted. chk_auto_up prints a detailed error message if it is not able to connect to Event Server, Application Server is running.

121 The Shadow Scheduler and the Event Server are run- ning, Application Server is running.

Page 39: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

122 The Shadow Scheduler and the Dual Event Servers are running, Application Server is running.

130 The Primary and Shadow Schedulers are running, but the Event Server is not running. This could happen if the database password was changed in configura- tion file but Application Server was not res- tarted. chk_auto_up prints a detailed error mes- sage if it is not able to connect to Event Server, Application Server is running.

131 The Primary and Shadow Schedulers and the Event Server are running, Application Server is running.

132 The Primary and Shadow Schedulers and the Dual Event Servers are running, Application Server is running.

140 The Tie-Breaker Scheduler is running, but the Event Server is not running. This could happen if the database password was changed in configuration file but Application Server was not restarted. chk_auto_up prints a detailed error message if it is not able to connect to Event Server, Applica- tion Server is running.

141 The Tie-Breaker Scheduler and the Event Server are running, Application Server is running.

142 The Tie-Breaker Scheduler and the Dual Event Servers are running, Application Server is running.

150 The Primary Scheduler and Tie-Breaker Scheduler are running, but the Event Server is not running. This could happen if the database password was changed in configuration file but Application Server was not restarted. chk_auto_up prints a detailed error message if it is not able to con- nect to Event Server, Application Server is run- ning.

151 The Primary Scheduler, Tie-Breaker Scheduler and the Event Server are running, Application Server is running.

152 The Primary Scheduler, Tie-Breaker Scheduler and the Dual Event Servers are running, Application Server is running.

160 The Shadow Scheduler and Tie-Breaker Scheduler are running, but the Event Server is not running. This could happen if the database password was changed in configuration file but Application Server was not restarted. chk_auto_up prints a detailed error message if it is not able to connect to Event Server, Application Server is running.

161 The Shadow Scheduler, Tie-Breaker Scheduler and the Event Server are running, Application Server is running.

Page 40: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

162 The Shadow Scheduler, Tie-Breaker Scheduler and the Dual Event Servers are running, Application Server is running.

170 The Primary Scheduler, Shadow Scheduler and Tie- Breaker Scheduler are running, but the Event Server is not running. This could happen if the database password was changed in configuration file but Application Server was not restarted. chk_auto_up prints a detailed error message if it is not able to connect to Event Server, Applica- tion Server is running.

171 The Primary Scheduler, Shadow Scheduler, Tie- Breaker Scheduler and the Event Server are run- ning, Application Server is running.

172 The Primary Scheduler, Shadow Scheduler, Tie- Breaker Scheduler and the Dual Event Servers are running, Application Server is running.

181 The Event Server is running but the agent(s) on Scheduler machine(s) are not responding, Applica- tion Server is running.

182 The Dual Event Servers are running but the agent(s) on Scheduler machine(s) are not respond- ing, Application Server is running.

EXAMPLES chk_auto_up

determines whether the Event Server and Scheduler are up and displays the results on your monitor.

chk_auto_up -r 111

Determines whether the Event Server, Application Server, and Scheduler are up and displays the results on your monitor.

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup- port is available 24 hours a day, 7 days a week.

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

SEE ALSO archive_events(8), as_info(8), as_safetool(8), as_server(8), auto_svcdesk(8), autoaggr(8), autodwp(8), autocal_asc(8), autoflags(8), autoping(8), autorep(8), autosec_test(8), autostatad(8), autostatus(8), autosys(8), autosyslog(8), autosys_secure(8), autotimezone(8), autotrack(8), chase(8), clean_files(8), cron2jil(8), DBMaint(8), dbstatistics(8), eventor(8), get_auto_event(8), jil(8), job_delete(8), job_depends(8), monbro(8), sendevent(8), time0(8), xql(8), zql(8)

Page 41: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

Man As InfoAutoSys 1

Unicenter AutoSys JM Commands as_info(8)

NAME as_info - List Unicenter AutoSys Job Management (JM) instal- lation information

SYNOPSIS as_info [-a] [-c] [-d] [-f] [-i] [-l] [-p] [-s] [-v]

DESCRIPTION List information about the Unicenter AutoSys JM installa- tion. By default, the product components, version, install log locations, configured instances, and status are printed.

OPTIONS -a Print all installation information and current status for Unicenter AutoSys JM.

-c List the Unicenter AutoSys JM components that are installed on this machine.

-d Print information about the database.

-f Print the custom (or default) Unicenter AutoSys JM com- ponent installation specifications.

-i Print all configured Unicenter AutoSys JM instances.

-l Print the name and directory path of the Unicenter AutoSys JM installation log files.

-p List the PIF (Product Interchange File) and RPM pack- ages that were installed as part of this installation. This option uses the RPM Package Manager and the CA lsm utility to retrieve the list, and therefore, takes a few moments to return the information.

-s Print the current status of the Unicenter AutoSys JM components. This option uses the CA unifstat utility to retrieve the status.

-v Print the version of the Unicenter AutoSys JM product, the date and time of the install, and the installation directory.

EXAMPLES as_info -vsi

Print the version, install date, install directory, current status, and configured instances of the Uni- center AutoSys JM product.

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup- port is available 24 hours a day, 7 days a week.

Page 42: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

SEE ALSO archive_events(8), as_safetool(8), as_server(8), auto_svcdesk(8), autoaggr(8), autodwp(8), autocal_asc(8), autoflags(8), autoping(8), autorep(8), autosec_test(8), autostatad(8), autostatus(8), autosys(8), autosyslog(8), autosys_secure(8), autotimezone(8), autotrack(8), chase(8), chk_auto_up(8), clean_files(8), cron2jil(8), DBMaint(8), dbstatistics(8), eventor(8), get_auto_event(8), jil(8), job_delete(8), job_depends(8), monbro(8), sendevent(8), time0(8), xql(8), zql(8)

Man Cron2jilAutoSys 1

Unicenter AutoSys JM Commands cron2jil(8)

NAME cron2jil - Translates crontab files into JIL format

SYNOPSIS cron2jil -f crontab_file [-d output_directory] [-i include_file] [-m machine] [-p prefix]

DESCRIPTION Converts each line in a UNIX crontab file to a corresponding JIL script (*.jil file) and, if necessary, a run calendar file (*.cal file).

Because cron2jil cannot comprehensively address all job pro- cessing requirements, you should use it as a first step in converting from cron to the environment. The second step requires editing the newly created JIL and calendar files to ensure the desired job processing.

When cron2jil reads a crontab file, it assigns job names by combining the base name of the jobs command and the line number of the file. For example, the following crontab entries would result in the job names cp_1 and mail_2 respectively.

>>0,59 0,23 * * 0,6 /bin/cp /etc/passwd /etc/passwd.bak

>>0,59 * * * 0,6 /usr/ucb/mail root@support1 < /tmp/errorLog

After conversion, cron commands involving pipes and I/O redirection perform just as they did in the cron environ- ment. If run calendars are created, cron2jil only generates calendars with a one year duration. After conversion, pipe and I/O redirections may not take full advantage of the fault tolerance mechanisms of Unicenter AutoSys JM. For example, the exit code of a failed command in a pipe may not result in the failure of the complete command expression. Because of this behavior, you should edit converted JIL scripts and split pipes into separate jobs with the appropriate conditions and job control. With this approach, problems can be detected and reported at the point of failure.

Page 43: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

cron2jil does not generate JIL files for jobs that are defined in crontab to start every minute; for example, with an asterisk (*) specified in the first field of the cron listing. In the environment, this is a special case and should be remedied by defining the successful completion of the job as a starting condition for the same job.

Note: After the *.jil or *.cal files are generated, you must submit them to the database using the jil and the autocal_asc commands, respectively.

OPTIONS -f crontab_file Specifies the name of the crontab formatted file.

-d output_directory Specifies the directory to which the *.jil and *.cal files should be written. The default is the current working directory. -i include_file Specifies the name of a file containing JIL statements that are to be included in every generated *.jil file. This file must be created before the conversion, and it can contain any default JIL statements. -m machine Specifies the name of the machine on which the translation should occur. If no machine is specified, the default is localhost. -p prefix Specifies a prefix that should be inserted before each job name. For example, if a prefix of AUTO is specified, the jobs cited in the example above would have the following names: AUTOcp_1 and AUTOmail_2.

EXAMPLES cron2jil -f daily

Translate a crontab file with the name daily.

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup- port is available 24 hours a day, 7 days a week.

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

SEE ALSO archive_events(8), as_info(8), as_safetool(8), as_server(8), auto_svcdesk(8), autoaggr(8), autodwp(8), autocal_asc(8), autoflags(8), autoping(8), autorep(8), autosec_test(8), autostatad(8), autostatus(8), autosys(8), autosyslog(8), autosys_secure(8), autotimezone(8), autotrack(8), chase(8), chk_auto_up(8), clean_files(8), DBMaint(8), dbstatistics(8), eventor(8), get_auto_event(8), jil(8), job_delete(8), job_depends(8), monbro(8), sendevent(8), time0(8), xql(8), zql(8)

Man JilAutoSys 1

Unicenter AutoSys JM Commands jil(8)

Page 44: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

NAME jil - Command line interface to define Unicenter AutoSys Job Management (JM) jobs and objects

SYNOPSIS jil [-q] [-S autoserv_instance] [-V none|job|batch|syntax]

DESCRIPTION Runs the Job Information Language (JIL) processor to add, update, and delete jobs, machines, monitors, and browsers (reports) and to insert one-time job overrides.

When you invoke jil, Unicenter AutoSys JM verifies user per- missions as follows based on the subcommand or attribute used:

* Create access is required to use the update_job or insert_machine subcommands.

* Write access is required to use the update_job subcom- mand.

* Delete access is required to use the delete_job or delete_machine subcommands.

* Execute access is required to use the application, exclude_calendar, group, machine, owner, and run_calendar attributes.

You can use the jil command in two ways:

* To automatically submit job, machine, monitor, and browser definitions to the database by redirecting a JIL script file to the jil command. A JIL script file contains one or more subcommands (such as insert_job).

* To interactively submit job, machine, monitor, and browser definitions to the database by issuing the jil command only and entering JIL subcommands at the pro- vided prompts. To exit interactive mode, enter exit at the prompt, or press Ctrl+D.

SYNTAX RULES You must follow these rules when using JIL subcommands in a script file or at the command line:

* Each subcommand uses the following form:

sub_command: job_name

where: sub_command specifies one of the following JIL subcommands:

insert_job

update_job

delete_job

Page 45: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

delete_box

override_job

jobname indicates the user-specified name of the job to create, update, delete, or override.

* Follow each subcommand with one or more attribute statements. Attribute statements can occur in any order, and are applied to the job specified in the preceding subcommand. A subsequent subcommand begins a new set of attributes for a different job. Attribute statements use the following form:

* You can enter multiple attribute statements on the same line. You must separate each attribute statement with at least one space.

* You must define a box job before you can put jobs in it.

* You must define a machine to the database before you can define a job to run on it.

* When defining a virtual machine, you must first define all machines it contains.

* Legal value settings can include upper and lowercase letters, numbers, colons (if the colon is escaped as explained in the next rule), and the at symbol (@).

* Because JIL parses subcommands based on the keyword/colon combination, you must properly escape colons used in an attribute statements value with quo- tation marks (") or a backslash (\). For example, to specify the time to start a job, specify "10:00" or 10:00.

* Use one of the following methods to indicate comments in a JIL script file: To comment an entire line, put a pound sign (#) in the first column. To comment part of a line or to specify comments that span multiple lines, begin the comment with /* and ending it with */. For example:

/* This is a comment.*/

OPTIONS -q Runs the command in quiet mode so that it only outputs error messages. This is useful when entering a large number of jobs, so that you can easily see errors.

Default: Output error messages and status messages that indicate the success or failure of the JIL subcommands. This information is very useful and should typically be allowed to print out.

-S autoserv_instance Specifies the three-character instance identifier (for example, ACE).If you do not specify the instance name, the command uses the value of the $AUTOSERV environment

Page 46: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

variable.

-V none|job|batch|syntax Specifies whether the JIL processor should verify the validity of the job definitions and that jobs specified in the job dependency conditions actually exist in the Unicenter AutoSys JM database.

Set this value to one of the following:

none Specifies that the JIL processor should perform no job dependency verification.

job Specifies that the JIL processor verifies job dependencies on a job-by-job basis when the jobs are submitted to the database.

batch Verifies job dependencies in the database after the JIL file is entirely processed.

syntax Verifies the validity of the job definition without verifying job dependencies or writing the job definitions to the database.

EXAMPLES jil < job1

Redirect a text file named job1 containing JIL state- ments into jil.

jil < job1 -V none

Redirect a text file named job1 containing JIL state- ments into jil and prohibit the JIL processor from ver- ifying the existence of specified jobs in its job dependencies.

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup- port is available 24 hours a day, 7 days a week.

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

SEE ALSO archive_events(8), as_info(8), as_safetool(8), as_server(8), auto_svcdesk(8), autoaggr(8), autodwp(8), autocal_asc(8), autoflags(8), autoping(8), autorep(8), autosec_test(8), autostatad(8), autostatus(8), autosys(8), autosyslog(8), autosys_secure(8), autotimezone(8), autotrack(8), chase(8), chk_auto_up(8), clean_files(8), cron2jil(8), DBMaint(8), dbstatistics(8), eventor(8), get_auto_event(8), job_delete(8), job_depends(8), monbro(8), sendevent(8), time0(8), xql(8), zql(8)

Man Autocal AscAutoSys 1

Page 47: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

Unicenter AutoSys JM Commands autocal_asc(8)

NAME autocal_asc - Starts the command-line Unicenter AutoSys Job Management (JM) calendar utility

SYNOPSIS autocal_asc [-D|-E export_filename] [-c cycle_name|-e extcal|-s stdcal] | -I import_filename | -l | -l[c|e|s] | -x | - | -?

DESCRIPTION Provides a text-based command line mechanism for adding, deleting, printing, exporting, and importing calendars.

Unicenter AutoSys JM uses calendars to schedule the days on which jobs should run. Each calendar has a unique name and contains a list of days on which jobs may run or are excluded from running.

Limits: The calendar names are up to 30 characters in length and can only include the following characters: a-z, A-Z, 0- 9, period (.), underscore (_), and hyphen (-).

The autocal_asc command can manipulate three types of calen- dars: Standard Calendars, Extended Calendars, and Cycles.

Standard Calendars

A standard calendar lists user-specified dates. Each entry in a standard calendar consists of a date and (optionally) a time.

Extended Calendars

An extended calendar uses rules to generate a standard calendar containing a list of dates.

Cycles

A cycle is a list of one or more date ranges used when cycle keywords are present in an extended calendar definition.

Unicenter AutoSys JM uses the following rules to verify user per-missions based on the activity selected: When you invoke autocal_asc with eTrust IAM security enabled,

* Read access is required to print the autocal_asc ver- sion number or to export a calendar.

* Create access is required to add or import a new calen- dar or cycle.

* Write access is required to modify an existing calendar or cycle.

* Delete access is required to delete a calendar or cycle.

Page 48: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

After creating a calendar, you can use one of the following methods to reference it in your job definitions:

* With jil, enter a calendar name in the run_calendar or exclude_calendar attribute.

* In the Unicenter WCC GUI, enter a calendar name in the appropriate field.

When you update a calendar, Unicenter AutoSys JM recalcu- lates the starting times for all jobs that use the updated calendar. You must regenerate an extended calender to reflect the changes made.

OPTIONS -I import_filename Imports calendars from the specified file, import_filename.

-E export_filename Exports the calendar or cycle specified by -c cycle_name, -e extcal, or -s stdcal to the file defined in the export_filename.

To export an extended calendar definition, combine -E export_filename with -e extcal. This exports the extended calendar definition.

To export the list of dates generated by an extended calender, combine -E export_filename with -s stdcal. This output file resembles a standard output.

To export a cycle, combine -E export_filename with -c cycle_name. Alternatively, you can specify the parame- ters as -c cycle_name -E export_filename.

To export a standard calendar, combine -E export_filename with -s stdcal. Alternatively, you can specify the parameters as -s stdcal -E export_filename.

To export all calendars of a specific type, use the ALL keyword: -E export_filename followed by -s ALL, -e ALL, or -c ALL.

-c cycle_name Defines a cycle to export or delete.

To export a cycle, combine -c cycle_name with -E export_filename. Alternatively, you can specify the parameters as -E export_filename, -c cycle_name.

To delete a cycle, combine -c cycle_name with -D. Alternatively, you can specify the parameters as -D -c cycle_name.

-e extcal Defines an external calendar to export or delete.

To export an external calendar, combine -e extcal with -E export_filename. Alternatively, you can specify the

Page 49: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

parameters as -E export_filename, -e extcal.

To delete an external calendar, combine -e extcal with -D. Alternatively, you can specify the parameters as -D -e extcal.

-s stdcal Specifies a standard calendar to export or delete.

To export an standard calendar, combine -s stdcal with -E export_filename. Alternatively, you can specify the parameters as -E export_filename, -s stdcal.

To delete an standard calendar, combine -s stdcal with -D. Alternatively, you can specify the parameters as -D -s stdcal.

-l Lists all defined extended and standard calendars.

-lc Lists all cycle calendars.

-le Lists all extended calendars.

-ls Lists all standard calendars.

-D Deletes the calendar or cycle specified by -c cycle_name, -e extcal, or -s stdcal from Unicenter AutoSys JM.

- Reads menu selections from standard input.

-x Prints the autocal_asc version number.

EXAMPLES autocal_asc -I federal_holidays.txt

Imports the calendars defined in the federal_holidays.txt file.

autocal_asc -s federal_holiday -E federal_holidays.txt

Exports the standard federal_holiday calendar to the federal_holidays.txt file.

autocal_asc -c REPORT_PERIOD -E report_cycles.txt

Export the cycle calendar REPORT_PERIOD to the file report_cycles.txt.

autocal_asc -D -e FIRST_MONDAY_OF_MONTH

Deletes the extended calendar FIRST_MONDAY_OF_MONTH.

autocal_asc -lc

Lists all cycle calendars.

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup-

Page 50: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

port is available 24 hours a day, 7 days a week.

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

SEE ALSO archive_events(8), as_info(8), as_safetool(8), as_server(8), auto_svcdesk(8), autoaggr(8), autodwp(8), autoflags(8), autoping(8), autorep(8), autosec_test(8), autostatad(8), autostatus(8), autosys(8), autosyslog(8), autosys_secure(8), autotimezone(8), autotrack(8), chase(8), chk_auto_up(8), clean_files(8), cron2jil(8), DBMaint(8), dbstatistics(8), eventor(8), get_auto_event(8), jil(8), job_delete(8), job_depends(8), monbro(8), sendevent(8), time0(8), xql(8), zql(8)

Man SendeventAutoSys 1Unicenter AutoSys JM Commands sendevent(8)

NAME sendevent - Sends events to Unicenter AutoSys Job Management (JM)

SYNOPSIS sendevent -E event [-A alarm] [-B [-G "global_name=value"] [-I application] [-J job_name] [-k signal_numbers] [-M max_send_trys] [-N machine] [-P priority] [-q job_queue_priority] [-s status] [-S instance] [-T "time_of_event"] [-U]

DESCRIPTION Sends events to start or stop jobs, stop the scheduler, put a job on hold, set global variables, bring a real machine online or offline, cancel a scheduled event, and so on.

Issuing sendevent is the only method of externally sending most events. You can also use sendevent to communicate with any instance, provided the machine on which the command runs can connect with the databases associated with that instance. The sent event is written to the database. The scheduler continually polls the database and reads and processes the event on receipt.

Note: To issue sendevent for a job, you must have execute permission for that job. Only alarms, comments, and set glo- bal can be sent without regard to permissions.

You cannot issue a MACH_ONLINE or MACH_OFFLINE event for a virtual machine.

When you invoke sendevent, Unicenter AutoSys JM verifies user permissions as follows based on the command options:

* Create access is required to add a new global variable.

* Write access is required to change the value of an existing global variable or to send the

Page 51: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

CHANGE_PRIORITY event.

* Execute access is required to send the following events: CHANGE_STATUS, COMMENT, FORCE_STARTJOB, JOB_OFF_HOLD, JOB_OFF_ICE, JOB_ON_HOLD, JOB_ON_ICE, KILLJOB, SEND_SIGNAL, SET_GLOBAL, STARTJOB, and STOP_DEMON.

* Delete access is require to delete a global vari- able or to send the DELETEJOB event.

OPTIONS -E event Specifies the event to be sent. This option is required. Any one of the following values may be speci- fied:

ALARM - An informational event that invokes no action on its own. This event typically indicates the occurrence of one of the specific alarms described in the Alarms section of the Unicenter AutoSys JM Refer- ence Guide. An alarm is typically an internal event, but you can also use this event to send alarms directly to operators. The -J option is optional with this event.

CHANGE_PRIORITY - Modify the job queue priority of the specified job (-J)to the priority specified in the -q option.

Queue priority is the relative priority of all jobs in the queue. The lower the number, the higher the prior- ity; 0 means to run the job immediately.

When the job is in QUE_WAIT status, the CHANGE_PRIORITY event changes the job priority immediately and may start the job. When the job is not yet in QUE_WAIT status, the CHANGE_PRIORITY event changes the priority only for the next run of the job. To permanently change a jobs priority, you must edit the job definition.

CHANGE_STATUS - Change the specified job status to the status defined in the -s option. When the scheduler processes this event, it initiates any actions that are dependent upon the job status.

You should not typically use the CHANGE_STATUS event, because Unicenter AutoSys JM manages job state changes internally. To send this event, you must also define the -s status option.

When you send a CHANGE_STATUS event, you are changing the status of the job in the database; this event does not affect the current run of the job. That is, if you change the status to RUNNING, the status changes in the database but the job does not run. You must change the status to a termination state before the job can run again. For more information, see the Status section of the Unicenter AutoSys JM Reference Guide.

COMMENT - An informational event that attaches a mes-

Page 52: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

sage to the specified job. When used with the -J option, the COMMENT event attaches the message to the job for a specific run. When used with the -C option, the COMMENT event writes a comment directly to the scheduler log. The COMMENT event is a method for gen- erating comments at runtime and associating them with a specific job run.

DELETEJOB - Delete the job specified in job_name from the database. If job_name is a box, the box and all the jobs in the box are deleted.

FORCE_STARTJOB - Start the job specified in job_name, regardless of whether the starting conditions are satisfied or not. Because multiple instances of the same job can be started using this command, it is recommended that the FORCE_STARTJOB event be used only in extreme situations.

JOB_OFF_HOLD - Take the job specified in job_name Off Hold. If the starting conditions are met, the job will be started.

JOB_OFF_ICE - Take the job specified in job_name Off Ice. This is like reactivating the job description. Jobs that are taken Off Ice will not start until the next time their starting conditions are met.

JOB_ON_HOLD - Put the job specified in job_name On Hold. When a job is On Hold, it will not be started. A box will not be considered done if a job within it is ON_HOLD, and downstream dependent jobs will not run. If the job is already STARTING or RUNNING, you cannot put it ON_HOLD.

JOB_ON_ICE - Put the job specified in job_name On Ice. On Ice is the functional equivalent of deactivating a job definition. For example, the starting conditions for jobs downstream from JobA, which has been put On Ice, will evaluate as shown below.

Evaluation of Dependent Jobs Conditions

Job Condition Will Evaluate to _________________ ___________________

success (JobA) TRUE failure (JobA) FALSE terminated (JobA) FALSE done (JobA) TRUE notrunning (JobA) TRUE exitcode FALSE

While a job status is RUNNING or STARTING, Unicenter AutoSys JM will not allow the job be put On Ice.

KILLJOB - Kill the job specified in job_name. The action depends on one of the following job types:

Command Jobs - Kill the process that is currently

Page 53: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

running and all the processes that it has spawned; i.e., the process group. It will not kill orphan processes. It sends a signal to the process, waits five seconds, then sends a second signal, if the process is still there. The default kill signals to be sent are specified in the Unicenter AutoSys JM configuration file with the KillSignals parame- ter, and typically the signals are SIGINT and SIG- KILL. This enables the application programmer to program commands that will react intelligently to the KILLJOB event. For UNIX processes, specific signals can be specified, or default signals can be overridden using the -k option.

Box Jobs - Change the status to TERMINATED. No more jobs within the box will be started. Jobs that are already running will continue to run to completion.

File Watcher Jobs - Kill the File Watcher job and changes the status to TERMINATED.

Do not force start a job in QUE_WAIT state because jobs in QUE_WAIT state are already started and are waiting for machine resources to become available to run. If you want a job in QUE_WAIT to start running immedi- ately, change the job queue priority to 0 (using the CHANGE_PRIORITY event).

If a job fails inside a box and the problem is fixed manually, you would use FORCE_STARTJOB to rerun the job.

If you force start a job, Unicenter AutoSys JM will start the job right away on the machine specified in the job definition, regardless of the current load on the machine or the job load specified for the job.

MACH_OFFLINE - Instruct the scheduler to put the machine specified by the -N option offline and puts jobs scheduled to start on it in PEND_MACH status. When a machine with running jobs goes offline, the product generates an error. This event can be manually or automatically generated.

MACH_ONLINE - Instruct the scheduler to put the machine in the -N option online, remove jobs scheduled to run on that machine from PEND_MACH status, and starts those jobs. This event can be manually or automatically

SEND_SIGNAL - Send a UNIX signal to a running Unicenter AutoSys JM job. For processes running on UNIX systems, the -k option must be used when this event is sent; it specifies the exact number(s) of the signal. The -J option must also be used. A SEND_SIGNAL event is ignored if the Unicenter AutoSys JM job is running on a Windows machine.

SET_GLOBAL - Set a Unicenter AutoSys JM global vari- able. This event is sent with a high priority so that the scheduler will process the variable before it is

Page 54: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

referenced by any jobs at runtime. The -G option must be used with this event to specify the global variable s name and value. The -J option must not be used.

STARTJOB - Start the job specified in job_name if the starting conditions are satisfied. That is, a STARTJOB event ignores time and date conditions, but it does not ignore dependencies on other jobs. This command can be used only for starting top level jobs. Jobs in boxes inherit the starting conditions of the box they are in; as a result, they will be started when that box is started.

STOP_DEMON - Stop the event demon. This is the only way to stop the scheduler. However, this does not stop the RDBMS(s).

-A alarm Specifies the name of the alarm to send. This option is only used when you specify -E ALARM.

-B group Defines the group for which to run the command. When you also define -I application, the specified command affects only items that match both -I application and -B group.

-C comment Specifies a comment of up to 255 alphanumeric charac- ters in length (entered as a single line) to attach to the event. The product does not use this comment except as documentation.

For example, you can use this option to document why you sent a KILLJOB event, in which case it is attached to the KILLJOB event and is viewable in an autorep report. When you use this option with -E COMMENT, it specifies a standalone comment that is posted to the event log.

When this value contains spaces, you must enclose it in quotation marks (").

-G "global_name=value" Specifies the name and value of the global variable to use when you specify -E SET_GLOBAL. global_name and value can each up to 30 characters in length. The pro- duct ignores leading and trailing spaces in value.

When you set a global variable, jobs can use the syntax for the indicated job attributes in the following table to reference the variable at runtime.

Attributes and Global Variable Syntax

Job Attribute Global Variable Syntax _______________ __________________________________

condition VALUE(global_name)operator "value" command $$global_name or $$(global_name)

Page 55: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

std_*_file $$global_name or $$(global_name) watch_file $$global_name or $$(global_name)

To delete a global variable from the database, set it with a value of DELETE, like:

sendevent -E SET_GLOBAL -G "global_name=DELETE"

Note: Global variables are stored in the database; they are not set in the environment. Therefore, you cannot reference them in the default(etc/auto.profile) or the jobs defined Unicenter AutoSys JM profile.

-I application Defines the application for which to run the command.When you also define -B group, the command affects only items that match both -I application and -B group.

-J job_name Identifies the job to which to send the specified event. This value can be up to 64 alphanumeric charac- ters in length and is required for all events except STOP_DEMON, COMMENT, ALARM, and SET_GLOBAL.

-k signal_numbers It specifies the signal numbers that the application is watching. This value can contain a comma-delimited list of signals to send to the process. The agent sends the first signal, sleeps for five seconds, then sends the next signal, and so on.

This option is valid only with -E SEND_SIGNAL or -E KILLJOB, and is required for -E SEND_SIGNAL.

For KILLJOB events, this option overrides any KillSig- nals specified in the configuration file.

To send signals to an entire process group, precede the appropriate signal_numbers values with a minus sign (-).

-M max_send_trys Specifies the maximum number of times sendevent should attempt to send the event to the database. You can specify any number of attempts. If all the specified send attempts result in failure, sendevent finishes with an exit code of 1.

Default: 0 (sendevent will try indefinitely)

-N machine Identifies the target real machine for the MACH_OFFLINE and MACH_ONLINE events. This value can be up to 80 alphanumeric characters in length. You cannot issue a MACH_ONLINE or MACH_OFFLINE event for a virtual machine.

-q job_queue_priority Specifies the new queue priority to assign to the job. The value can be a number in the range 0 to 99, where 0

Page 56: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

is the highest priority (indicating to start the job immediately) and 99 is the lowest. This option is only used and is required when you specify -E CHANGE_PRIORITY.

-P priority Assigns a priority to the event. Assign a high priority if the event must be processed immediately (for exam- ple, to put a job that is about to start in ON_HOLD status). This value can be a number in the range 1 to 1000, where 1 is the highest priority and 1000 is the lowest.

Default: 10

-s status Specifies the status to which to change the job speci- fied in -J job_name. You can set the job to one of the following statuses: RUNNING, STARTING, SUCCESS, FAILURE, INACTIVE, and TERMINATED.

Note: Changing the status to RUNNING does not cause the job to run. It only changes the status of the job in the database. Changing the status of a box to INACTIVE also changes all the jobs in the box to INACTIVE.

This option is only used and is required when you specify -E CHANGE_STATUS.

-S instance Specifies the three-character Unicenter AutoSys JM instance (e.g., ACE) to which the specified event should be sent. If not specified, sendevent will use the value of the environment variable named $AUTOSERV.

-T "time_of_event" Specifies the date and time at which to process the event, in "MM/dd/[yy]yy hh:mm" format. You must enclose this value in quotation marks (").

When you enter a two-digit year, Unicenter AutoSys JM saves the setting to the database as a four-digit year. If you enter 79 or less, the product precedes your entry with 20; if you enter 80 or greater, the product precedes your entry with 19.

Default: Process the event immediately.

-U Cancels the event specified by -E event when the speci- fied event has not yet processed.

If you do not define -T "time_of_event", the product cancels all events that satisfy the specified options. When multiple future events exist, you can use -U with -T "time_of_event" to cancel a specific event. The pro- duct does not delete canceled events from the database -- it changes their status.

EXAMPLES sendevent -J test_install -E STARTJOB

Page 57: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

Start a job named test_install that has no starting conditions specified (and therefore must be started manually).

sendevent -J wait_job -E FORCE_STARTJOB-C "tired of waiting, force it"

Force a job to start named wait_job, which is waiting on the completion of another job, and explain the rea- sons for your action.

sendevent -J ready_to_run -E JOB_ON_HOLD -P 1

Change the status of a job called ready_to_run to ON_HOLD to prevent its execution, and assign sendevent a high priority so it will be sent immediately.

sendevent -J ready_to_run -E JOB_OFF_HOLD

Run the job specified in the previous example.

sendevent -J lock_out -E JOB_ON_HOLD -T "11/08/1997 11:00" sendevent -J lock_out -E JOB_OFF_HOLD -T "11/08/1997 14:00"

Prevent a job called lock_out from running between the hours of 11:00 a.m. and 2:00 p.m. (These same sendevent commands can be placed in a job that is run daily to perpetuate this condition on a regular basis.)

The first sendevent puts the job on hold at 11:00 a.m.

The second sendevent takes the job off hold at 2:00 p.m.

sendevent -E COMMENT -C "have not received EOD files - late again"

Write a comment into the schedule log file.

sendevent -E STOP_DEMON -T "11/09/2005 02:30" -C "stopped for upgrade"

Stop the scheduler at 2:30 a.m. on November 9, 2005 (it is always a good idea to attach a comment to this event).

sendevent -J resource_hog -E CHANGE_PRIORITY-q 10 -M 5

Change a job called resource_hog to a lower priority (it is currently at 1 and is not yet running), and to only issue sendevent 5 times, rather than letting it try indefinitely. Notice that this will only change the job queue priority for the next run of the job.

sendevent -J wrong_job -E KILLJOB -S PRD

Kill a job named wrong_job which is running on another Unicenter AutoSys JM instance called PRD.

sendevent -E SET_GLOBAL -G "today=12/25/2005"

Page 58: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

Set a global variable named today having a value of 12/25/2005.

sendevent -E SET_GLOBAL -G "today=DELETE"

Delete the global variable named today.

sendevent -E SEND_SIGNAL -j RunData -k 1

Send the UNIX signal number 1 to a job named RunData.

sendevent -E JOB_OFF_HOLD -j RunData -u

Cancel all unprocessed JOB_OFF_HOLD events for a job named RunData.

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup- port is available 24 hours a day, 7 days a week.

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

SEE ALSO archive_events(8), as_info(8), as_safetool(8), as_server(8), auto_svcdesk(8), autoaggr(8), autodwp(8), autocal_asc(8), autoflags(8), autoping(8), autorep(8), autosec_test(8), autostatad(8), autostatus(8), autosys(8), autosyslog(8), autosys_secure(8), autotimezone(8), autotrack(8), chase(8), chk_auto_up(8), clean_files(8), cron2jil(8), DBMaint(8), dbstatistics(8), eventor(8), get_auto_event(8), jil(8), job_delete(8), job_depends(8), monbro(8), time0(8), xql(8), zql(8)

Man Get Auto EventAutoSys 1

Unicenter AutoSys JM Tools get_auto_event(8)

NAME get_auto_event - API to Unicenter AutoSys Job Management (JM) Scheduler Events

SYNOPSIS #include <autosys_api.h> int get_auto_event(event, polling_freq) struct event_api *event; int polling_freq;

DESCRIPTION get_auto_event() loads the structure pointed to by *event with the data about an event. The events are returned in the order in which they are posted to the database. Events may be reported to the API before they are processed by the Event Processor. The event_api structure is defined in the header file: autosys_api.h as:

struct event_api { oid joid;

Page 59: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

char job_name[NAMELEN+1]; char box_name[NAMELEN+1]; char eventtxt[NAMELEN+1]; char statustxt[NAMELEN+1]; char alarmtxt[NAMELEN+1]; char event_time[DATETIMELEN+1]; int exit_code; int run_num; int ntry; char machine[NAMELEN+1]; char comment[256]; };

If a field is not used for a given event it will be defined as a NULL terminated string. The only field that is guarenteed to be present is eventtxt. The value polling_freq instructs the API how often to inspect the Database for a new event. After finding an event get_auto_event() returns to the calling program.

RETURN VALUES get_auto_event() returns 0 if it got an event, DB_DEAD if the Database dropped the connection, or is unavailable, and -1 if it failed. The ability to reconnect to the Database is controlled by the calling program. get_auto_event() will itself attempt to reconnect one time if an existing connec- tion is dropped, and then if still unable, to return with DB_DEAD.

SEE ALSO Example programs can be located in $AUTOSYS/code/test_api.c.

NOTES To link get_auto_event.o successfully, the Sybase `C' library must be linked in.

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup- port is available 24 hours a day, 7 days a week.

Man AutodwpAutoSys 1

Unicenter AutoSys JM Commands autodwp(8)

NAME autodwp - Unicenter AutoSys Job Management (JM) Dynamic Workload Placement Utility

SYNOPSIS autodwp [-n virtual_machine_name] -f machine_conditions_file [-p] [-q] [-u]

DESCRIPTION Utility for the maintenance of Unicenter AutoSys JM machine definitions. Dynamically generates or refreshes a virtual machine definition for virtual machine virtual_machine_name with machines selected by the search criteria specified in file machine_conditions_file. The criteria in

Page 60: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

machine_conditions_file may be based on Unicenter AutoSys JM machine attributes or on asset data collected by Unicenter Network and System Management (Unicenter NSM) or both. Vir- tual machine definitions created by autodwp using criteria based on Unicenter AutoSys JM machine attributes will only comprise existing Unicenter AutoSys JM machines. Virtual machine definitions created by autodwp using criteria based on asset data collected by Unicenter NSM may comprise exist- ing Unicenter AutoSys JM machines as well as new machine definitions created by autodwp for machines not previously defined. If virtual_machine_name is not specified and machine_conditions_file contains critertia based on asset data collected by Unicenter NSM, autodwp will create new machine definitions for machines not previously defined.

OPTIONS -n virtual_machine_name Identifies the name of the virtual machine to define or update. If this option is not specified, then all machines that meet the specified conditions (in machine_conditions_file) and that have not been previ- ously defined will be inserted into the AutoSys data- base as AutoSys machines.

-f machine_conditions_file Identifies the fully-pathed name of the file to retrieve the search criteria for determining which machines to include in the virtual machine. This param- eter is required. The syntax of the search criteria within the file is:

(expression) [boolean_expression (expression) ...]

expression Consists of a parameter, operator, and a value. For example:

MachineName=machine1

Each item in an expression is described below.

parameter Identifies the name of the machine item to search. There are two areas, or types, of machine items: assets and machines. The asset type searches for machine assets from MDB tables found in non-AutoSys databases. The machine type searches for machines defined in the AutoSys database, based on machines attributes found in the ujo_machine table. The asset conditions and machine attributes are identified with the following XML-style meta tags:

<CA_ASSET_QUERY> asset_conditions... <\CA_ASSET_QUERY>

<MA_ATTRIB_QUERY> machine_attributes... <\MA_ATTRIB_QUERY>

Page 61: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

Valid asset_condition identifier names are:

CaAssetHostName The host name of the machine on which the asset is found.

CaAssetSoftware The software installed based on the machine asset. This information is retrieved by reading the ca_discovered_software and ca_software_def MDB tables.

CaAssetVendor The vendor of the asset. This information is retrieved by reading the ca_discovered_hardware MDB table.

CaAssetOS The operating system of the asset. This information is retrieved by reading the ca_class_def MDB table.

CaAssetNetwork The primary network address of the asset. This information is retrieved by reading the ca_discovered_hardware MDB table.

CaAssetSoftwareAlive Whether the software is active and running. This information is retrieved by reading the tng_managedobject MDB table. There is no value associated with this identifier. If it is specified, the search will be successful if the software is in active state.

CaAssetHardwareAlive Whether the machine is turned on and running. This information is retrieved by reading the tng_managedobject MDB table. There is no value associated with this identifier. If it is specified, the search will be successful if the machine is up and running.

Valid machine_attribute identifier names are:

MachineFactor The factor that the machine defini- tion contains. The factor value indicates the relative processing power of the machine.

MachineName

Page 62: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

The real name of the machine defin- ition.

MachineQueName The name of the virtual machine to which the machine defined by the MachineName attribute belongs to. Used to distinguish between the definition of a real machine and the definition of the same machine listed in a virtual machine.

MachineType The type of machine. The values are:

r Specifies a real UNIX machine.

c Specifies a Unicenter AutoSys JM connect machine.

l (Lower-case el) Specifies a legacy (real) UNIX machine.

L Specifies a legacy (real) Win- dows machine.

n Specifies a real Windows machine.

u Specifies a NSM or Universal Job Management Agent machine.

v Specifies a virtual machine.

MachineMaxload The maximum load (in units, from 1 to 100) that the machine can rea- sonably handle. The maxload value is a parameter used when defining machines to Unicenter AutoSys JM using jil.

MachineStatus The current status of the machine. The values are:

a The machine is offline.

o The machine is online.

operator Identifies the mathematical operation to per- form against the retrieved database data. Valid values are: >, <, =, !=, >=, and <=.

value Specifies the value to compare against.

boolean_expression Identifies the comparion type to make. The valid

Page 63: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

boolean expression values are: || and &&.

-p Print the name of the virtual machine, even if -q is specified. Use of this option allows autodwp to be specified in the machine attribute of a job definition (via jil) as a batch command. (e.g. machine: `autodwp -n my_virtual_machine -f my_criteria_file -p`)

-q Run the command in quiet mode. No messages will be printed.

-u The machine list in the virtual machine will be updated according to the machine conditions. If this option is not specified, the virtual machine will be added.

EXAMPLE To select a machine by name, maxload, factor from ujo_machine where type!=w and (name like usbodev% or type=r), the machine_conditions_file contains the following records:

<MA_ATTRIB_QUERY> (MachineName=usbodev% || MachineType=r) && MachineType!=w <\MA_ATTRIB_QUERY>

To select a machine asset using various search criteria, the machine_conditions_file contains the following records:

<CA_ASSET_QUERY> (CaAssetHostName != usbo || CaAssetOS= Unix ) && ( CaAssetSoftware=Oracle || CaAssetSoftware=AutoSys) && ( CaAssetSoftwareAlive) <\MA_ATTRIB_QUERY>

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup- port is available 24 hours a day, 7 days a week.

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

SEE ALSO archive_events(8), as_info(8), as_safetool(8), as_server(8), auto_svcdesk(8), autoaggr(8), autocal_asc(8), autoflags(8), autoping(8), autorep(8), autosec_test(8), autostatad(8), autostatus(8), autosys(8), autosyslog(8), autosys_secure(8), autotimezone(8), autotrack(8), chase(8), chk_auto_up(8), clean_files(8), cron2jil(8), DBMaint(8), dbstatistics(8), eventor(8), get_auto_event(8), jil(8), job_delete(8), job_depends(8), monbro(8), sendevent(8), time0(8), xql(8), zql(8)

Man Archive EventsAutoSys 1

Page 64: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

Unicenter AutoSys JM Commands archive_events(8)

NAME archive_events - Archives data from the Unicenter AutoSys Job Management (JM) database

SYNOPSIS archive_events [-A] [-B batch_size] [-C delimiter] [-d directory_name] [-D data_server:database|TNSname] [-I idletime] [-j num_days|-l num_days| -n num_days|-r num_days]

DESCRIPTION Removes data that is older than the specified number of days from the Unicenter AutoSys JM ujo_proc_event, ujo_job_runs, ujo_audit_info, ujo_chkpnt_rstart, and ujo_audit_msg tables and archives it to a flat file. Use archive_events to prevent the database from becoming full.

In Dual-Server mode, the data is archived from both servers at the same time. If information from these tables is not regularly purged from the database, the database can fill up, stopping all processing. It is recommended that you run archive_events during the database maintenance cycle.

The DBMaint script, which runs daily by default, runs archive_events as a part of its process.

The archive_events command archives table data to specific files as follows:

ujo_audit_info Archives data from the ujo_audit_info table to files named archived_audit_info.ING.MM.dd.yyyy.hh.mm.ss, where MM.dd.yyyy.hh.mm.ss indicates the month, day, year, hour, minute, and second at which the archive was created. The format of each record in the archived_audit_info.ING.* file is as follows:

audit_info_num,entity,time,type

For example:

4324,user@domain,1104868885,J

Each audit event occupies one row in the archive. By default, a comma (,) delimits each column.

ujo_audit_msg Archives data from the ujo_audit_msg table to files named archived_audit_msg.ING.MM.dd.yyyy.hh.mm.ss, where MM.dd.yyyy.hh.mm.ss indicates the month, day, year, hour, minute, and second at which the archive was created. The format of each record in the archived_audit_msg.ING.* file is as follows:

audit_info_num,seq_no,attribute,value,value2,is_edit

For example:

Page 65: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

4315,1,job_name,xxforcestart_jobs_inbox_test6,,N

Each event occupies one row in the archive. By default, a comma (,) delimits each column.

ujo_job_runs Archives data from the ujo_job_runs table to files named archived_job_runs.ING.MM.dd.yyyy.hh.mm.ss, where MM.dd.yyyy.hh.mm.ss indicates the month, day, year, hour, minute, and second at which the archive was created. The format of each record in the archived_job_runs.ING.* file is as follows:

joid,run_num,ntry,starttime,endtime,status,exit_code,runtime,evt_num,machine

For example:

11679,2508,1,1104442415,1104442417,4,0,2,33366,mach3

Each job run occupies one row in the archive. By default, a comma (,) delimits each column.

ujo_proc_event Archives data from the ujo_proc_event table to files named archived_proc_event.ING.MM.dd.yyyy.hh.mm.ss, where MM.dd.yyyy.hh.mm.ss indicates the month, day, year, hour, minute, and second at which the archive was created. The format of each record in the archived_proc_event.ING.* file is as follows:

eoid,joid,job_name,box_name,AUTOSERV,priority,event,status,alarm, event_time_gmt,exit_code,machine,pid,jc_pid,run_num,ntry,text, que_priority,stamp,evt_num,que_status,que_status_stamp

For example:

ING0000oi100,11051,box_alarms_sleeper2,box_alarms_max_term,ING,0, 106,0,507,1104436975,0,localhost,0,0,2365,1,"Cannot TERMINATE Job: box_alarms_sleeper2 because its in the STARTING state- Try later", 0,30-dec-2004 15:02:55,1,2,30-dec-2004 15:02:55

Each event occupies one row in the archive. By default, a comma (,) delimits each column.

ujo_chkpnt_rstart Archives data from the ujo_chkpnt_rstart table to files named archived_chkpnt_rstart.ING.MM.dd.yyyy.hh.mm.ss, where MM.dd.yyyy.hh.mm.ss indicates the month, day, year, hour, minute, and second at which the archive was created. The format of each record in the archived_chkpnt_rstart.ING.* file is as follows:

Page 66: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

dest_machine,dest_app,as_evt_time,ubc_name,ubc_jobnumbr, ubc_sysid,ubc_date,ubc_time,ubc_procid,ubc_userid, ubc_compcode,ubc_jobname,ubc_setname,ubc_jobnumb,ubc_server, ubc_from_sysid,enefill,ubt_cputime,ubt_errcod

Each record occupies one row in the archive. By default, a comma (,) delimits each column.

OPTIONS -A Copies information to an archive file before deleting it. If you omit the -A option, the information is deleted without archiving.

-B batch_size (Optional) Specifies the number of events to archive at a time. This value can be a number in the range 1 to 50000.

Default: 1000

Note: Use the default unless the database is dangerously full and the transaction log is likely to become full if 1000 events are archived at once. Because the database transaction file records each transaction (in this case, the deletion of a single event), and the transaction file shares file space with the actual data, you should only archive a few events at a time when the amount of available file space is low. If there is ample space in the transaction log file, a larger value may be specified to reduce the archival time.

Limits: This value can be a number in the range 1 to 50000.

-C delimiter Specifies a character to use as a delimiter for columns in output archive files. This value can be one charac- ter in length.

Default: Comma (,)

-d directory_name

Identifies the directory in which to store archived data. If you omit this option, the archive_events archives data to the default directory named $AUTOUSER/archive.

-D data_source For Ingres r3 Open Source and Sybase databases, data_source is in the format data_server:database. It identifies the data server and database from which events are to be archived.

For the Oracle database, data_source is in the format TNSname. It indicates the TNS alias name of the Oracle dataserver from which events are to be archived.

-I idletime

Page 67: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

Specifies the number of seconds to wait before timing out the SQL connection. This value is used only by Sybase (Oracle silently ignores it). When archiving large ujo_proc_event tables, set idletime to a large number to prevent your SQL connection from timing out. If the default setting is insufficient, increase it in 300 second increments. If idletime is larger than the DBLibWaitTime parameter value (in the configuration file), archive_events will use the new timeout for the current session only.

Default: 300

-j num_days Deletes records older than num_days from the ujo_job_runs table. num_days indicates the number of days to leave events in the database. When a row in the table exceeds this value, it is deleted.

-l num_days Deletes information older than num_days from the ujo_audit_info and ujo_audit_msg tables. num_days indi- cates the number of days to leave information in the database. When a row in the table exceeds this value, it is deleted.

-n num_days Deletes records older than num_days from the ujo_proc_event table. num_days indicates the number of days to leave events and their associated alarms in the database. When a row in the table exceeds this value, it is deleted.

-r num_days Deletes records older than num_days from the ujo_chkpnt_rstart table. num_days indicates the number of days to leave information in the database. When a row in the table exceeds this value, it is deleted.

EXAMPLES archive_events -A -n 5

Copy all events in the events table older than 5 days to the default archive file, and delete it from the database.

archive_events -A -d /my_archive -j 5

Copy all job_runs statistics older than 5 days to a specified archive directory, and delete them from the database.

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup- port is available 24 hours a day, 7 days a week.

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

Page 68: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

SEE ALSO as_info(8), as_safetool(8), as_server(8), auto_svcdesk(8), autoaggr(8), autodwp(8), autocal_asc(8), autoflags(8), autoping(8), autorep(8), autosec_test(8), autostatad(8), autostatus(8), autosys(8), autosyslog(8), autosys_secure(8), autotimezone(8), autotrack(8), chase(8), chk_auto_up(8), clean_files(8), cron2jil(8), DBMaint(8), dbstatistics(8), eventor(8), get_auto_event(8), jil(8), job_delete(8), job_depends(8), monbro(8), sendevent(8), time0(8), xql(8), zql(8)

Man Autoaggr AutoSys 1

Unicenter AutoSys JM Commands autoaggr(8)

NAME autoaggr - Aggregates Unicenter AutoSys Job Management (JM) data

SYNOPSIS autoaggr [-d] [-h] [-m] [-w] [-x]

DESCRIPTION Aggregates Unicenter AutoSys JM data into hourly, daily, weekly, and monthly tables. This data is used by other pro- grams to generate timely reports.

The benefit of autoaggr is that it can be run at non-critial workload times to collect and aggregate Unicenter AutoSys JM data. This significantly reduces the time to generate reports, since the data points for reports are readily available rather than generating them on demand.

Note: When aggregation begins, lower aggregation is per- formed before starting the selected aggregation. For exam- ple, if -d (daily) is specified, hourly data is aggregated before starting daily.

OPTIONS -d Aggregate daily data.

-h Aggregate hourly data. This is the default.

-m Aggregate monthly data.

-w Aggregate weekly data.

-x Display the version number of autoaggr.

aggregator -w

Collect and total weekly Unicenter AutoSys JM data. Hour and daily data will be aggregated before weekly data is aggregated.

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup-

Page 69: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

port is available 24 hours a day, 7 days a week.

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

SEE ALSO archive_events(8), as_info(8), as_safetool(8), as_server(8), auto_svcdesk(8), autodwp(8), autocal_asc(8), autoflags(8), autoping(8), autorep(8), autosec_test(8), autostatad(8), autostatus(8), autosys(8), autosyslog(8), autosys_secure(8), autotimezone(8), autotrack(8), chase(8), chk_auto_up(8), clean_files(8), cron2jil(8), DBMaint(8), dbstatistics(8), eventor(8), get_auto_event(8), jil(8), job_delete(8), job_depends(8), monbro(8), sendevent(8), time0(8), xql(8), zql(8)

Man AutotrackAutoSys 1

Unicenter AutoSys JM Commands autotrack(8)

NAME autotrack - Tracks changes to the Unicenter AutoSys Job Management (JM) database

SYNOPSIS autotrack [-D data_source] [-F "from_time"] [-h] [-J job_name|ALL] [-l] [-m machine] [-t type] [-T "to_time"] [-u level] [-U user_name] [-v]

DESCRIPTION Tracks changes to the database (for example, job definition changes, sendevent calls, and job overrides) and writes this information to the database.

When you query for this information, autotrack prints a report to the screen, or you can use standard UNIX file redirection to save the output to a file.

autotrack can track changes made to job definitions from JIL or the GUI. It cannot track changes made directly to the database through SQL commands.

This command is especially useful in sites that require careful monitoring of the job definition environment or where multiple users have permission to edit job definitions or send Unicenter AutoSys JM events.

To start tracking, use the autotrack -u command to set the tracking level to 1 or 2, depending on the amount of detail to track. By default, autotrack is set to level 0 (no track- ing). autotrack -l displays the current tracking level.

Note: Only the Exec or Edit Superuser can change the track- ing level.

Use autotrack with one or more query options (-J, -U, -m, -F, -T, and -t) to request reporting on a specific job, user, machine, time window, or event type. Specifying auto- track with no arguments retrieves information on all events,

Page 70: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

but omits the detail.

Unicenter AutoSys JM stores autotrack output in two tables:

ujo_audit_info

ujo_audit_msg

By default, these tables reside in the same database (or tablespace) as all other Unicenter AutoSys JM tables. You can relocate these tables to another database (or tablespace) to insulate event processing from an auditing table overflow. If you frequently unload all your jobs from the database and reload, you should turn off autotrack tem- porarily to prevent the database from growing unnecessarily large.

Running archive_events will help prevent the database from filling up with autotrack output. The archive_events -l num_of_days command archives information older than the specified number of days from the ujo_audit_info and ujo_audit_msg tables.

OPTIONS -D data_source For Ingres r3 Open Source and Sybase databases, data_source is in the format data_server:database. It identifies the data server and database to search for the specified information.

For the Oracle database, data_source is in the format TNSname. It indicates the TNS alias name of the Oracle dataserver to be searched for the specified informa- tion.

Normally, autotrack consults the Unicenter AutoSys JM configuration file ($AUTOUSER/config.$AUTOSERV) to determine to which database to connect. This option enables autorep to report on any Unicenter AutoSys JM event server on the network.

-u level Updates the level of detail that autotrack writes to the database. Set level to one of the following:

0 The default setting, and writes no tracking detail.

1 Tracks the following and condenses each tracked event to a one-line summary:

* Job, calendar, monitor, browser, and machine definition changes

* Job overrides

* autosys_secure, autotrack, and sendevent calls

Page 71: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

2 Tracks the same information as level 1, but also writes the entire job definition for overrides and job definition changes. Level 2 is very database intensive and will significantly impair JIL per- formance.

-l Displays the current tracking level (0, 1, or 2).

-h Displays help for the command.

-v Activates verbose autotrack reporting.

-F "from_time" Reports changes or events that occur from the specified date and time forward. Specify this value in MM/dd/[yy]yy hh:mm format. You must enclose this value in quotation marks (").

When you enter a two-digit year, Unicenter AutoSys JM saves the setting to the database as a four-digit year. If you enter 79 or less, the product precedes your entry with 20; if you enter 80 or greater, the product precedes your entry with 19.

-T "to_time" Reports changes or events that occur up to the speci- fied date and time forward. Specify this value in MM/dd/[yy]yy hh:mm format. You must enclose this value in quotation marks (").

When you enter a two-digit year, Unicenter AutoSys JM saves the setting to the database as a four-digit year. If you enter 79 or less, the product precedes your entry with 20; if you enter 80 or greater, the product precedes your entry with 19.

-U user_name Reports changes or events initiated by the specified user.

-m machine Reports changes or events initiated from the specified machine.

-J job_name Identifies the job on which to report. To report on all jobs, enter -J ALL. You can use the percent (%) and underscore (_) characters as wildcards in this value. The SQL ESCAPE option is not supported for wildcards.

-t type Reports a specific event. Set type to one of the fol- lowing:

A Reports calls generated by the autosys_secure command.

B Reports Monitor/Browser definition changes gen- erated by JIL or the GUI.

C Reports calendar definition changes generated by

Page 72: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

the autocal_asc command or the GUI.

J Reports job definition changes, sendevent -J, or overrides to a specific job generated by JIL or the GUI.

M Reports machine definition changes generated by JIL or the GUI.

O Reports override definition changes generated by JIL or the GUI.

S Reports calls generated by the sendevent command invoked through JIL or the GUI.

T Reports calls generated by the autotrack command (for example, changes to the tracking level).

EXAMPLES autotrack -u 1 -J NightlyReport -v

Requests level 1 verbose reporting about a job named NightlyReport. Sample output is shown below:

jane@taurus 11/21 10:04:54 job definition change :::::::::::::::::::::::::::::::::::::::::::::::: jane@taurus 11/21 10:05:49 job definition change command: date :::::::::::::::::::::::::::::::::::::::::::::::: jane@taurus 11/21 10:06:29 sendevent issued

autotrack u -2 -J NightlyReport -v

Requests level 2 verbose reporting about a job named NightlyReport.

autotrack -F "11/12/2004 01:00" -J NightlyReport

View all the changes that occurred to the job Night- lyReport after 1 a.m. on November 12, 2004.

autotrack -U sue -F "11/16/2004 01:00" -T "11/17/2004 23:59"

View all changes made by user sue over the weekend of November 16 and 17, 2004.

autotrack -t A -m gemini

View all autosys_secure changes that occurred from the machine gemini. The output from this command would resemble the following:

jane@gemini 11/05 19:08:12 autosys_secure change

Page 73: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

EDIT Super-User: jane EXEC Super-User: jane password: **************

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup- port is available 24 hours a day, 7 days a week.

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

SEE ALSO archive_events(8), as_info(8), as_safetool(8), as_server(8), auto_svcdesk(8), autoaggr(8), autodwp(8), autocal_asc(8), autoflags(8), autoping(8), autorep(8), autosec_test(8), autostatad(8), autostatus(8), autosys(8), autosyslog(8), autosys_secure(8), autotimezone(8), chase(8), chk_auto_up(8), clean_files(8), cron2jil(8), DBMaint(8), dbstatistics(8), eventor(8), get_auto_event(8), jil(8), job_delete(8), job_depends(8), monbro(8), sendevent(8), time0(8), xql(8), zql(8)

Man Clean FilesAutoSys 1

Unicenter AutoSys JM Commands clean_files(8)

NAME clean_files - Removes Unicenter AutoSys JM Agent log files

SYNOPSIS clean_files -d days

DESCRIPTION Deletes old agent log files.

clean_files searches the database for machines on which jobs were started, then sends a command to the agents on the returned machines to purge all log files from the machines agent log directory (specified by AutoRemoteDir in the con- figuration file).

Agent log files are deleted automatically only when a job finishes normally, and when the CleanTmpFiles parameter in the configuration file specifies to delete log files at the end of each job. Because agent logs for failed jobs are not deleted and can use valuable disk space, it is recommended that you run clean_files daily as part of the regular DBMaint cycle.

Note: If you experience problems running jobs successfully, the agent log files are very useful diagnostic tools. In this case, you should not run clean_files or remove the agent log files until the problem has been diagnosed and resolved.

OPTIONS -d days Specifies that agent log files older than the number of

Page 74: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

days will be removed.

EXAMPLE clean_files -d 1

Delete all agent log files older than 1 day.

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup- port is available 24 hours a day, 7 days a week.

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

SEE ALSO archive_events(8), as_info(8), as_safetool(8), as_server(8), auto_svcdesk(8), autoaggr(8), autodwp(8), autocal_asc(8), autoflags(8), autoping(8), autorep(8), autosec_test(8), autostatad(8), autostatus(8), autosys(8), autosyslog(8), autosys_secure(8), autotimezone(8), autotrack(8), chase(8), chk_auto_up(8), cron2jil(8), DBMaint(8), dbstatistics(8), eventor(8), get_auto_event(8), jil(8), job_delete(8), job_depends(8), monbro(8), sendevent(8), time0(8), xql(8), zql(8)

Man Job DeleteAutoSys 1

Unicenter AutoSys JM Commands job_delete(8)

NAME job_delete - Cleans a Unicenter AutoSys Job Management (JM) ujo_job_delete database table

SYNOPSIS job_delete -N number_of_days

DESCRIPTION Cleans the Unicenter AutoSys JM ujo_job_delete table during database maintenance. When you use either jil or jobdef to delete a job, job_delete inserts an entry that consists of the time at which the job was deleted and the ID of the user who deleted it in the ujo_job_delete table. The job_delete command removes all the entries older than the number of days specified in the -N number_of_days option.

OPTIONS -N number_of_days Deletes records older than number_of_days from the ujo_job_delete table.

EXAMPLES job_delete -N 7

Remove all entries that have been in the ujo_job_delete table for seven or more days.

TECHNICAL SUPPORT For further technical assistance with this command, contact

Page 75: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup- port is available 24 hours a day, 7 days a week.

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

SEE ALSO archive_events(8), as_info(8), as_safetool(8), as_server(8), auto_svcdesk(8), autoaggr(8), autodwp(8), autocal_asc(8), autoflags(8), autoping(8), autorep(8), autosec_test(8), autostatad(8), autostatus(8), autosys(8), autosyslog(8), autosys_secure(8), autotimezone(8), autotrack(8), chase(8), chk_auto_up(8), clean_files(8), cron2jil(8), DBMaint(8), dbstatistics(8), eventor(8), get_auto_event(8), jil(8), job_depends(8), monbro(8), sendevent(8), time0(8), xql(8), zql(8)

Man XqlAutoSys 1

Unicenter AutoSys JM Commands xql(8)

NAME xql - Provides access to the Sybase database

SYNOPSIS xql -U username -P password -S data_server -D database -C "command"|-f input_file [-d delimiter] [-h] [-T timeout_interval] [-w column_width] [-x] [-?]

DESCRIPTION A Unicenter AutoSys Job Management (JM) utility that accesses the Sybase dataserver from any properly configured client. xql can be used in interactive mode to interface with the dataserver (like isql), as a command issued at the UNIX command line, or in a shell script (batch mode) to send requests to the server and output results.

batch mode

To execute xql in batch mode and send results to standard output, specify either the -C or -f option, or redirect standard input into xql. The -C option reads SQL input from the command argument. The -f option reads SQL input from the file specified in input_file. Batch mode is particularly useful for embedding SQL statements inside of shell scripts. (An example script is given below.) When using the -C option, you must enter "go" to mark the end of the SQL statement.

interactive mode

To execute xql interactively, omit the -C and -f options. The xql prompt looks similar to the following:

1>

The second token in the prompt (AUTOSYSDB in this example) displays the name of the data_server to which you are con- nected. The third token is the name of the database that you

Page 76: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

are currently in. At the xql prompt, enter commands in the form of Transact SQLSybases extended SQL language. The SQL can extend across multiple lines. To execute the SQL, enter go on a new line. For example:

1> select * from ujo_alamode 2> go

Help is available in interactive mode by typing help at the xql command prompt.

There is a history feature which allows you to re-use past commands stored in the buffer. Also, an editing feature, which uses emacs or vi, is available to edit the buffer before sending it to the server.

To exit xql, enter exit at the prompt and press either <Return> or <Control+C>.

xql is provided only for use with the Sybase database. Use zql to interact with the Oracle database.

OPTIONS -U username The name of the Sybase user to log in as, and can be any valid Sybase user. This is typically autosys for the AutoSys user, or sa for the system administrator.

-P password The Sybase password for the specified username.

-S data_server The name of the Sybase data server to be accessed. The default value is taken from the environment variable $DSQUERY. If no server is specified and $DSQUERY is not defined, xql terminates.

-D database The Sybase database to be accessed. The value is taken from the $DSDB environment variable if no database is specified, If $DSDB is not defined, the default data- base for the identified user is taken from the user table in the master database. For the user sa, this is typically master; for autosys, it is normally autosys.

-C "command" An SQL statement to be passed to Sybase and executed in batch, rather than interactive mode. The SQL statement must be wrapped in double quotes. Multiple lines of input, as well as multiple Sybase commands, can be entered in a single call. (See the examples below.) You must enter go to mark the end of the SQL statement. xql sends the command to the dataserver, and sends the results to standard output. This option is particularly useful for embedding SQL commands in shell scripts.

SQL is not addressed in detail in this guide, please see the Sybase SQL Users Guide for syntax details.

-f input_file A text file containing SQL statements to be passed to Sybase, to be executed in batch, rather than interac-

Page 77: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

tive mode. xql sends this file of commands to the dataserver, and sends the results to standard output.

-d delimiter The delimiter to be used for output, which is written to standard output. The default delimiter is the pipe symbol (|), which is placed between all output fields. This option is useful for creating a flat file of data that uses delimiters for processing at a later time. The delimiter is specified as a single character. Be sure not to use a character that your shell could mis- takenly interpret, especially the asterisk symbol (*).

-T timeout_interval Specifies a period of time, in seconds, after which xql terminates the session if no activity has occurred. Any number of seconds may be specified. To specify that xql should never terminate the session, specify 0. The default is 60 seconds.

-h Indicates that the output will not contain header information.

-w column_width Specifies the width of the columns to display in the output.

-x Displays the xql version information.

-? Displays the xql usage statement.

EXAMPLES The following examples assume that the Sybase account and password are myauto and autopswd respectively. The examples also assume that the dataserver defaults to AUTOSYSDB, and the database defaults to autosys.

To select the job ID and job name (the field names are assigned by AutoSys) from the job table in the default dataserver and database, enter the following:

xql -Umyauto -Pautopswd

Then, at the xql prompt, enter:

1> select joid,

2> job_name

3> from job

4> go

Assuming that there are only three jobs, the output is:

joid job_name -------------------------------------

101tester

106test1

Page 78: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

107domail.tibet

To exit the interactive session, enter:

1> exit

To obtain the same information in batch mode by specifying the SQL statement at the command line, enter:

xql -Umyauto -Pautopswd -C "select joid, job_name from job"

The output, with the default delimiter, appears as follows:

101|tester

106|test1

107|domail.tibet

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup- port is available 24 hours a day, 7 days a week.

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

SEE ALSO archive_events(8), as_info(8), as_safetool(8), as_server(8), auto_svcdesk(8), autoaggr(8), autodwp(8), autocal_asc(8), autoflags(8), autorep(8), autosec_test(8), autostatad(8), autostatus(8), autosys(8), autosyslog(8), autosys_secure(8), autotimezone(8), autotrack(8), chase(8), chk_auto_up(8), clean_files(8), cron2jil(8), DBMaint(8), dbstatistics(8), eventor(8), get_auto_event(8), jil(8), job_delete(8), job_depends(8), monbro(8), sendevent(8), time0(8), zql(8)

Man ZqlAutoSys 1

Unicenter AutoSys JM Commands zql(8)

NAME zql - Provides access to the Oracle database

SYNOPSIS zql -U username -P password -S system_identifier -c "command"|-f input_file [-d delimiter] [-b number] [-h] [-q] [-Q] [-x] [-?]

DESCRIPTION A Unicenter AutoSys Job Management (JM) utility that accesses the Oracle database from any properly configured client. zql can be used as a command issued at the UNIX com- mand line or in a shell script to send requests to the server and output results.

To execute zql and send results to standard output, specify

Page 79: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

either the -c or -f option, or redirect standard input into zql. The -c option reads SQL input from the command argument. The -f option reads SQL input from the file specified in input_file.

zql is provided only for use with the Oracle database. Use xql to interact with the Sybase database.

OPTIONS -U username The name of the Oracle user to log in as, and can be any valid Oracle user. This is typically autosys for the AutoSys user, or SYS for the system administrator.

-P password The Oracle password for the specified username.

-S system_identifier The name of the Oracle system identifier as defined in the tnsnames.ora file.

-b number Specifies a number of rows that Oracle will work with at one time. For example, specifying -b 500 in conjunc- tion with a statement to delete rows from the ujo_event table will delete 500 rows at a time.

-c "command" An SQL statement to be passed to Oracle. The SQL state- ment must be wrapped in double quotes. Multiple lines of input, as well as multiple Oracle commands, can be entered in a single call. zql sends the command to the database, and sends the results to standard output.

SQL is not addressed in detail in this guide, please see the Oracle SQL*Plus Users Guide and Reference for syntax details.

-d delimiter The delimiter to be used for output, which is written to standard output. The default delimiter is the pipe symbol (|), which is placed between all output fields. This option is useful for creating a flat file of data that uses delimiters for processing at a later time. The delimiter is specified as a single character. Be sure not to use a character that your shell could mis- takenly interpret, especially the asterisk symbol (*).

-f input_file A text file containing SQL statements to be passed to Oracle. zql sends this file of commands to the dataserver, and sends the results to standard output.

-h Indicates that the output will not contain header information.

-q -Q Specifies the level of quietness in the output. For example, -Q discards all messages and column headings from sqlplus, leaving only data in the output.

Page 80: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

-x Displays the zql version information.

-? Displays the zql usage statement.

EXAMPLES The following examples assume that the Oracle user and pass- word are myauto and autopswd respectively. The examples also assume that the system identifier is orcl.

To select the job ID and job name (the field names are assigned by AutoSys) from the job table in the orcl data- base, enter the following command from the UNIX command line:

zql -Umyauto -Pautopswd -Sorcl -c "select joid, job_name from job go"

Assuming that there are only three jobs, the output appears as follows:

101|tester

106|test1

107|domail.tibet

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup- port is available 24 hours a day, 7 days a week.

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

SEE ALSO archive_events(8), as_info(8), as_safetool(8), as_server(8), auto_svcdesk(8), autoaggr(8), autodwp(8), autocal_asc(8), autoflags(8), autorep(8), autosec_test(8), autostatad(8), autostatus(8), autosys(8), autosyslog(8), autosys_secure(8), autotimezone(8), autotrack(8), chase(8), chk_auto_up(8), clean_files(8), cron2jil(8), DBMaint(8), dbstatistics(8), eventor(8), get_auto_event(8), jil(8), job_delete(8), job_depends(8), monbro(8), sendevent(8), time0(8), xql(8)

Man As Safetool AutoSys 1

Unicenter AutoSys JM Commands as_safetool(8)

NAME as_safetool - Maintain Unicenter AutoSys Job Management (JM) authentication certificates

SYNOPSIS as_safetool [-b hostname] [-f|-h|-q|-s|-S|-x] [-a username|-g username|-r username] [-c instance|-i instance|-u instance]

Page 81: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

DESCRIPTION Unicenter AutoSys JM integrates with eTrust IAM, adding a comprehensive security layer around itself. Integrating with ETrust IAM results in consistent identity management, increased access security, comprehensive in-depth auditing, reduced application development costs and improved respon- siveness to business and regulatory demands. With as_safetool authentation certificates can be generated, and security policies can be installed or removed.

OPTIONS -a username Identifies the eTrust IAM server administrative account to connect to the eTrust IAM backend server. If -a username is not specified, the user EiamAdmin is used.

-b hostname Identifies the eTrust IAM server host name. hostname is required for -c, -i, and -u.

-c instance Generate an authentication certificate for the Uni- center AutoSys JM instance. instance identifies the Unicenter AutoSys JM instance name.

-f Force the reinstallation of the instance policies if they are already installed. -f is used in conjunction with -i.

-g username Grant application instance administrative privileges. username identifies the user.

-h Display the help for as_safetool.

-i instance Install the security policies for the Unicenter AutoSys JM instance. instance identifies the Unicenter AutoSys JM instance name. Use -f to force the security policies to be reinstalled.

-q Quiet mode. Suppress display of status and error mes- sages. This option is used in conjunction with -c, -i, and -u.

-r username Remove application instance administrative privileges. username identifies the user.

-s Show all instances with installed security policy.

-S Show all application instance administrators.

-u instance Uninstall the security policies for the Unicenter AutoSys JM instance. instance identifies the Unicenter AutoSys JM instance name. If this is the last instance, the Unicenter AutoSys JM product is unregistered from eTrust IAM.

-x Display the version of as_safetool.

Page 82: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

NOTESASSAFETOOLPW must be set to to the EiamAdmin user account pass-word. For options -c, -g, -i, -s, -S, and -u, the environment variable

EXIT CODES 2 The EiamAdmin user account password is invalid.

3 The Unicenter AutoSys JM registration to eTrust IAM failed.

4 The Unicenter AutoSys JM security policy install failed.

5 The Unicenter AutoSys JM security policy uninstall failed.

6 The Unicenter AutoSys JM unregistration from eTrust IAM failed.

7 The environment variable ASSAFETOOLPW is not defined.

8 The certificate generation failed.

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup- port is available 24 hours a day, 7 days a week.

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

SEE ALSO archive_events(8), as_info(8), as_server(8), auto_svcdesk(8), autoaggr(8), autodwp(8), autocal_asc(8), autoflags(8), autoping(8), autorep(8), autosec_test(8), autostatad(8), autostatus(8), autosys(8), autosyslog(8), autosys_secure(8), autotimezone(8), autotrack(8), chase(8), chk_auto_up(8), clean_files(8), cron2jil(8), DBMaint(8), dbstatistics(8), eventor(8), get_auto_event(8), jil(8), job_delete(8), job_depends(8), monbro(8), sendevent(8), time0(8), xql(8), zql(8)

Man Autosec TestAutoSys 1

Unicenter AutoSys JM Commands autosec_test(8)

NAME autosec_test - Obtain the access level of Unicenter AutoSys Job Management (JM) assets from the security subsystem

SYNOPSIS autosec_test [CALENDAR resource| GLOBAL_VAR resource| JOB resource| MACHINE resource] [C|D|R|W|X] [username]

Page 83: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

autosec_test [CYCLE resource| VIEW resource] [C|D|R|W] [username]

autosec_test [APPL resource| CONTROL resource| GROUP resource| JOBLOG resource| LIST resource| OWNER resource] [username]

autosec_test [STAT]

DESCRIPTION Simulates a call to the security subsystem issued by a Uni- center AutoSys JM application for a given secured asset.

Use autosec_test to test the basic communication between a Unicenter AutoSys JM secured application and the security subsystem as well as to verify the enforcement of the secu- rity policies for Unicenter AutoSys JM assets (job, calen- dars, machines, etc). If Unicenter AutoSys JM is running under an external security model, autosec_test will return a message indicating whether a security access check for a given resource to an operation (execute, write, read, create, or delete) passes or fails as governed by the secu- rity policy. If no username value is specified, the applica- tion issues a security check as the current logged-on user.

OPTIONS APPL resource Issues a security check to test the execute access level of the specified job application resource.

CALENDAR resource Issues a security check to test the given access level of the specified calendar resource.

autosec_test JOB good_test X

Simulate a request made by the Unicenter AutoSys JM secured application to the security subsystem to determine if the current user has access to issue a STARTJOB event for job good_test.

If the user has execute access to the job, the follow- ing message is displayed:

Security check passed!

If the user does not have execute access to the job, the following message is displayed:

Security check failed!

autosec_test JOB good_test X [email protected]

Simulate a request made by the Unicenter AutoSys JM secured application to the security subsystem to deter- mine if user [email protected] can issue a STARTJOB event for job good_test.

Page 84: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

If [email protected] has execute access to the job, the fol- lowing message is displayed:

Security check passed!

If [email protected] does not have execute access to the job, the following message is displayed:

Security check failed!

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup- port is available 24 hours a day, 7 days a week.

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

SEE ALSO archive_events(8), as_info(8), as_safetool(8), as_server(8), auto_svcdesk(8), autoaggr(8), autodwp(8), autocal_asc(8), autoflags(8), autoping(8), autorep(8), autostatad(8), autos- tatus(8), autosys(8), autosyslog(8), autosys_secure(8), autotimezone(8), autotrack(8), chase(8), chk_auto_up(8), clean_files(8), cron2jil(8), DBMaint(8), dbstatistics(8), eventor(8), get_auto_event(8), jil(8), job_delete(8), job_depends(8), monbro(8), sendevent(8), time0(8), xql(8), zql(8)

Man Autosys SecureAutoSys 1

Unicenter AutoSys JM Commands autosys_secure(8)

NAME autosys_secure - Maintain Unicenter AutoSys Job Management (JM) security features

SYNOPSIS autosys_secure [-a|-c|-d|-s] [-editu|-execu] [-h] [-host domain_or_host] [-o old_password] [-p password] [-q] [-u user@host_or_domain]

DESCRIPTION Specifies the Edit Superuser, Exec Superuser, database pass- word, and remote authentication method for Unicenter AutoSys JM. You can also use autosys_secure to enable eTrust secu- rity in Unicenter AutoSys JM and perform basic eTrust administration.

Edit Superuser and Exec Superuser

Two users have administrator privileges: the Edit Superuser and the Exec Superuser.

The Edit Superuser is the only user with permission to do the following:

Page 85: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

* Edit or delete any job, regardless of who owns it and what permissions are set for it.

* Change the owner of a job.

* Change the database password, remote authentica- tion method, and Windows user passwords.

The Exec Superuser is the only user with permission to do the following:

* Start or kill any job, regardless of the execution permissions on the specified job. This user can affect how jobs run, typically by issuing the sen- devent command.

* Shut down the scheduler (by sending the STOP_DEMON event).

Database Password

The database password is used by the scheduler and command-line utilities to securely access the database (Event Server). By default, this password is stored in the database as autosys, but the Edit Superuser can change it using autosys_secure.

Every Event Server in an instance must have the same database password. If you are running in dual-server mode, autosys_secure changes the password on both Event Servers.

Note: If Unicenter AutoSys JM has rolled over to single-server mode, do not change the password until you have re-established dual-server mode.

Remote Authentication Method

Unicenter AutoSys JM uses remote authentication methods to verify the following:

* Whether a user has permission to start a job on a client.

* Whether a scheduler has permission to start a job on a client.

The remote authentication methods are stored in the database and are referenced when a client initializes.

Running autosys_secure

Before using autosys_secure to change the database password or the remote authentication method, you must shut down all processes that access the database (for example, schedulers, GUIs, and agents) and ensure that no jobs are running.

Running autosys_secure in Interactive Mode

When the Edit Superuser invokes autosys_secure, the

Page 86: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

following menu displays:

AutoSys Security Utility.

Please select from the following options: [1] Activate EIAM instance security. [2] Manage EDIT/EXEC superusers. [3] Change AutoSys database password. [4] Change AutoSys remote authentication method. [5] Manage AutoSys User@Host users. [6] Get Encrypted Password for Adapters. [0} Exit AutoSys Security Utility.

When a user other than the Edit Superuser invokes autosys_secure, the following menu displays:

AutoSys Security Utility. Only the AutoSys EDIT superuser has access to all options! Please select an action to perform: Options 1 thru 4 for superusers only [5] Manage AutoSys User@Host users. [6] Get Encrypted Password for Adapters. [0} Exit AutoSys Security Utility.

Any user that knows an existing user ID and password combination can change the password or delete the user from the database.

Running autosys_secure from the Command Line

You can run autosys_secure from the command line to enter, change, or delete Windows user IDs and pass- words.

This option allows you to write interactive programs, scripts, or batch files to enter or modify large numbers of user IDs and passwords, if necessary. To do this, you can use any scripting language, such as Win- dows Batch or Perl (Perl is shipped with Unicenter AutoSys JM for Windows).

OPTIONS -a Adds the user ID specified in the -u option with the password specified in the -p option.

-c Changes the existing password specified in the -o option for the user specified in the -u option to the new password specified in the -p option.

-d Deletes the existing password specified in the -o option for the user specified in the -u option.

-s Lists the existing users.

-editu Defines the user specified by -u user@host_or_domain as an Edit Superuser.

-execu Defines the user specified by -u user@host_or_domain as an Exec Superuser.

Page 87: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

-h Displays help for the command.

-host domain_or_host Changes the host_or_domain value for the user specified by -u user@host_or_domain. To specify a NULL host_or_domain, set this option to -host

-o old_password Specifies an existing password. To specify a NULL pass- word, set this option to -o. This option is required when you use the -c or -d options.

-p password Specifies a new password. To specify a NULL password, set this option to -p. This option is required when you use the -a or -c options.

Windows passwords can be up to 14 characters in length. Passwords are case-sensitive and can contain any char- acter except a space.

-q Runs autosys_secure in quiet mode so it does not display messages. In quiet mode, use one of the follow- ing commands to check the return code to see if there were errors:

csh echo $status

sh or ksh echo $?

When autosys_secure is successful, the return value is 0; when it is unsuccessful, the value is 1.

This parameter is only valid when you use the -c option with the -editu or -execu option.

-u user@host_or_domain Specifies the Windows user whose credentials you are defining. Windows user names can be from 1 to 20 char- acters in length and can contain all characters except the following:

* [ ] + : ; " < > . , ? / \ |

EXAMPLES autosys_secure

Start autosys_secure in interactive mode.

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup- port is available 24 hours a day, 7 days a week.

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

SEE ALSO archive_events(8), as_info(8), as_safetool(8), as_server(8),

Page 88: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

auto_svcdesk(8), autoaggr(8), autodwp(8), autocal_asc(8), autoflags(8), autoping(8), autorep(8), autosec_test(8), autostatad(8), autostatus(8), autosys(8), autosyslog(8), autotimezone(8), autotrack(8), chase(8), chk_auto_up(8), clean_files(8), cron2jil(8), DBMaint(8), dbstatistics(8), eventor(8), get_auto_event(8), jil(8), job_delete(8), job_depends(8), monbro(8), sendevent(8), time0(8), xql(8), zql(8)

Man AutotimezoneAutoSys 1

Unicenter AutoSys JM Commands autotimezone(8)

NAME autotimezone - Maintains the Unicenter AutoSys Job Manage- ment (JM) ujo_timezones table

SYNOPSIS autotimezone [-a alias zone] [-c city [-d alias|city] [-l] [-q alias|city|timezone|sql_pattern] [-t timezone]

DESCRIPTION Query, add, and delete entries in the Unicenter AutoSys JM ujo_timezones database table. The ujo_timezones table maps cities and common aliases to valid POSIX TZ environment variables. The table contains entries for all common time zones recognized by most operating systems, and for many cities.

You can use the timezone attribute in JIL to specify entries from the ujo_timezones table in a job definition.

The ujo_timezones table has three entry types: Zone, Alias, and City, as shown in the following excerpt from the ujo_timezones table:

Entry Type Zone ____________ ________ _________________

US/Pacific Zone PST8PDT US/Samoa Alias Pacific/Samoa UTC Alias GMT+0 Vancouver City Canada/Pacific

All Alias and City Types are eventually resolved to Zone Types. The Zone Types resolved to TZ Variables (in the Zone column) that correspond to those recognized by the operating system for the machine on which the Event Server is running.

For more information about the format of the TZ variable, see your system time, timezone, or environ man page.

When processing a job definition that includes a time zone, Unicenter AutoSys JM tries to resolve the specified time zone with the zones known to the operating system. If it is not found there, Unicenter AutoSys JM looks up the zone in the ujo_timezones table. If the time zone specification is not a TZ variable, the product reads the ujo_timezones table

Page 89: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

repeatedly until the specification resolves to a TZ vari- able. For example, assume a job definition included the attribute timezone:Berlin. The product resolves Berlin to Europe/Berlin the first time it reads the table. The second time the product reads the table, it resolves Europe/Berlin to METS-1METD, which is a TZ variable. If a time zone is not resolved after five lookups, the product considers it invalid and the job specifying the time zone fails.

Important! If you change the ujo_timezones table, you must not change or delete entries that are used by pre-existing STARTJOB and other events that were scheduled using the old ujo_timezones table.

OPTIONS -a alias zone Associates a name with a time zone and adds it to the ujo_timezones table as an alias entry. For example, you could add the alias US/Mountain for the time zone MST.

The alias value can be up to 50 alphanumeric characters in length and can include slash (/), hyphen (-), and underscore (_) characters.

The zone value must be a time zone recognized by the operating system.

Separate the city and zone values with a space.

-c city zone Associates a city with a time zone and adds it to the ujo_timezones table as an alias entry. Entries added to the table with the -c option display as Type City in a listing of the ujo_timezones table.

The city value can be up to 50 alphanumeric characters in length and can include slash (/), hyphen (-), and underscore (_) characters.

The zone value must be a time zone recognized by the operating system.

Separate the city and zone values with a space.

-t timezone Adds a time zone entry to the ujo_timezones table. A timezone value must be of the format of a valid POSIX standard timezone (TZ) environment variable.

-d alias|city Deletes the entry associated with the specified alias or city from the ujo_timezones table.

-q alias|city|timezone|sql_pattern Queries the ujo_timezones table for the settings of the specified alias, city, or time zone. You can use the percent (%) and underscore (_) characters as wildcards in this value.

-l Lists all entries in the ujo_timezones table.

Page 90: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

EXAMPLES autotimezone -c San-Jose US/Pacific

Add a city named San-Jose to the ujo_timezones table.

autotimezone -d San-Jose

Delete the city named San-Jose from the ujo_timezones table.

autotimezone -q d%

Query the ujo_timezones table for all entries beginning with the letter d.

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup- port is available 24 hours a day, 7 days a week.

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

SEE ALSO archive_events(8), as_info(8), as_safetool(8), as_server(8), auto_svcdesk(8), autoaggr(8), autodwp(8), autocal_asc(8), autoflags(8), autoping(8), autorep(8), autosec_test(8), autostatad(8), autostatus(8), autosys(8), autosyslog(8), autosys_secure(8), autotrack(8), chase(8), chk_auto_up(8), clean_files(8), cron2jil(8), DBMaint(8), dbstatistics(8), eventor(8), get_auto_event(8), jil(8), job_delete(8), job_depends(8), monbro(8), sendevent(8), time0(8), xql(8), zql(8)

Man MonbroAutoSys 1

Unicenter AutoSys JM Commands monbro(8)

NAME monbro - Runs a Unicenter AutoSys Job Management (JM) moni- tor or report (browser)

SYNOPSIS monbro -N name [-B group] [-D [-I application] [-P poll_frequency] [-q]

DESCRIPTION Runs a monitor or report (browser) that has already been defined. Output from monbro goes to standard output.

When you configure a monitor with sound on, the monitor uses the sound capabilities of the machine on which it is run- ning. The sound clips must be pre-recorded, and the machine running monbro must have access to the $AUTOUSER/sounds directory.

The monitor or report definition must reside on the database for the instance you are accessing. monbro can connect to any database that the instance is configured to use.

Page 91: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

By default, monbro inspects the environment variables $AUTOSYS, $AUTOUSER and $AUTOSERV to determine which data- base to connect to. Use the -D option to override this default.

When you invoke monbro, Unicenter AutoSys JM verifies that you have read access to the jobs you are attempting to moni- tor.

OPTIONS -N name Identifies the monitor or report to run. To run all monitors or reports, specify -N ALL. You can use the percent (%) character as a wildcard in this value.

-B group Defines the group for which to run the command. When you also specify -I application, the specified command affects only items that match both -I application and -B group.

-D data_source For Ingres r3 Open Source and Sybase databases, data_source is in the format data_server:database. It indicates the name of the database to connect to retrieve events and the monitor or report definition.

For the Oracle database, data_source is in the format TNSname. It indicates the TNS alias name of the Oracle dataserver to be connected to retrieve events and the monitor or report definition..

-I application Defines the application for which to run the command. When you also specify -B group, the specified command affects only items that match both -I application and -B group.

-P poll_frequency For monitors only, poll_frequency defines the interval (in seconds) at which to poll the database.

Default: 10

-q Specifies that you want to display monbro definitions in JIL format.

EXAMPLES monbro -N mon1

Run a monitor called mon1 which is defined in the default database.

monbro -N mon1 -q

Run a monitor called mon1 which is defined in the default database and display the output in JIL format.

Sample output with the -q option:

Page 92: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

insert_monbro: xxx mode: m all_events: Y job_filter: a sound: N alarm_verif: N insert_monbro: xxx2 mode: b all_events: N alarm: Y all_status: N running: N success: Y failure: Y terminated: N starting: N restart: N job_filter: b job_name: box currun: N after_time: "02/05/2006 12:12"

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup- port is available 24 hours a day, 7 days a week.

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

SEE ALSO archive_events(8), as_info(8), as_safetool(8), as_server(8), auto_svcdesk(8), autoaggr(8), autodwp(8), autocal_asc(8), autoflags(8), autoping(8), autorep(8), autosec_test(8), autostatad(8), autostatus(8), autosys(8), autosyslog(8), autosys_secure(8), autotimezone(8), autotrack(8), chase(8), chk_auto_up(8), clean_files(8), cron2jil(8), DBMaint(8), dbstatistics(8), eventor(8), get_auto_event(8), jil(8), job_delete(8), job_depends(8), sendevent(8), time0(8), xql(8), zql(8)

Man AutosyslogAutoSys 1

Unicenter AutoSys JM Commands autosyslog(8)

NAME autosyslog - Displays Unicenter AutoSys Job Management (JM) log files

SYNOPSIS autosyslog [-e|-J job_name|-s] [-p]

DESCRIPTION Displays the scheduler or agent log file for the specified job. The agent and the scheduler write diagnostic messages to their respective logs as part of their normal operations and in response to detected error conditions.

The scheduler log contains a timestamped history of each

Page 93: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

event that occurs. Viewing this log is an alternative to monitoring all jobs and all events.

Because the scheduler logs all events it processes and pro- vides a detailed trace of its activities, autosyslog pro- vides valuable information for troubleshooting, and should always be used early in the troubleshooting process.

Using autosyslog to view the scheduler log is the same as issuing the following command:

tail -f $AUTOUSER/out/event_demon.$AUTOSERV

The last 10 lines of the scheduler log file are displayed when you issue autosyslog. The log file is updated continu- ally as processing occurs. To terminate the display of the log, press Ctrl+C in the display window.

autosyslog can be a useful diagnostic tool when jobs fail. This command, when provided with the name of a job, displays the log of the jobs most recent run. Although the agents log file is automatically deleted by default after a successful job run, the log file is not deleted at job completion if the job ended with a FAILURE status.

OPTIONS -e Indicates that the event scheduler log is to be moni- tored. When in this mode, in order to terminate the command, you must press Ctrl+C.

To view the scheduler log, you must execute this com- mand on the machine that is running the scheduler, or on a machine that can access the same $AUTOUSER file system. Also, the $AUTOUSER and $AUTOSERV environment variables must be set the same as it was when the scheduler was run.

-J job_name

Displays the agent log for the job job_name. If you do not run this command on the machine where the job ran, autosyslog generates the following error:

*** No remote agent files found for job_name job_name***

To view the agent log, you must execute this command from the machine on which the specified job ran last.

-s Indicates that the application server log is to be mon- itored. When in this mode, in order to terminate the command, you must press Ctrl+C.

-p Specifies to append messages to the output file if any- thing in the profile file failed, if commands were not executed, or environment variables or definitions were not set. For example, if the profile file tried to exe- cute a command (e.g., date) but could not find it, the output file would contain the line:

/bin/sh: date: not found

Page 94: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

The -p option is required when you specify -J job_name.

Note: If the CleanTmpFiles parameter in the configura- tion file is on, Unicenter AutoSys JM removes the agent log file upon successful completion of the job. In this case, autosyslog cannot display the log contents of jobs that completed successfully because they do not exist..

EXAMPLES autosyslog -e

View the scheduler log. (Issue the command on the sys- tem where the scheuler is running, or where it ran last.)

autosyslog -J test_install

View the last run of the test_install job (Issue the command on the machine where the test_install job ran.)

autosyslog -j job_name -p

Display the log file first, appending the profile out- put, if there is any. If no profile output file exists, the profile output section is empty.

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup- port is available 24 hours a day, 7 days a week.

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

SEE ALSO archive_events(8), as_info(8), as_safetool(8), as_server(8), auto_svcdesk(8), autoaggr(8), autodwp(8), autocal_asc(8), autoflags(8), autoping(8), autorep(8), autosec_test(8), autostatad(8), autostatus(8), autosys(8), autosys_secure(8), autotimezone(8), chase(8), chk_auto_up(8), clean_files(8), cron2jil(8), DBMaint(8), dbstatistics(8), eventor(8), get_auto_event(8), jil(8), job_delete(8), job_depends(8), monbro(8), sendevent(8), time0(8), xql(8), zql(8)

Man Auto SvcdeskAutoSys 1

Unicenter AutoSys JM Commands auto_svcdesk(8)

NAME auto_svcdesk - Open Unicenter Service Desk helpdesk tickets

SYNOPSIS auto_svcdesk -G|-J jobname [-a attribute/value pair] [-d description] [-i impact] [-p priority] [-s severity] [-y summary] [-L url] [-U username -P password] [-C customer] [-?]

Page 95: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

DESCRIPTION Allows Unicenter Service Desk helpdesk tickets to be opened on behalf of an existing job in the Unicenter AutoSys JM database or on behalf of some action which may occur within the Unicenter AutoSys JM environment. auto_svcdesk supple- ments the existing Unicenter Service Desk integration pro- vided by the Unicenter AutoSys JM Scheduler component.

OPTIONS -G Open a generic Service Desk ticket request on behalf of Unicenter AutoSys JM. -G and -J are mutually exclusive.

-J jobname Open a Service Desk ticket request on behalf of a specific job defined to Unicenter AutoSys JM. The job- name specified by this option must exist in the data- base. The current attributes of the job do not need to employ its Service Desk attributes to send a request using this command. The various options of this command can be used to set description, impact, priority and severity. If these options are not specified, they will be set based a predefined template which exists for Unicenter AutoSys JM within Unicenter Service Desk. -J and -G are mutually exclusive.

-a attribute/value Defines Unicenter Service Desk request attributes and handle values to be set in the Unicenter Service Desk request. This flag is the behavioral equivalent of the svcdesk_attr job attribute. Refer to Chapter 3, JIL Definitions, in the AutoSys Service Desk Command Refer- ence Guide for additional information. It should be noted, if this flag is specified for a jobname Service Desk request its value will override the svcdesk_attr job attribute value in the database. Use of this option requires advanced knowledge of Unicenter Service Desk. Please contact your Unicenter Service Desk administrator for assistance.

-d description Defines the message or string to be set as the descrip- tion field in Unicenter Service Desk request. This flag is the behavioral equivalent of the svcdesk_desc job attribute. Refer to Chapter 3, JIL Definitions, in the AutoSys Service Desk Command Reference Guide for addi- tional information. It should be noted, if this flag is specified for a jobname Service Desk request its value will override the svcdesk_desc job attribute value in the database.

-i impact Specifies the impact level to assign to the Unicenter Service Desk request. This flag is the behavioral equivalent of the svcdesk_imp job attribute. Refer to Chapter 3, JIL Definitions, in the AutoSys Service Desk Command Reference Guide for additional information. It should be noted, if this flag is specified for a job- name Service Desk request its value will override the svcdesk_imp job attribute value in the database.

-p priority

Page 96: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

Specifies the priority level to assign to the Unicenter Service Desk request. This flag is the behavioral equivalent of the svcdesk_pri job attribute. Refer to Chapter 3, JIL Definitions, in the AutoSys Service Desk Command Reference Guide for additional information. It should be noted, if this flag is specified for a job- name Service Desk request its value will override the svcdesk_pri job attribute value in the database.

-s severity Specifies the severity level to assign to the Unicenter Service Desk request. This flag is the behavioral equivalent of the svcdesk_sev job attribute. Refer to Chapter 3, JIL Definitions, in the AutoSys Service Desk Command Reference Guide for additional information. It should be noted, if this flag is specified for a job- name Service Desk request its value will override the svcdesk_sev job attribute value in the database.

-y summary Defines the message or string to set as the summary field in Unicenter Service Desk request. There is no job Service Desk attribute behavioral equivalent. The Scheduler component when interfacing with Unicenter Service Desk has a predefined summary it passes as part of the request.

-L url Specifies the url of the Service Desk web server. If this option is not specified the url will be obtained from the Unicenter AutoSys environment (derived from the current Unicenter AutoSys JM integration settings). Please refer to Chapter 12, Unicenter Integration, in the Unicenter JM for UNIX User Guide for additional information on Unicenter AutoSys JM integration set- tings.

-U username Specifies a valid login identifier to access the Ser- vice Desk web server. If this option is not specified the login identifier will be obtained from the Uni- center AutoSys environment (derived from the current Unicenter AutoSys JM integration settings). Please refer to Chapter 12, Unicenter Integration, in the Uni- center JM for UNIX User Guide for additional informa- tion on Unicenter AutoSys JM integration settings.

-P password Specifies the password for the Service Desk login iden- tifier. This option must be specified if the -U option has been specified.

-C customer Specifies a valid customer identifier to access the Service Desk web server. If this option is not speci- fied the customer identifier will be obtained from the Unicenter AutoSys environment (derived from the current Unicenter AutoSys JM integration settings). Please refer to Chapter 12, Unicenter Integration, in the Uni- center JM for UNIX User Guide for additional informa- tion on Unicenter AutoSys JM integration settings.

Page 97: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

-? Output the command usage statement.

EXAMPLES To open a Unicenter Service Desk ticket for a job whose name is svcdesk_test enter:

autosvc_desk -J svcdesk_test

To open a Unicenter Service Desk ticket for a job whose name is svcdesk_test and set the priority to a value of 1 and the impact to a value of 4 enter:

autosvc_desk -J svcdesk_test -p 1 -i 4

This command will override the jobs current priority and impact if set in the database.

To open a Unicenter Service Desk ticket for a job whose name is svcdesk_test and set the description to This is a test and urgency to a value of 5 enter:

autosvc_desk -J svcdesk_test -d "This is a test" -a "urgency/urg:1104"

This command will override the jobs current description and impact if set in the database.

To open a Unicenter Service Desk ticket for a job whose name is svcdesk_test and direct it to a specific Unicenter Ser- vice Web server named unisvcdesk enter:

autosvc_desk -J svcdesk_test -L http://unisvcdesk:8080/axis/services/USD_R11_WebService

To open a generic Unicenter Service Desk ticket to identify a problem with a database rollover where the priority is 1 enter:

autosvc_desk -G -y "Unicenter AutoSys JM DB_ROLLOVER" -d "Database rollover has occurred. Product currently running off secondary database. Primary needs to be investigated." -p 1

This request could be initiated from an ALARM message for- warded to Unicenter Event Management where the message action to be executed is the auto_svcdesk command.

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup- port is available 24 hours a day, 7 days a week.

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

SEE ALSO archive_events(8), as_info(8), as_safetool(8), as_server(8), auto_svcdesk(8), autoaggr(8), autodwp(8), autocal_asc(8), autoflags(8), autorep(8), autosec_test(8), autostatad(8),

Page 98: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

autostatus(8), autosys(8), autosyslog(8), autosys_secure(8), autotimezone(8), autotrack(8), chase(8), chk_auto_up(8), clean_files(8), cron2jil(8), DBMaint(8), dbstatistics(8), eventor(8), get_auto_event(8), jil(8), job_delete(8), job_depends(8), monbro(8), sendevent(8), time0(8), xql(8), zql(8)

Man Job DependsAutoSys 1

Unicenter AutoSys JM Commands job_depends(8)

NAME job_depends - Reports on Unicenter AutoSys Job Management (JM) job dependencies and conditions

SYNOPSIS job_depends [-B group] [-c|-d|-t] [-D data_server] [-F from_date/time] [-I application] [-J job_name] [-L print_level] [-s] [-T to_date/time] [-w]

DESCRIPTION Provides detailed reports about the dependencies and condi- tions of a job. You can use this command to determine the current state of a job, its job dependencies, and (for a box job) the nested hierarchies specified in the job definition, and to generate a report of what jobs will run during a given interval.

When you invoke job_depends, Unicenter AutoSys JM verifies that you have read access to the jobs for which you are requesting information.

OPTIONS -B group Specifies the group for which to generate a report.

When -J job_name is also specified, autorep generates the report only for jobs that match both -J job_name and -B group.

When -I application is also defined, autorep generates the report only for jobs that match both -I application and -B group.

When both -J job_name and -I application are also specified, autorep generates the report only for jobs that match all three criteria (-J job_name, -I applica- tion, and -B group).

You can use the percent (%) and underscore (_) charac- ters as wildcards in this value.

-c (Current job condition status) Returns the current state of the job and the names of any jobs that depend on it.

-d (Job dependencies only) Returns the starting conditions for the job but includes no indication of its current

Page 99: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

status. This option displays jobs in a box hierarchi- cally. (Use the -L option to set how many levels of nesting to display.)

-D data_source For Ingres r3 Open Source and Sybase databases, data_source is in the format data_server:database. It identifies the data server and database to search for the specified information.

For the Oracle database, data_source is in the format TNSname. It indicates the TNS alias name of the Oracle dataserver to be searched for the specified informa- tion.

Normally, autorep consults the Unicenter AutoSys JM configuration file ($AUTOUSER/config.$AUTOSERV) to determine to which database to connect. This option enables autorep to report on any Unicenter AutoSys JM event server on the network.

-F from_date/time Specifies the report start date and time (that is, the date and time of the first job in the report) in MM/DD/[YY]YY hh:mm format.

When you enter a two-digit year, Unicenter AutoSys JM saves the setting to the database as a four-digit year. If you enter 79 or less, the product precedes your entry with 20; if you enter 80 or greater, the product precedes your entry with 19.

-I application Specifies the application for which to generate a report.

When -B group is also specified, autorep generates the report only for jobs that match both -I application and -B group.

When -J job_name is also defined, autorep generates the report only for jobs that match both -I application and -J job_name.

When both -J job_name and -B group are also defined, autorep generates the report only for jobs that match all three criteria (-J job_name, -I application, and -B group).

You can use the percent (%) and underscore (_) charac- ters as wildcards in this value.

-J job_name Identifies the job on which to report. To report on all jobs, specify -J ALL.

You can use the percent (%) and underscore (_) charac- ters as wildcards in this value.

-L print_level Specifies the number of levels into the box job hierar-

Page 100: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

chy about which to report. For example, when you specify -L 2, the report contains data for the speci- fied job (a box) and the top two levels of jobs in the box. This value can be any number.

To report on only the topmost level (that is, the box), set this value to -L 0.

To report on all levels in the box, omit the print_level value.

This option is valid only when you specify the -d or -t options.

Default: -L (report on all levels in the box)

-s Sort the jobs in an order based on their next start time. This option is only valid with the -t option.

-t (Time dependencies) Returns the starting conditions for a job; however, the top level of jobs (or boxes) reported are limited to those that will start during the interval specified by the job or box date condi- tions. When a box satisfies those date conditions, all of the jobs in the box are also returned (use the -L option to set how many levels of nesting to display).

When you specify this option, job_depends does not cal- culate all complex job dependencies when reporting on the jobs and boxes that are scheduled to run. For exam- ple, JobB may have a date condition and depend on JobA. The date conditions for JobB may be met for a given day, while those for JobA are not. As a result, JobA does not run, nor does JobB. However, JobB appears on the job_depends report. Therefore, the starting condi- tions are also printed. For example, the following con- dition is reported for JobB:

success(JobA)

-T to_date/time Specifies the report end date and time (that is, the date and time of the last job in the report) in MM/DD/[YY]YY hh:mm format.

When you enter a two-digit year, Unicenter AutoSys JM saves the setting to the database as a four-digit year.

If you enter 79 or less, the product precedes your entry with 20; if you enter 80 or greater, the product precedes your entry with 19.

-w Display all output columns in their widened format.

EXAMPLES job_depends -t -J ALL -F "12/25/2005 00:00" -T "12/26/2005 00:00"

List the jobs that are scheduled to run on Christmas day, 2005.

Page 101: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

job_depends -c -J JobX

Generate a report about the current condition status of the job JobX.

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup- port is available 24 hours a day, 7 days a week.

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

SEE ALSO archive_events(8), as_info(8), as_safetool(8), as_server(8), auto_svcdesk(8), autoaggr(8), autodwp(8), autocal_asc(8), autoflags(8), autoping(8), autorep(8), autosec_test(8), autostatad(8), autostatus(8), autosys(8), autosyslog(8), autosys_secure(8), autotimezone(8), autotrack(8), chase(8), chk_auto_up(8), clean_files(8), cron2jil(8), DBMaint(8), dbstatistics(8), eventor(8), get_auto_event(8), jil(8), job_delete(8), monbro(8), sendevent(8), time0(8), xql(8), zql(8)

Man AutorepAutoSys 1

Unicenter AutoSys JM Commands autorep(8)

NAME autorep - Reports information about Unicenter AutoSys Job Management (JM) jobs

SYNOPSIS autorep [[-G globalvar|ALL]|[-J job_name|ALL]| [-M machine|ALL]|[-X external_instance|ALL]] [-a] [-B group|ALL] [-D data_source] [-d|-o override_number|-q|-s|-w] [-f file_path] [-I application|ALL] [-L print_level] [-N retry] [-r run_number] [-t] [-x] [-Y job_type|ALL] [-z globalglob_name|ALL]

DESCRIPTION Lists information about jobs (including boxes), machines, external instances, BLOBs, and global variables currently defined in the Unicenter AutoSys JM database. It can also list a summary of all currently defined jobs. autorep serves as a problem tracking tool by listing all relevant event information for the last run of any given job or box (the default), or a specified job run. It can also be used to display current machine load information and to export job definitions in JIL script format.

have read access to the entities (jobs, machines, and globalvariables) for which you are requesting reports. When you invoke autorep, Unicenter AutoSys JM verifies that you

the reports. Data archived with archive_events do not appear inthe reports.

Page 102: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

The autorep command retrieves data from the database to formulate

indented to illustrate the hierarchy. When autorep reports on nested jobs, subordinate jobs are

One of the following options is required:

-B group

-G globalvar_name

-I application

-J job_name

-M machine

-X external_instance

-Y job_type

-z globalblob_name

-J is mutually exclusive with -B and -I.

version order. For example, the report of a job with three ver-sions of an input BLOB would be similar to: If -q is used with -J, all input BLOBs for the job are listed in

/* -- <job_name>:insert_blob # 1 -- */

insert_blob: <job_name>

multi-lined]</auto_blobt> blob_input: <auto_blobt>[blob data as literal text - may be

/* -- <job_name>:insert_blob # 2 -- */

insert_blob: <job_name>

multi-lined]</auto_blobt> blob_input: <auto_blobt>[blob data as literal text - may be

/* -- <job_name>:insert_blob # 3 -- */

insert_blob: <job_name>

multi-lined]</auto_blobt> blob_input: <auto_blobt>[blob data as literal text - may be

value currently in effect. If -o override_number is 0, autorep will use the override_number

that meet both values. In other words, this is treated as an AND

Page 103: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

condition. If both -B and -I options are specified, information is retrieved

The following types of reports can be generated:

Summary When you specify -s to request a summary, autorep returns the current status (if the job is still run- ning) or the status for a previous run. The summary report reflects the last status posted to the database.

Detail When you specify -d to request a detail report, autorep returns all events in the database ujo_event table for the job. If the job is running, events for the current run are returned. If the job is not running, it returns events for the most recent run or for the specified run.

Machine Definition and Status in the Database When you specify -M to request a machine report, autorep returns the current load, defined maximum load and factor, and current status for all machines or a specific machine defined in the database.

The valid machine statuses are:

Online Indicates that the machine is online and available to run jobs. Offline Indicates that an operator used sendevent to take the machine offline. Missing Indicates that, during proactive monitoring of machines, the scheduler determined that the machine is not available (for example, due to a crash).

variable to turn off proactive monitoring of machines. Note: You can use the DISABLE_AUTO_OFFLINE environment

Job Overrides When you specify -o to request an override report, autorep returns the overridden job definition fields and user, time, and run information for a specified override, based on job name and override number.

OPTIONS -a Indicates that the downloaded GLOB file is in ASCII format. This option is used in conjunction with -z. If -a is not specified, the downloaded format is binary.

-B group|ALL Identifies the group for which to generate a report.

When -J is also specified, autorep generates the report only for jobs that match both job_name and group.

Page 104: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

When -I is also specified, autorep generates the report only for jobs that match both application and group.

When both -J and -I are also specified, autorep gen- erates the report only for jobs that match all three criteria (job_name, application, and group).

You can use the percent (%) and underscore (_) charac- ters as wildcards in this value.

-G globalvar|ALL Generates a global variable report. Lists the variable name, value, and last modification date. globalvar specifies the name of a global variable that has been set using the sendevent command or the GUI. Specify ALL to report on all global variables.

You can use the percent (%) and underscore (_) charac- ters as wildcards in this value.

-J job_name|ALL Identifies the job on which to report. To report on all jobs, specify ALL.

You can use the percent (%) and underscore (_) charac- ters as wildcards in this value.

-M machine|ALL Generate a report containing maximum load, current load, and factor information for the virtual or real machine identified by machine. To report on all machines, specify ALL. machine must be defined to Uni- center AutoSys JM.

-X external_instance|ALL Identifies the external instance for which to generate a report. external_instance is the three-character identifier of the Unicenter AutoSys JM instance.

You can use the percent (%) character as a wildcard in this value.

-D data_source For Ingres r3 Open Source and Sybase databases, data_source is in the format data_server:database. It identifies the data server and database to search for the specified information.

For the Oracle database, data_source is in the format TNSname. It indicates the TNS alias name of the Oracle dataserver to be searched for the specified informa- tion.

Normally, autorep consults the Unicenter AutoSys JM configuration file ($AUTOUSER/config.$AUTOSERV) to determine to which database to connect. This option enables autorep to report on any Unicenter AutoSys JM event server on the network.

-d Generates a detail report.

Page 105: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

This report contains the following information:

For jobs, the report covers all events from the most recent run of the specified jobs and contains the fol- lowing data for each event: status, the date and time of the event, try number, event state, process date and time, machine, whether the job ran with an override, and the override number.

For machines, the report contains the following data for each machine: machine name, maximum load, current load, and factor. For jobs currently running on each machine, the report also contains the following data: job name, machine, status, load, and priority.

This option is ignored for global variable reports.

-s Generates a summary report. When you do not specify a report type to generate, Unicenter AutoSys JM generates a summary report by default. This report contains the following information:

For jobs, the summary report contains the start date and time, end date and time, current status, run number, and priority.

When you specify -r run_number, the report contains information for the specified run; when you omit -r, the report contains information for the most recent run. For a Job report, the following information is listed: Start date/time, End date/time, Current Status, Run Number, and Priority. Specify -r to report on a specific job run, otherwise, the most current job run is used.

For machines, the summary report contains the machine name, maximum load, current load, and factor.

This option is ignored for global variable reports.

-f file_path Specifies the name of the directory in which to down- load the BLOB or GLOB data files. This option is used in conjunction with -a and -z. The data file name is composed from the global variable name and concatenated with txt, if -a is specified. The -f option can also be used with -J -q. In this usage, the filename consists of file_path, version number, and the txt extention. The output of a job with two versions of an input BLOB looks similar to:

/* -- <job_name>:insert_blob # 1 -- */ insert_blob: <job_name> blob_file: <file_path/job_name_1.txt>

/* -- <job_name>:insert_blob # 2 -- */ insert_blob: <job_name> blob_file: <file_path/job_name_2.txt>

-I application|ALL Specifies the application for which

Page 106: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

to generate a report.

When you also specify -B, the command affects only items that match both application and group.

When you also specify -J, the command affects only items that match both job_name and application.

When you also specify both -J and -B, the command affects only items that match all three criteria (job_name, application, and group).

You can use the percent (%) and underscore (_) characters as wildcards in this value.

-L print_level Specifies the number of levels into the box job hierarchy about which to report. For example, when you specify -L 2, the report contains data for the specified job (a box) and the top two levels of jobs in the box. This value can be any number.

To report on only the topmost level (that is, the box), set this value to -L 0.

To report on all levels in the box, omit the print_level value.

Default: -L (report on all levels in the box).

-N retry Specifies the number of times autorep should attempt to reconnect to the database before gen- erating an error.

Default: 3.

-q Generates a query report, which contains the current job or machine definition in JIL format as it exists in the database.

This option is ignored for global variable reports.

-o override_number Generates an override report, which contains the overrides for the jobs specified in -J that match the override number specified by override_number. Set override_number to 0 to report data for the most current override.

This option requires that you use the -J option.

-r run_number Generates a job report for the job run specified by run_number.

Use the minus sign (-) to specify a previous run relative to the most recent run for which to gen- erate a report. For example, when you specify -r -2, Unicenter AutoSys JM generates a report for

Page 107: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

the job run two runs back.

When you omit this option or the run_number value is 0, the report contains information about the most recent job run.

This option is only valid with the -s and -d options.

-t Includes the time zone (if one is specified in the job definition) in the report. The time zone appears in parentheses beneath the job name, and the Time column of the report is based on the time zone specified in the job.

-w Reports untruncated job and machine names and uses the long form of job conditions.

-Y job_type|ALL Prints job types and the associated binary/command for that type. To report on all job types, specify ALL. Specify the -q option to print the definition of job type.

-z globalblob_name|ALL Downloads a GLOB data file, to the directory specified in the -f option. Specify -a to download the ASCII representation. Otherwise, the file is downloaded in binary representation. If -f is not specified, the file is downloaded to /tmp. The data file name is composed from the global blob name and concatenated with txt if -a is specified.

autorep -J Test1 -d

List detailed information on the last run of a job named Test1 on the default server.

autorep -M ALL

List all machines defined on the data server.

autorep -G ALL

List all global variables and their values that have been set.

autorep -J Box3 -s -L 2

List a summary report on the top two levels of boxes in the job Box3.

autorep -J T%admin -d

List a detailed report on all jobs whose names begin with T and end in admin.

autorep -J Test1 -o 0

List the current override for the job Test1.

Page 108: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

autorep -J RunData -r -1 -d

List a detailed report for a job named RunData for its next to last run.

autorep -X A50

Generate a report that identifies the Unicenter AutoSys JM components for external instance A50.

autorep -z DailyBLOB -a

Download the AutoSys global blob DailyBLOB, in ASCII format, to /tmp.

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup- port is available 24 hours a day, 7 days a week.

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

SEE ALSO archive_events(8), as_info(8), as_safetool(8), as_server(8), auto_svcdesk(8), autoaggr(8), autodwp(8), autocal_asc(8), autoflags(8), autoping(8), autosec_test(8), autostatad(8), autostatus(8), autosys(8), autosyslog(8), autosys_secure(8), autotimezone(8), autotrack(8), chase(8), chk_auto_up(8), clean_files(8), cron2jil(8), DBMaint(8), dbstatistics(8), eventor(8), get_auto_event(8), jil(8), job_delete(8), job_depends(8), monbro(8), sendevent(8), time0(8), xql(8), zql(8)

Man AutostatadAutoSys 1

Unicenter AutoSys JM Commands autostatad(8)

NAME autostatad - Retrieves the status of Unicenter Job Manage- ment (JM) Adapter jobs

SYNOPSIS autostatad -J job_name [-h] [-s] [-t]

DESCRIPTION Retrieves the status of Unicenter JM Adapter jobs, such as Unicenter JM Adapter for SAP or Unicenter JM for PeopleSoft. The status is stored as a global variable in the Unicenter AutoSys JM database.

When Unicenter AutoSys JM runs an Adapter job, the Adapter stores the jobs current status in the Unicenter AutoSys JM database as a global variable. The name of the global vari- able is the job name, and the value is the status of the job, and the date and time the status was written to the database.

OPTIONS

Page 109: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

-J job_name Specifies the name of the job. This parameter is required. You can use the percent (%) characters as wildcards in this value.

-h Display the help for autostatad.

-s Display only the status, without the job name or any labeling. This option is useful for scripts.

-t Display the date and time the status was written to the Unicenter AutoSys JM database.

-x Display the version number of autostatad.

autostatad -J autoMB% -t

Display the job name, status, and time-stamp of all Unicenter Adapter JM jobs starting with the string autoMB. The output looks similar to the following:

Job: autoMB1 Status:completed Time: 10/13/04 09:09:00 Job: autoMB2 Status:aborted Time: 10/13/04 09:015:31 Job: autoMB3 Status:failed Time: 10/13/04 09:09:21

autostatad -J autoMB1 -s

Display only the status with no labeling. This stripped output can be redirected to a file for use in a script.

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup- port is available 24 hours a day, 7 days a week.

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

SEE ALSO archive_events(8), as_info(8), as_safetool(8), as_server(8), auto_svcdesk(8), autoaggr(8), autodwp(8), autocal_asc(8), autoflags(8), autoping(8), autorep(8), autosec_test(8), autostatus(8), autosys(8), autosyslog(8), autosys_secure(8), autotimezone(8), autotrack(8), chase(8), chk_auto_up(8), clean_files(8), cron2jil(8), DBMaint(8), dbstatistics(8), eventor(8), get_auto_event(8), jil(8), job_delete(8), job_depends(8), monbro(8), sendevent(8), time0(8), xql(8), zql(8)

Man AutostatusAutoSys 1

Unicenter AutoSys JM Commands autostatus(8)

NAME autostatus - Reports the status of Unicenter AutoSys Job Management (JM) jobs or global variables

SYNOPSIS autostatus [-J job_name|-G global_name] [-S instance]

Page 110: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

DESCRIPTION Reports the current status of the specified job or the current value of a global variable to standard output. This command is especially useful in two circumstances:

* When one job needs to know the status of another.

* When complex starting conditions are required that are beyond those that can be easily specified in the job definition.

For example, you may need to start a job when two out of a set of three jobs have completed successfully. You could handle these dependencies through the starting conditions, but the conditions would be very cumbersome to define. Instead, you could use autostatus to check the status of the three jobs and perform the appropri- ate action.

When you invoke autostatus, Unicenter AutoSys JM verifies that you have read access to the entities (jobs and global variables) for which you are requesting information.

OPTIONS -J job_name Identifies the job on which to report. The current status of the job is returned.

-G global_name Identifies the global variable for which to determine the value. The specified global variable must have been set with the sendevent command or the GUI.

-S instance Specifies the three-character code of the Unicenter AutoSys JM instance to be queried. The default is the value of $AUTOSERV from the current environment.

EXAMPLES autostatus -J test_install

Check the current status of the job named test_install in the current instance of Unicenter AutoSys JM.

The command writes the result to standard output. For example:

SUCCESS

autostatus -G Today

Check the value of a global variable named Today.

where the job New_Stats is to run when all three of the jobs Account_Run, Corp_Run, and End_Run have run, at least two have completed successfully, and it is not the 13th day of the month, do the following:

Page 111: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

To use autostatus in place of a cumbersome condition statement,

1. Create a job named New_Stats_Starter with the following job definition:

# # JIL for New_Stats_Starter # insert_job:New_Stats_Starter job_type:command machine:mombo command:new_stats_starter condition:done(Account_Run) and done(Corp_Run) and done(End_Run)

2. Create a Bourne shell script with the name new_status_starter to run for the job named New_Stats_Starter. This script will figure out whether or not to start the job New_Stats. It communicates its decision back to Unicenter AutoSys JM by exiting with a 0 (SUCCESS) or non-zero (FAILURE) exit code. The job named New_Stats bases its starting condition on that exit code.

#!/bin/sh # Program to determine when to start New_Stats # Check for 13th of month - if it is, exit with 2 if [ `date +%d` -eq 13 ] then exit 2 fi # Add up the Number of SUCCESS endings SUCCESS=0 for JobName in Account_Run Corp_Run End_Run do if [ `autostatus -J $JobName` = "SUCCESS" ] then SUCCESS=`expr $SUCCESS + 1` fi done if [ $SUCCESS -gt 1 ] then exit 0 else exit 1 fi

3. Create the job named New_Stats and specify that it should start when the above job completes successfully. Use the following starting condition as its job defini- tion:

condition: success(New_Stats_Starter)

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a

Page 112: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

complete list of locations and phone numbers. Technical sup- port is available 24 hours a day, 7 days a week.

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

SEE ALSO archive_events(8), as_info(8), as_safetool(8), as_server(8), auto_svcdesk(8), autoaggr(8), autodwp(8), autocal_asc(8), autoflags(8), autoping(8), autorep(8), autosec_test(8), autostatad(8), autosys(8), autosyslog(8), autosys_secure(8), autotimezone(8), autotrack(8), chase(8), chk_auto_up(8), clean_files(8), cron2jil(8), DBMaint(8), dbstatistics(8), eventor(8), get_auto_event(8), jil(8), job_delete(8), job_depends(8), monbro(8), sendevent(8), time0(8), xql(8), zql(8)

Man MonbroAutoSys 1

Unicenter AutoSys JM Commands monbro(8)

NAME monbro - Runs a Unicenter AutoSys Job Management (JM) moni- tor or report (browser)

SYNOPSIS monbro -N name [-B group] [-D [-I application] [-P poll_frequency] [-q]

DESCRIPTION Runs a monitor or report (browser) that has already been defined. Output from monbro goes to standard output.

When you configure a monitor with sound on, the monitor uses the sound capabilities of the machine on which it is run- ning. The sound clips must be pre-recorded, and the machine running monbro must have access to the $AUTOUSER/sounds directory.

The monitor or report definition must reside on the database for the instance you are accessing. monbro can connect to any database that the instance is configured to use.

By default, monbro inspects the environment variables $AUTOSYS, $AUTOUSER and $AUTOSERV to determine which data- base to connect to. Use the -D option to override this default.

When you invoke monbro, Unicenter AutoSys JM verifies that you have read access to the jobs you are attempting to moni- tor.

OPTIONS -N name Identifies the monitor or report to run. To run all monitors or reports, specify -N ALL. You can use the percent (%) character as a wildcard in this value.

-B group Defines the group for which to run the command. When

Page 113: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

you also specify -I application, the specified command affects only items that match both -I application and -B group.

-D data_source For Ingres r3 Open Source and Sybase databases, data_source is in the format data_server:database. It indicates the name of the database to connect to retrieve events and the monitor or report definition.

For the Oracle database, data_source is in the format TNSname. It indicates the TNS alias name of the Oracle dataserver to be connected to retrieve events and the monitor or report definition..

-I application Defines the application for which to run the command. When you also specify -B group, the specified command affects only items that match both -I application and -B group.

-P poll_frequency For monitors only, poll_frequency defines the interval (in seconds) at which to poll the database.

Default: 10

-q Specifies that you want to display monbro definitions in JIL format.

EXAMPLES monbro -N mon1

Run a monitor called mon1 which is defined in the default database.

monbro -N mon1 -q

Run a monitor called mon1 which is defined in the default database and display the output in JIL format.

Sample output with the -q option:

insert_monbro: xxx mode: m all_events: Y job_filter: a sound: N alarm_verif: N insert_monbro: xxx2 mode: b all_events: N alarm: Y all_status: N running: N success: Y failure: Y terminated: N starting: N restart: N job_filter: b

Page 114: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

job_name: box currun: N after_time: "02/05/2006 12:12"

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup- port is available 24 hours a day, 7 days a week.

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

SEE ALSO archive_events(8), as_info(8), as_safetool(8), as_server(8), auto_svcdesk(8), autoaggr(8), autodwp(8), autocal_asc(8), autoflags(8), autoping(8), autorep(8), autosec_test(8), autostatad(8), autostatus(8), autosys(8), autosyslog(8), autosys_secure(8), autotimezone(8), autotrack(8), chase(8), chk_auto_up(8), clean_files(8), cron2jil(8), DBMaint(8), dbstatistics(8), eventor(8), get_auto_event(8), jil(8), job_delete(8), job_depends(8), sendevent(8), time0(8), xql(8), zql(8)

Man EventorAutoSys 1

Unicenter AutoSys JM Commands eventor(8)

NAME eventor - Starts the Unicenter AutoSys Job Management (JM) Scheduler

SYNOPSIS eventor [-f] [-n] [-q] [-G]

DESCRIPTION Starts the scheduler (also called the event demon) and, optionally, the shadow scheduler. By default, eventor runs in the background. It first confirms that another scheduler of the same instance is not running on the same machine (as determined by the $AUTOSERV variable), unless two schedulers are specified in the configuration file.

It then runs chase, which inspects the database to determine which jobs should be running, and then checks each machine to verify that the jobs are there. If problems are detected, chase generates alarms or failure events for missing jobs. It then automatically attempts to restart the missing jobs.

If the scheduler has been down for a long time, the -G option can be used to start it in Global AutoHold mode. This prevents the system from being flooded with jobs that were scheduled to run during the downtime.

eventor writes log information to the file named $AUTOUSER/out/event_demon.$AUTOSERV. chase writes its output to the same file.

By default, eventor executes the tail -f command against the log file. This is useful for monitoring the execution of the

Page 115: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

scheduler, particularly when there are problems with its startup. For example, if the machine from which eventor is issued does not have a valid license, the scheduler will not start. The only indication that this condition exists is a message output by the scheduler in its log file. To exit the tail command, use Ctrl+C in the window displaying the scheduler log.

The shadow scheduler writes log information to the $AUTOUSER/out/event_demon_shadow.$AUTOSERV file.

OPTIONS -f Runs the scheduler in the foreground, and sends all of its output to the display from which the command was issued.

Note: This option is not recommended for production use. The default behavior is to run the scheduler in the background, with all output going to the $AUTOUSER/out/event_demon.$AUTOSERV file.

-n Specifies that eventor is not to run the chase command on start-up.

The default behavior is to run chase -A -E and redirect output to the following file:

$AUTOUSER/out/event_demon.$AUTOSERV

-q Runs eventor in quiet mode, meaning that after the scheduler starts, eventor should not execute the tail -f command on the scheduler log file.

-G Starts up the scheduler in Global AutoHold mode.

Global AutoHold is useful if you are restarting the scheduler after a period of down time. This prevents the system from being flooded with jobs that were scheduled to run during the downtime. When in Global AutoHold mode, the scheduler evaluates all jobs whose starting conditions have passed and are eligible to run, then puts the jobs in ON_HOLD status. This gives you the opportunity to decide which jobs should run by selectively starting them with the sendevent -E FORCE_STARTJOB command or the GUI.

When Global AutoHold is on, the following message displays after each timestamp:

-------------< Date: 12/12 20:22:00 >---------------

******* Global AutoHold IS ON ! *******

If Global AutoHold is on and you take a job OFF_HOLD (via the Operator Console or the sendevent command), the Event Processor will put the job right back ON_HOLD.

The only way for a job to start when Global AutoHold is on is with the FORCE_STARTJOB event. When sent, this event will override the AutoHold mode (and nothing else

Page 116: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

will).

If you start a Shadow Event Processor with the -G flag, the Shadow Event Processor will also be in Global Auto- Hold mode.

To turn off Global AutoHold, you must shut down the Event Processor, then start it up again without the -G flag.

eventor

Start the scheduler under normal circumstances.

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup- port is available 24 hours a day, 7 days a week.

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

SEE ALSO archive_events(8), as_info(8), as_safetool(8), as_server(8), auto_svcdesk(8), autoaggr(8), autodwp(8), autocal_asc(8), autoflags(8), autoping(8), autorep(8), autosec_test(8), autostatad(8), autostatus(8), autosys(8), autosyslog(8), autosys_secure(8), autotimezone(8), autotrack(8), chase(8), chk_auto_up(8), clean_files(8), cron2jil(8), DBMaint(8), dbstatistics(8), get_auto_event(8), jil(8), job_delete(8), job_depends(8), monbro(8), sendevent(8), time0(8), xql(8), zql(8)

Man As ServerAutoSys 1

Unicenter AutoSys JM Commands as_server(8)

NAME as_server - Runs the Unicenter AutoSys Job Management (JM) Application Server

SYNOPSIS as_server -A autoserv

DESCRIPTION Runs the Unicenter AutoSys JM Application Server for a specific instance.

OPTIONS -A autoserv Specifies the instance for which to start the Applica- tion Server.

EXAMPLES as_server -A ACE

Start the Unicenter AutoSys JM Application Server for the instance ACE.

Page 117: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

TECHNICAL SUPPORT For further technical assistance with this command, contact Technical Support at <http://supportconnect.ca.com> for a complete list of locations and phone numbers. Technical sup- port is available 24 hours a day, 7 days a week.

COPYRIGHT Copyright (c) 2006 CA. All rights reserved.

SEE ALSO archive_events(8), as_info(8), as_safetool(8), auto_svcdesk(8), autoaggr(8), autodwp(8), autocal_asc(8), autoflags(8), autoping(8), autorep(8), autosec_test(8), autostatad(8), autostatus(8), autosys(8), autosyslog(8), autosys_secure(8), autotimezone(8), autotrack(8), chase(8), chk_auto_up(8), clean_files(8), cron2jil(8), DBMaint(8), dbstatistics(8), eventor(8), get_auto_event(8), jil(8), job_delete(8), job_depends(8), monbro(8), sendevent(8), time0(8) xql(8), zql(8)

Autosys Command LinesCommands by TasksThe following table shows commands used for specific tasks. Unless otherwise specified, all commands are for both Windows and UNIX.

Task Command

Check system statusautoflags, autoping, autosyslog, chase, chk_auto_up, unisrvcntr

Convert cron to jil (UNIX only) cron2jil

Define jobs or machines jil

Define calendars autocal_asc

Event commands sendevent

Maintain databases archive_events, autotrack, clean_files, job_delete

Manage security autosys_secure

Manage time zone tables autotimezone

Monitor jobs monbro, autosyslog

Report job dependencies and conditions

job_depends

Report job status autorep, autostatad, autostatus, monbro

Start Unicenter AutoSys JM (UNIX Only)

eventor

Start/Stop/Restart/Status CA-UAJM SchedulerRestart CA-UAJM Scheduler on ABTGPDB

• cd /etc/init.d • sudo ./uajm_sched.PRD restart • • CA-UAJM Scheduler (PRD) stopped.

Page 118: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• CA-UAJM Scheduler (PRD) [ OK ]

Verify CA-UAJM Scheduler on ABTGPDB

• cd /etc/init.d • sudo ./uajm_sched.PRD status • • CA-UAJM Scheduler (PRD) 29448 running

Start/Stop/Restart/Status CA-UAJM Application ServerRestart CA-UAJM Application Server on ABTGPDB

• cd /etc/init.d • sudo ./uajm_server.PRD restart • • CA-UAJM Application Server (PRD) stopped.• CA-UAJM Application Server (PRD) [ OK ]

Verify CA-UAJM Application Server on ABTGPDB

• cd /etc/init.d • sudo ./uajm_server.PRD status • • CA-UAJM Application Server (PRD) 26179 running

Start/Stop/Restart/Status/Monitor UAJM_AGENT(agents: ABTGPOSS1, ABTGPSTMT, ABTGQDB)Stop UAJM_AGENT

• cd /etc/init.d • sudo ./uajm_agent stop • • CA-UAJM Agent stopped.

Start UAJM_AGENT

• cd /etc/init.d • sudo ./uajm_agent start • • CA-UAJM Agent [ OK ]

Veryfy UAJM_AGENT

• cd /etc/init.d • sudo ./uajm_agent status • • CA-UAJM Agent 821 running

Start/Stop/Restart/Status/Monitor CA-CCSStart CA-CCS on ABTGPDB

• cd /etc/init.d

Page 119: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• sudo ./CA-CCS restart • • WV status Server is not running• Executed CA-cauwvdmn

stop........................................OK• Stopping cci daemon. • CAICCI_S_0046 Command completed successfully• Executed CA-cci

stop.............................................OK• Stopping CA-diadna • Stopping DIA DNA daemon...• DIA DNA daemon stopped• Executed CA-diadna

stop..........................................OK• Starting DIA DNA daemon...• DIA DNA daemon started• Executed CA-diadna

start.........................................OK• Executed CA-cci

start............................................OK

CA Status Report on ABTGQDB (agent)

• cd /etc/init.d • sudo ./CA-CCS status • • CA Services Status Report•• Component Name Pid Status • ------------------------------------ ------- --------------• CA-diadna Server 709 running • CA-CCI Server - not active• CA-CCI Remote Server - not active• CA-CCI Clean Up - not active• CA-CCI Legacy Proxy - not active• CA-WV Status Server - not active

Command Line The following commands all require the use of the Autosys cmd prompt.

• To extract a job or list of jobs from the Autosys db to a text file: •• autorep -J [ALL | Job_name] [-q] [> file_name], -d

(detail), -r (run number), • -o (override), jil < file_na -G (global var

report), • -M -q for machine definitions.• Ex: autorep -J job_name -d• autorep -J job_name -q > file_name • queries the DB & save job Dfn. Into a

file that can be vewed•• When you want a report of a box use the -L0 option• autorep -J job_name -l1

Page 120: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• report on the job for the day -1 (prev day)

• The following will get you the box you created as well as the job. • • autorep -J %_TGPROD_% -q > Aleks.jil

• To input a list of jobs from a text file into the Autosys db: • • jil < aleks.jil

If you run this command right now, you get an error do to the jobs already existing. You can delete jobs this way as well.

The following are a list of "JIL" commands that can be used:

• insert_job - Adds a new command, box, or file watcher job definition to the database.

• update_job - Updates an existing command, box, or file watcher job definition in the database.

• delete_job - Deletes a specified command, box, orfile watcher job from the database. If the specified job is a box job, the box job is deleted and the jobs in the box become stand-alone jobs.

• delete_box - Deletes a specified box job and all the jobs in that box from the database.

• override_job - Defines a one-time override of specified attributes to apply to the next run of a job.

• insert_machine - Adds a new real or virtualmachine definition to the database.

• delete_machine - Deletes the specified realor virtual machine definition from the database.

• insert_monbro - Adds a new monitor or report definition to the database. • update_monbro - Updates an existing monitor or report definitionin the

database. • delete_monbro - Deletes the specified monitor or report definition from the

database. • insert_job_type - Adds a new job type definition to the database. This is the

only way to define a job type. • update_job_type - Updates an existing job type definitionin the database.

You can use this command to change the values of the command and description attributes. 146 User Guide JIL Subcommands

• delete_job_type - Verifies that no jobs are currently defined with the specified job type, then deletes the specified job type definition from the database.

• insert_xinst - Adds a new externalinstance definition to the database. • update_xinst - Updates an existing externalinstance definition inthe database. • delete_xinst Deletes the specified externalinstance definition from the

database. • insert_blob - Adds a new blob definition associated with an existing job. • delete_blob - Disassociates a blob definition from an existing job and deletes

the blob from the database. • insert_glob - Adds a new glob definition referenced by a given name.

Page 121: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• delete_glob - Deletes the specified glob definition from the database.Note: Blobs and globs can only contain the following characters: A-Z, a-z, and 0-9.

Autosys Check Servers StatusCheck if event processor and DB are both up

• chk_auto_up

Verify that both client and server are correctly configured

• autoping -m ALL -A -D • cd /etc/init.d/ • uajm_sched.PRD status • CA-UAJM Scheduler (PRD) 28486 running• uajm_server.PRD status • • CA-UAJM Application Server (PRD) 3710 running• uajm_agent status • • CA-UAJM Agent 27613 running

CA Services Status Report

• /opt/CA/SharedComponents/bin/ustat • • CA Services Status Report•• Component Name Pid Status • ------------------------------------ ------- --------------• CA-UAJM Application Server (PRD) 3710 running• CA-UAJM Agent 27613 running• CA-uwccuiframework Server 22883 running • CA-uwccsched Server 23317 running • CA-uwccmonitor Server 20124 running • CA-uwcclauncher Server 23549 running • CA-uwccjscservant Server 23758 running • CA-uwccjsc Server 23984 running • CA-uwccha Server 24224 running • CA-uwccevent Server 24481 running • CA-uwccconfig Server 24739 running • CA-UAJM Scheduler (PRD) 28486 running• /opt/CA/SharedComponents/ccs/cci/bin/caiccid does not exist

Set password

• /opt/CA/SharedComponents/bin/setpasswd •

Process Status

Page 122: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• /opt/CA/SharedComponents/bin/unips •

Getting Installed CA Component Versions...

• /opt/CA/SharedComponents/bin/ca_version • • Getting Installed CA Component Versions...•• *************************************************************• List of PIF packages installed:• *************************************************************•• ============================================================• CACommonComponents• ============================================================• NAME : CACommonComponents• VERSION : 11.2.0.17b• INSTALLATION_PATH : /opt/CA/SharedComponents• INSTALLATION_TIME : 02/16/2009 22:24•• ============================================================• UnicenterAutoSysJM• ============================================================• NAME : UnicenterAutoSysJM• VERSION : 11.0.0.73• INSTALLATION_PATH : /opt/CA/UnicenterAutoSysJM• INSTALLATION_TIME : 02/16/2009 22:27•• ============================================================• ca-cs-eem• ============================================================• NAME : ca-cs-eem• VERSION : 8.3.0.133• INSTALLATION_PATH : /opt/CA/SharedComponents• INSTALLATION_TIME : 02/16/2009 21:52•• ============================================================• ca-cs-etpki• ============================================================• NAME : ca-cs-etpki• VERSION : 3.2.1.0• INSTALLATION_PATH : /opt/CA/SharedComponents• INSTALLATION_TIME : 02/16/2009 22:27•• ============================================================• ca-cs-jre• ============================================================• NAME : ca-cs-jre• VERSION : 1.5.0.11• INSTALLATION_PATH : /opt/CA/SharedComponents• INSTALLATION_TIME : 02/16/2009 21:52

Page 123: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

•• ============================================================• ca-cs-utils• ============================================================• NAME : ca-cs-utils• VERSION : 11.2.08221.0• INSTALLATION_PATH : /opt/CA/SharedComponents• INSTALLATION_TIME : 02/16/2009 22:27•• ============================================================• ca-lic• ============================================================• NAME : ca-lic• VERSION : 1.80.0.4• INSTALLATION_PATH : /opt/CA/SharedComponents• INSTALLATION_TIME : 02/16/2009 21:51•• ============================================================• ca-uajm-agent• ============================================================• NAME : ca-uajm-agent• VERSION : 11.0.0.73• INSTALLATION_PATH : /opt/CA/UnicenterAutoSysJM• INSTALLATION_TIME : 02/16/2009 22:27•• ============================================================• ca-uajm-asapi• ============================================================• NAME : ca-uajm-asapi• VERSION : 11.0.0.73• INSTALLATION_PATH : /opt/CA/UnicenterAutoSysJM• INSTALLATION_TIME : 02/16/2009 22:27•• ============================================================• ca-uajm-client• ============================================================• NAME : ca-uajm-client• VERSION : 11.0.0.73• INSTALLATION_PATH : /opt/CA/UnicenterAutoSysJM• INSTALLATION_TIME : 02/16/2009 22:27•• ============================================================• ca-uajm-common• ============================================================• NAME : ca-uajm-common• VERSION : 11.0.0.73• INSTALLATION_PATH : /opt/CA/UnicenterAutoSysJM• INSTALLATION_TIME : 02/16/2009 22:27•• ============================================================• ca-uajm-scheduler• ============================================================

Page 124: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• NAME : ca-uajm-scheduler• VERSION : 11.0.0.73• INSTALLATION_PATH : /opt/CA/UnicenterAutoSysJM• INSTALLATION_TIME : 02/16/2009 22:27•• ============================================================• ca-uajm-sdk• ============================================================• NAME : ca-uajm-sdk• VERSION : 11.0.0.73• INSTALLATION_PATH : /opt/CA/UnicenterAutoSysJM• INSTALLATION_TIME : 02/16/2009 22:27•• ============================================================• ca-uajm-server• ============================================================• NAME : ca-uajm-server• VERSION : 11.0.0.73• INSTALLATION_PATH : /opt/CA/UnicenterAutoSysJM• INSTALLATION_TIME : 02/16/2009 22:27•• ======================================================

Autosys unisrvcntrAutosys Command - unisrvcntr

• unisrvcntr • • Usage:•• start [-h | -?] [-v | -q] [-X] [--restore=<store file>] [all

| <service(s)>]•• -h , -? Outputs this Usage information•• -f Log File location•• -v Turns on verbose mode.•• -q Turns off verbose mode.•• -X Exclude this service from the start list• (i.e. only start its required services)•• --restore Start the list of services that were stopped• prior to stopping this service, based on the

contents • of the <store file>.•• <store file> File must be created from the command• "unisrvcntr stop --store=<store file>

<service>".•

Page 125: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• all Start all Main Services•• <service(s)> Start the requested CA Service(s)• (and any required services)•• shutdown|stop [-h | -?] [-v | -q] [-X] [--store=<store

file>] [all | <service(s)>]•• -h , -? Outputs this Usage information•• -f Log File location•• -v Turns on verbose mode.•• -q Turns off verbose mode.•• -X Exclude this service from the shutdown list• (i.e. only shutdown services which require it)•• --store Save the list of services that were stopped• prior to stopping this service.•• Store file to be use only with --store option.• File must be retained for • "unisrvcntr start --restore=<store file>

<service>".•• <store file> User-determined filename to be used to

maintain • which services are stopped during a shutdown.•• all Shutdown all Subscribed Unisrvcntr Services• <service(s)> Shutdown the requested Unisrvcntr Service(s)• (and any services which require it)•• cycle|restart [-h | -?] [-v | -q] [all | <service(s)>]•• -h , -? Outputs this Usage information•• -f Log File location•• -v Turns on verbose mode.•• -q Turns off verbose mode.•• all Cycle all Subscribed Unisrvcntr Services• <service(s)> Cycle the requested Unisrvcntr Service(s)• (and any services which require it or are

required)•• register [-h | -?]•• Outputs this Usage information•

Page 126: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• register [--with=<MainService[:MainService...]> [--ReqStop] ]

• [--StartInit=<level(s)>] [--StopInit=<level(s)>] <service>

•• register --copy [--with=<MainService[:MainService...]> [--

ReqStop] ]• [--StartInit=<level(s)>] [--StopInit=<level(s)>]

<file>•• --with Register this service with the following Main

Service(s).• Multiple Main Services must be separated by a

colon (:).• The Main Service must be specified within the

main• configuration file with Main_Service_Entry.• Registering with this Main Service means that

this service• will start when the Main Service is started.• --ReqStop When this service is registered with Main

Service(s),• it should also be automatically stopped when

the Main• Service(s) are stopped. This is normally NOT

the• recommended behavior for Shared Components.• --StartInit Bootstrap START this service at the specified

Init Levels• (these are not separated; e.g. 35 means 3 and

5)• (If NULL is passed, it removes all bootstrap

levels)• --StopInit Bootstrap STOP this service at the specified

Init Levels• (these are not separated; e.g. 35 means 3 and

5)• (If NULL is passed, it removes all bootstrap

levels)• --copy Copy the full path-specified file to the

Service Center• directory before performing the registration.

If this• parameter is not supplied, the file must exist

the Service• Center directory.•• register -d <service(s)>•• -d De-Register this service• (Remove from bootstrap area and from any Main

Service(s)• which are requested.)•• register -D <service(s)>•

Page 127: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• -D De-Register and Fully Remove this Service.• (Remove from bootstrap area, all Main

Services, and• delete Entry in Service Center Area.)•• status [-h | -?] [-v | -q] [ <service(s)> ]•• -h , -? Outputs this Usage information•• -f Log File location•• -v Turns on verbose mode.• -q Turns off verbose mode.• <service(s)> Get status information for just the specified

service(s) and• services it depends upon (default is to get

all CA services).•• test <service(s)>• Validation for service names.• Returns 0 for success, and non-zero for

the number • of services which failed.• Valid comps are:• CA-CCS CA-cauwvdmn CA-cci CA-diadna uajm_agent uajm_sched.TGD

uajm_server.TGD

Example

• To determine the status of all the CA services that are installed on a machine ABTGPDB, run the following command:

o cd /opt/CA/SharedComponents/bin o unisrvcntr status o o CA Services Status Reportoo Component Name Pid Status o ------------------------------------ -------

--------------o CA-UAJM Application Server (PRD) 3551 runningo CA-UAJM Agent 13258 runningo CA-uwccuiframework Server 18962 running o CA-uwccsched Server 18758 running o CA-uwccmonitor Server 18500 running o CA-uwcclauncher Server 18230 running o CA-uwccjscservant Server 18044 running o CA-uwccjsc Server 17837 running o CA-uwccha Server 17626 running o CA-uwccevent Server 17422 running o CA-uwccconfig Server 17162 running o CA-UAJM Scheduler (PRD) 4506 runningo /opt/CA/SharedComponents/ccs/cci/bin/caiccid does not

exist

• To determine the status of all the CA services that are installed on a machine ABTGPOSS1, run the following command:

o cd /opt/CA/SharedComponents/bin o unisrvcntr status

Page 128: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

o o CA Services Status Reportoo Component Name Pid Status o ------------------------------------ -------

--------------o CA-UAJM Agent 20505 running

• To determine the status of all the CA services that are installed on a machine ABTGQDB , run the following command:

o cd /opt/CA/SharedComponents/bin o unisrvcntr status o o CA Services Status Reportoo Component Name Pid Status o ------------------------------------ -------

--------------o CA-diadna Server 709 running o CA-UAJM Agent 1270 running

• Stop all services o sudo unisrvcntr stop all o o Executed "/opt/CA/SharedComponents/bin/unishutdown

nsm3x"........OKo WV status Server is not runningo Executed CA-cauwvdmn

stop........................................OKo Stopping cci daemon. o CAICCI_S_0046 Command completed successfullyo Executed CA-cci

stop.............................................OKo Stopping CA-diadna o Stopping DIA DNA daemon...o DIA DNA daemon stoppedo Executed CA-diadna

stop..........................................OK

• Start all services o sudo unisrvcntr start all o o Starting DIA DNA daemon...o DIA DNA daemon startedo Executed CA-diadna

start.........................................OKo Executed CA-cci

start............................................OKo Executed CA-cauwvdmn

start.......................................OKo Executed "/opt/CA/SharedComponents/bin/unistart

nsm3x"...........OK

• Check all services o sudo unisrvcntr status

Autosys astailAutosys Command - astailUsage

• Usage: astail [-f filename] [-x]

Page 129: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

Autosys Manual Monitoring Autosys Jobs

Check Job status

• autorep -j <box/job>

Example

• autorep -w -j box_TGPROD_MRIBCG_generation • • Job Name

Last Start Last End ST Run Pri/Xit• _______________________________________________________________

_ ____________________ ____________________ __ _______ ___• box_TGPROD_MRIBCG_generation

09/03/2009 06:16:20 09/03/2009 06:39:47 SU 554727/1 • job_TGPROD_MRIBCG_db_counter_before_hhif

09/03/2009 06:16:25 09/03/2009 06:16:26 SU 554727/1 • job_TGPROD_MRIBCG_db_counter_after_hhif

09/03/2009 06:34:42 09/03/2009 06:34:54 SU 554727/1 • job_TGPROD_MRIBCG_hhif_counter_after_hhif

09/03/2009 06:34:55 09/03/2009 06:34:56 SU 554727/1 • job_TGPROD_MRIBCG_db_counter_partial

09/03/2009 06:37:47 09/03/2009 06:37:48 SU 554727/1 • job_TGPROD_MRIBCG_mri_counter_after_consolidation

09/03/2009 06:38:04 09/03/2009 06:38:05 SU 554727/1 • job_TGPROD_MRIBCG_compare_hhif_counter

09/03/2009 06:34:57 09/03/2009 06:34:57 SU 554727/1 • job_TGPROD_MRIBCG_compare_mri_counter

09/03/2009 06:38:06 09/03/2009 06:38:06 SU 554727/1 • job_TGPROD_MRIBCG_db_track_log_start

09/03/2009 06:16:23 09/03/2009 06:16:24 SU 554727/1 • job_TGPROD_MRIBCG_db_track_log_stop

09/03/2009 06:38:09 09/03/2009 06:38:09 SU 554727/1 1 • job_TGPROD_MRIBCG_update_reads_for_partial_rounds

09/03/2009 06:34:58 09/03/2009 06:37:46 SU 554727/1 • job_TGPROD_MRIBCG_cleanup

09/03/2009 06:38:07 09/03/2009 06:38:08 SU 554727/1 • job_TGPROD_MRIBCG_consolidate

09/03/2009 06:37:49 09/03/2009 06:38:03 SU 554727/1 • job_TGPROD_MRIBCG_generate_file

09/03/2009 06:16:28 09/03/2009 06:34:40 SU 554727/1 • job_TGPROD_MRIBCG_archive_file

09/03/2009 06:38:11 09/03/2009 06:38:11 SU 554727/1 • fw_TGPROD_MRIBCG_file

09/03/2009 06:38:12 09/03/2009 06:39:13 SU 554727/1 • job_TGPROD_MRIBCG_archive_reports

09/03/2009 06:39:14 09/03/2009 06:39:46 SU 554727/1

Get List of Jobs

Page 130: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• autorep -d -j %TGPROD% | grep ^box_ | awk '{print $1}' > autosys_jobs.txt

• autorep -d -j %TGPROD% | grep ^job_ | awk '{print $1}' >> autosys_jobs.txt

• cat autosys_jobs.txt | sort -u -i -f

Boxes and Jobs

• Boxes • • box_TGPROD_archive• box_TGPROD_archive_ftp• box_TGPROD_archive_stmt• box_TGPROD_bankrupt_credit• box_TGPROD_bankrupt_current• box_TGPROD_cafe• box_TGPROD_caledon_tracker_load• box_TGPROD_chk_unclosed_batches• box_TGPROD_cl_notic_work_management• box_TGPROD_cognos• box_TGPROD_collection_agency• box_TGPROD_create_ptj_for_live_smart• box_TGPROD_create_schedule• box_TGPROD_CSS_gas_odour_rpt• box_TGPROD_CSS_meter_exchanges_rpt• box_TGPROD_daily_back_office_forecasting• box_TGPROD_davox_complaints• box_TGPROD_Davox_extract• box_TGPROD_Davox_upload• box_TGPROD_days_delay_correction• box_TGPROD_device_status• box_TGPROD_device_status_upload• box_TGPROD_direct_debit• box_TGPROD_dispute_drop_premises_extract• box_TGPROD_DP_monitoring• box_TGPROD_energy_CIS_users• box_TGPROD_epost_audit• box_TGPROD_epost_MDR• box_TGPROD_epost_unfunded• box_TGPROD_EPP_review• box_TGPROD_IB_adjusted_usage• box_TGPROD_IB_allocations• box_TGPROD_IB_health_reports• box_TGPROD_IB_heat• box_TGPROD_IB_hec• box_TGPROD_IB_temp• box_TGPROD_IB_usage• box_TGPROD_IB_usage_check• box_TGPROD_incorrect_meter_pressure• box_TGPROD_invoicing_reconnection_charges• box_TGPROD_in_lieu• box_TGPROD_ip_pool_price_loader

Page 131: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• box_TGPROD_large_customers_with_high_consumption• box_TGPROD_late_payments• box_TGPROD_lmdispatch_cancelled• box_TGPROD_load_MREBCG• box_TGPROD_load_MREBCH• box_TGPROD_load_MRE_post• box_TGPROD_load_Remittance_files• box_TGPROD_load_RMF_files• box_TGPROD_lockoffs_and_reconnects• box_TGPROD_mdd_appointments• box_TGPROD_mdd_ftp_out• box_TGPROD_mdd_in_progress• box_TGPROD_mdd_pdf_gen• box_TGPROD_mdd_to_reload• box_TGPROD_monthly_batch• box_TGPROD_monthly_caledon_statistical_data• box_TGPROD_monthly_HEC_SLA• box_TGPROD_monthly_IVR_report• box_TGPROD_monthly_KM_1• box_TGPROD_monthly_KM_2• box_TGPROD_monthly_print• box_TGPROD_monthly_stat• box_TGPROD_monthly_weekend_batch• box_TGPROD_MRIBCG_generation• box_TGPROD_MRIBCH_generation• box_TGPROD_MRI_ftp• box_TGPROD_MRI_rename• box_TGPROD_ODS_extract• box_TGPROD_pending_referral_audit_report• box_TGPROD_post_dp_batch• box_TGPROD_prem_stops_to_work_this_week• box_TGPROD_pre_dp_batch• box_TGPROD_pulled_statements• box_TGPROD_recall_and_meter_compliance• box_TGPROD_refunds• box_TGPROD_remove_OMR_readings• box_TGPROD_resequencerounds• box_TGPROD_SAP_MMS_Devices• box_TGPROD_set_environment• box_TGPROD_statement_check• box_TGPROD_statement_in• box_TGPROD_statement_out• box_TGPROD_tar_archive• box_TGPROD_tests• box_TGPROD_track_statements_audit• box_TGPROD_triggers_check• box_TGPROD_TriStar_survey• box_TGPROD_weekly_batch• box_TGPROD_weekly_terasen_epost

• Jobs • • job_TGPROD_as_inactive_evening

Page 132: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• job_TGPROD_business_days• job_TGPROD_calc_avg_factors• job_TGPROD_check_FTP_ccp_to_print_out_logs• job_TGPROD_ed_consbill_workaround• job_TGPROD_ed_FTP_get_CCP_From_Inbox_file• job_TGPROD_ed_monitor• job_TGPROD_ed_monitor_and_ftp_files• job_TGPROD_ed_run• job_TGPROD_magic_mail_MP_finished• job_TGPROD_mdd_log_archive• job_TGPROD_mdd_monitor_and_ftp_files• job_TGPROD_mdd_pool_old_ptjs• job_TGPROD_mdd_post_apply_cons_main• job_TGPROD_mdd_run_completions• job_TGPROD_monthly_r_adebsum2• job_TGPROD_monthly_r_deposit• job_TGPROD_monthly_r_mrevlist• job_TGPROD_NGV_quarterly_extract• job_TGPROD_OMR_manual_readings_required_report• job_TGPROD_r_synergee• job_TGPROD_work_management_fieldwork• job_TGPROD_work_management_weekly

Monitoring TGPROD Logs• On ABTGPOSS1

o tail -f /opt/CA/SharedComponents/Csam/SockAdapter/log/csam.log

BackupsHow You Can Back Up DefinitionsAutosys recommends that you back up the following definitions periodically so you have files to restore from in the event of a system failure:

• Calendar definitions • Job definitions • Machine definitions • Monitor and report definitions • Global variables

Use the following process to back up your definitions:

• Use the autocal_asc command to back up calendar definitions. • Use the autorep command to back up job and machine definitions. • Use the monbro command to back up monitor and report definitions. • Use the autorep command to back up global variables.

Back Up Calendar Definitions

Page 133: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

You should back up your calendar definitions periodically so youhave files to restore from in the event of a system failure.

• To back up calendar definitions, run each of the following commands from an instance command prompt:

• • autocal_asc –E /directory/autosys.ecal –e ALL• autocal_asc –E /directory/autosys.ccal –c ALL• autocal_asc –E /directory/autosys.scal –s ALL

• where: directory is your local directory outside of the Unicenter AutoSys JM directory structure.

Backup All Job Definitions

• To backup all your jobs with _TGPROD_ designation use: • • autorep -j %_TGPROD_% -q > /directory/TGPROD_<date>.jil

• where: directory is your local directory

Backup All Machine Definitions

• To backup all your machine definitions use: • • autorep -M ALL > /directory/MACHINE_<date>.jil

• where: directory is your local directory

Autosys time0Autosys Command - time0 Unicenter AutoSys JM Time0 Utility

USAGE: time0 [-A Autotime(int)] | [-T Date ] | [-S] [-O Date Format] [-x] [-?]

WHERE: -A Autotime The internal AutoSys time -T Date Format Converts date and time specified "MM/dd/yyyy hh:mm" (remember to quote it)into internal AutoSys time -S Shows the internal AutoSys time structure (changes the formats expected for -A,-T) -O Date Format Overrides format with specified date format -x Returns version information -? Help

NOTE: Use time0 with no Args to print the current autotime

Examples

• time0 -S • • CAUAJM_I_50096 Current AutoTime(internal): 1253307810•

Page 134: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• tm_sec = 30• tm_min = 3• tm_hour = 14• tm_mday = 18• tm_mon = 8• tm_year = 2009• tm_wday = 5• tm_yday = 260• tm_isdst = 1• time0 -T "09/19/2009" • • CAUAJM_I_50099 Autotime(internal): 1253343600• time0 -A 1253343600 • • CAUAJM_I_50097 External Time: 09/19/2009 00:00:00• time0 -x • • 11.0.0.73

Autosys autoflagsAutosys Command - autoflags Unicenter AutoSys JM Autoflags Utility

USAGE: autoflags -a|i|o|d|v|x|r|h|n|?

WHERE:-a ALL information -i Displays Tape id # of the AutoSys Instance -o Displays Operating system of Application Server -d Displays Database Provider Used -v Displays AutoSys version # -x Displays AutoSys full version # -r Displays AutoSys release # -h Displays Hostid -n Displays Hostname -? Help

Unicenter AutoSys JM r11 SP2 Build Number

• The build number for Unicenter AutoSys JM r11 SP2 is 73. You can verify the build number by executing the command, autoflags –i . Your installation or upgrade is successful if the command returns 73.

Examples

• autoflags -a • • 73 SOLAR ANY 11.0 0 84413a5a abtgpdb• autoflags -x • • 11.0.0.73• autoflags -o •

Page 135: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• SOLAR• autoflags -d • • ANY• autoflags -h -n • • 84413a5a• abtgpdb

Autosys autopingAutosys Command - autoping Unicenter AutoSys JM Autoping Utility

USAGE: autoping [-m Machine|ALL] [-A] [-D] [-x] [-?]

WHERE: -m Machine|ALL Machine name to ping, or ALL for ALL machines -D Checks the Database connections from Application Server -A Sends an ALARM if there are problems -x Returns version information -? Help

ExampleVerify that both client and server are correctly configured

• autoping -m ALL -A -D • • CAUAJM_I_50023 AutoPinging Machine [absgpdb] • CAUAJM_I_50028 AND checking the Agent's DB Access.•• CAUAJM_I_50025 AutoPing WAS SUCCESSFUL!• CAUAJM_I_50023 AutoPinging Machine [absgpqftp] • CAUAJM_I_50028 AND checking the Agent's DB Access.•• CAUAJM_I_50025 AutoPing WAS SUCCESSFUL!• CAUAJM_I_50023 AutoPinging Machine [abtgpdb] • CAUAJM_I_50028 AND checking the Agent's DB Access.•• CAUAJM_I_50025 AutoPing WAS SUCCESSFUL!• CAUAJM_I_50023 AutoPinging Machine [abtgpftp] • CAUAJM_I_50028 AND checking the Agent's DB Access.•• CAUAJM_I_50025 AutoPing WAS SUCCESSFUL!• CAUAJM_I_50023 AutoPinging Machine [abtgposs1] • CAUAJM_I_50028 AND checking the Agent's DB Access.•• CAUAJM_I_50025 AutoPing WAS SUCCESSFUL!• CAUAJM_I_50023 AutoPinging Machine [abtgpstmt] • CAUAJM_I_50028 AND checking the Agent's DB Access.•• CAUAJM_I_50025 AutoPing WAS SUCCESSFUL!• CAUAJM_I_50023 AutoPinging Machine [abtgqdb] • CAUAJM_I_50028 AND checking the Agent's DB Access.

Page 136: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

•• CAUAJM_I_50025 AutoPing WAS SUCCESSFUL!

Autosys autosyslogAutosys Command - autosyslog Unicenter AutoSys JM log Utility

USAGE: autosyslog [-e | -s | -j Job_Name ] [-p] [-?]

WHERE -e [ monitor (tail -f) the event scheduler output file. ] -s [ monitor (tail -f) the application server output file. ] -j job_name [ Inspect the latest remote agent output file for job_name ] -p Include the output from the environment if available (RemoteProFile) -? Help

ExampleMonitoring CA Unicenter AutoSys JM Scheduler

• autosyslog -e • • Monitoring CA Unicenter AutoSys JM Scheduler Log: • /opt/CA/UnicenterAutoSysJM/autouser.TGD/out/event_demon

.TGD•• *** To break out type control-c (^c) ***•• [01/09/2009 17:29:57] <Event was Scheduled based on Job

Definition.>• [01/09/2009 17:29:57] CAUAJM_I_40245 EVENT: CHANGE_STATUS

STATUS: RUNNING JOB: box_TG_load_Remittance_files• [01/09/2009 17:29:58] CAUAJM_I_40245 EVENT: CHANGE_STATUS

STATUS: STARTING JOB: job_TG_FTP_get_Remittance_file_c• [01/09/2009 17:29:58] CAUAJM_I_10082 [170.248.99.73

connected for job_TG_FTP_get_Remittance_file_c 508.328.1]• [01/09/2009 17:29:59] CAUAJM_I_40245 EVENT: CHANGE_STATUS

STATUS: RUNNING JOB: job_TG_FTP_get_Remittance_file_c• [01/09/2009 17:30:00]

----------------------------------------• [01/09/2009 17:30:00] CAUAJM_I_40245 EVENT: CHANGE_STATUS

STATUS: FAILURE JOB: job_TG_FTP_get_Remittance_file_c EXITCODE: 1

• [01/09/2009 17:31:00] ----------------------------------------

• [01/09/2009 17:32:00] ----------------------------------------

• [01/09/2009 17:33:00] ----------------------------------------

• [01/09/2009 18:27:02] CAUAJM_I_40245 EVENT: FORCE_STARTJOB JOB: box_TG_tests

• [01/09/2009 18:27:03] CAUAJM_I_40245 EVENT: CHANGE_STATUS STATUS: RUNNING JOB: box_TG_tests

Page 137: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• [01/09/2009 18:27:03] CAUAJM_E_90015 CA Unicenter AutoSys JM Agent [2AJR] - License Failure. Please contact your account representative to obtain a new license.

• [01/09/2009 18:27:03] CAUAJM_I_40245 EVENT: CHANGE_STATUS STATUS: STARTING JOB: job_TG_test_FTP_server

• [01/09/2009 18:27:03] CAUAJM_I_40245 EVENT: CHANGE_STATUS STATUS: STARTING JOB: job_TG_test_DB_server

• [01/09/2009 18:27:03] CAUAJM_I_40245 EVENT: CHANGE_STATUS STATUS: STARTING JOB: job_TG_test_STMT_server

• [01/09/2009 18:27:03] CAUAJM_I_10082 [SGDDB connected for job_TG_test_DB_server 480.329.1]

• [01/09/2009 18:27:03] CAUAJM_I_10082 [170.248.99.73 connected for job_TG_test_FTP_server 481.329.1]

• [01/09/2009 18:27:04] CAUAJM_I_10082 [SGDDB connected for job_TG_test_STMT_server 482.329.1]

• [01/09/2009 18:27:04] CAUAJM_I_40245 EVENT: CHANGE_STATUS STATUS: RUNNING JOB: job_TG_test_DB_server

• [01/09/2009 18:27:05] CAUAJM_I_40245 EVENT: CHANGE_STATUS STATUS: SUCCESS JOB: job_TG_test_DB_server EXITCODE: 0

• [01/09/2009 18:27:05] CAUAJM_I_40245 EVENT: CHANGE_STATUS STATUS: RUNNING JOB: job_TG_test_STMT_server

• [01/09/2009 18:27:05] CAUAJM_I_40245 EVENT: CHANGE_STATUS STATUS: RUNNING JOB: job_TG_test_FTP_server

• [01/09/2009 18:27:05] CAUAJM_I_40245 EVENT: CHANGE_STATUS STATUS: SUCCESS JOB: job_TG_test_STMT_server EXITCODE: 0

• [01/09/2009 18:27:05] CAUAJM_I_40245 EVENT: CHANGE_STATUS STATUS: SUCCESS JOB: job_TG_test_FTP_server EXITCODE: 0

• [01/09/2009 18:27:06] CAUAJM_I_40245 EVENT: CHANGE_STATUS STATUS: SUCCESS JOB: box_TG_tests

• [01/09/2009 18:28:00] ----------------------------------------

• [01/09/2009 18:29:00] ----------------------------------------

Monitoring application server output

• autosyslog -s • • Monitoring application server output file: • /opt/CA/UnicenterAutoSysJM/autouser.PRD/out/as_server.P

RD•• *** To break out type control-c (^c) ***•• [04/26/2009 22:07:02] CAUAJM_W_10632 Attempting to

reconnect to database <TGPROD>. Attempt number [3].• [04/26/2009 22:07:04] CAUAJM_I_10633 Reconnection attempt

for database <TGPROD> succeeded.• [04/26/2009 22:25:11] CAUAJM_I_40262 SIGTERM signal

caught! - shutting down• [04/26/2009 22:25:12] CAUAJM_I_30004 CA Unicenter AutoSys

JM Application Server shutdown complete...• [04/26/2009 22:25:12] CAUAJM_I_30000 CA Unicenter AutoSys

JM Application Server exiting!

Page 138: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• CA Unicenter AutoSys JM Application Server Log [04/26/2009 22:25:16]

• Time Message• --------------------------

------------------------------------------------------------------------------

• [04/26/2009 22:25:16] CAUAJM_I_30001 CA Unicenter AutoSys JM Application Server startup complete...

• [04/26/2009 22:25:16] CAUAJM_I_10655 System is running in single server mode. Event server: TGPROD.

Autosys chaseAutosys Command - chase Unicenter AutoSys JM Chase Utility

USAGE: chase [-A] [-E] [-x] [-?]

WHERE: -A Send Alarms if any Job is in STARTING/RUNNING state -E Send Restart/Status Events -x Returns version information -? Help

Example

• cd /opt/CA/SharedComponents/bin • chase • _______________________________________________________________

______________•• CAUAJM_I_50154 Running the Chase Process.• CAUAJM_I_50156 There are no Jobs in a STARTING or RUNNING

state!• CAUAJM_I_50157 Chase is successful.• _______________________________________________________________

______________

Autosys chk_auto_upAutosys Command - chk_auto_up

Check if event processor and DB are both up

• Logon to 208.38.23.199 - ABTGPDB (TGPROD) • chk_auto_up • • _______________________________________________________________

_______________•• CAUAJM_I_50054 Attempting (1) to Connect with Database: TGPROD• CAUAJM_I_50055 *** Have Connected successfully with Database:

TGPROD. ***• _______________________________________________________________

_______________•

Page 139: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• CAUAJM_I_50128 Connected with Event Server: TGPROD•• _______________________________________________________________

_______________•• _______________________________________________________________

_______________•• CAUAJM_I_50038 Checking CA Unicenter AutoSys JM Scheduler on

Machine: abtgpdb• CAUAJM_I_50044 Primary Scheduler is RUNNING on machine: abtgpdb• _______________________________________________________________

_______________

Autosys as_infoAutosys Command - as_info as_info [-a] [-c] [-d] [-f] [-i] [-l] [-p] [-s] [-v]

Example

• as_info • • Gathering information. Please wait...•• _______________________________________________________________

________________•• Unicenter AutoSys Job Management • _______________________________________________________________

________________•• Product Version: 11.0.0.73• Install Time: 02/16/2009 22:27• Install Directory: /opt/CA/UnicenterAutoSysJM• Install Logs:

/opt/CA/installer/log/UnicenterAutoSysJM.install.log• /opt/CA/installer/log/UnicenterAutoSysJM.

Patches.log• /opt/CA/installer/log/UnicenterAutoSysJM.

Oracle.mdbupdate.log•• Install Flags: Type: Custom• Start the Agent service following

installation: Y• Set the Agent service to start at system

startup: Y• Start the Application Server following

installation: Y• Set the Application Server to start at

system startup: Y• Start the Scheduler service following

installation: Y• Set Scheduler service to start at system

startup: Y•

Page 140: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• DSA Information: Enable secure communications: N• Communications Multiplexing Port: 7163•• Installed Components: Scheduler• Application Server• Client• Agent• SDK• Documentation•• Configured Instances: PRD•• Database Information: Database Type: Oracle• Oracle Service Name: TGPROD• Database Name: mdb• Database User Name: autosys• Oracle Admin User: dkhrissa• mdb Admin User: mdbadmin• Tablespace Information:• Name: mdb• Location: <Enter Data Directory>• MDB Data Tablespace:• Size MB: 400• MDB Index Tablespace:• Size MB: 100• /opt/CA/UnicenterAutoSysJM/autosys/bin/as_info: unifstat: not

found

Autosys cron2jilAutosys Command - cron2jil

• cron2jil •• usage: cron2jil -f cronFile [ -d outputDirectory ] [ -i

includeFile ] [ -m machine ] [ -p prefix]

Example

• Create file from cron o crontab -l > cron_energyop.txt

• Convert cron file to jil file o cron2jil -f cron_energyop.txt -p "job_TG_" -m "TGDB"

Autosys JILAutosys Command - jil

• To insert a job directly into the DB o jil <CR> o o insert_job: job.id job_type: co machine: machine_nameo command: echo testing jil

Page 141: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

o [exit | go | ;] (depending on the DB you are using) • Template example: • • /* ----------------- template ----------------- */•• insert_job: template job_type: c • box_name: box1• command: ls -l• machine: localhost• owner: lyota01@TANT-A01• permission: gx,ge,wx,we,mx,me• date_conditions: 1• days_of_week: all• start_times: "15:00, 14:00"• run_window: "14:00 - 6:00"• condition: s (job1)• description: "description field"• n_retrys: 12• term_run_time: 60• box_terminator: 1• job_terminator: 1• std_out_file: /tmp/std_out• std_err_file: /tmp/std_err• min_run_alarm: 5• max_run_alarm: 10• alarm_if_fail: 1• max_exit_success: 2• chk_files: /tmp 2000• profile: /tmp/.profile• job_load: 25• priority: 1• auto_delete: 12

Example

• Insert Box using JIL o jil o o jil>>01> insert_job: box_TG_cafe job_type: b o jil>>02> owner: autosyso jil>>03> permission: gx,wx,mxo jil>>04> date_conditions: 1o jil>>05> days_of_week: sao jil>>06> start_times: "16:00"o jil>>07> condition: s(box_TG_post_dp_batch)o jil>>08> description: "CAFE Extract"o jil>>09> alarm_if_fail: 0o jil>>10> group: TG_cafeo jil>>11> exito _________________________________________________________

_____________________oo CAUAJM_I_50204 Inserting/Updating Job: box_TG_cafeo CAUAJM_I_10122 Job 'box_TG_cafe' scheduled: 01/10/2009

16:00:00

Page 142: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

o CAUAJM_I_50205 Database Change WAS Successful!o _________________________________________________________

_____________________o

• Insert Command using JIL o jil o o jil>>01> insert_job: job_TG_extract_customer_premise_info

job_type: co jil>>02> box_name: box_TG_cafeo jil>>03> command: sudo -u energyop -i $$

{CISSOURCE}/CAFE/extract_customer_premise_info.sh $$ENVo jil>>04> machine: TGDBo jil>>05> owner: autosyso jil>>06> permission:o jil>>07> condition: o jil>>08> description: "extract_customer_premise_info"o jil>>09> std_out_file: $$

{CISAUTOLOGS}/extract_customer_premise_info_out.logo jil>>10> std_err_file: $$

{CISAUTOLOGS}/extract_customer_premise_info_err.logo jil>>11> alarm_if_fail: 0o jil>>12> group: TG_cafeo jil>>13> exito _________________________________________________________

_____________________oo CAUAJM_I_50204 Inserting/Updating Job:

job_TG_extract_customer_premise_infoo CAUAJM_I_50205 Database Change WAS Successful!o _________________________________________________________

_____________________

• Insert File Watcher using JIL o jil o o jil>>01> insert_job: fw_TG_CW27505_Extract_Premise

job_type: f o jil>>02> box_name: box_TG_cafeo jil>>03> machine: TGFTPo jil>>04> owner: energyopo jil>>05> permission:o jil>>06> condition:

s(job_TG_extract_customer_premise_info)o jil>>07> description: "CW27505_Extract_Premise_yyyy-mm-

dd.dat.gz file watcher"o jil>>08> watch_file: $$

{CISFTPFTP}/CAFE/out/CW27505_Extract_Premise_$${DATEA}.dat.gz

o jil>>09> watch_interval: 60o jil>>10> alarm_if_fail: 0o jil>>11> group: TG_cafeo jil>>12> exito _________________________________________________________

_____________________oo CAUAJM_I_50204 Inserting/Updating Job:

fw_TG_CW27505_Extract_Premiseo CAUAJM_I_50205 Database Change WAS Successful!o _________________________________________________________

_____________________

Page 143: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• Examples on tgdap01 • • ls -lrt /opt/CA/UnicenterAutoSysJM/autosys/test/jil•• -r--r--r-- 1 tgteam 2781 Aug 11 2003 ab• -r--r--r-- 1 tgteam 2910 Aug 11 2003 alarms• -r--r--r-- 1 tgteam 1753 Aug 11 2003 appl_retry• -r--r--r-- 1 tgteam 1767 Jul 20 2006 auto_hold• -r--r--r-- 1 tgteam 2695 Aug 11 2003 boxkill• -r--r--r-- 1 tgteam 1367 Aug 11 2003 box_status• -r--r--r-- 1 tgteam 1405 Jul 20 2006 bro_all_events• -r--r--r-- 1 tgteam 1449 Jul 27 2006 chase_test• -r--r--r-- 1 tgteam 1833 Aug 11 2003 cond_que• -r--r--r-- 1 tgteam 4290 Aug 11 2003 cond_test• -r--r--r-- 1 tgteam 1739 Aug 11 2003 cond_test2• -r--r--r-- 1 tgteam 1844 Jan 30 2006 custom_cal.jil• -r--r--r-- 1 tgteam 2151 Aug 11 2003 date_time• -r--r--r-- 1 tgteam 2052 Aug 11 2003 date_time2• -r--r--r-- 1 tgteam 1629 Jul 21 2006 daylite_time• -r--r--r-- 1 tgteam 1214 Aug 30 2006 daylite_time.cal• -r--r--r-- 1 tgteam 1787 Jan 30 2006

delete_machines.jil• -r--r--r-- 1 tgteam 1516 Aug 11 2003 everymin• -r--r--r-- 1 tgteam 1503 Aug 11 2003 exclude• -r--r--r-- 1 tgteam 389 Jul 25 2006

external_instance• -r--r--r-- 1 tgteam 1687 Aug 11 2003 file_watch• -r--r--r-- 1 tgteam 1532 Jul 21 2006 file_watch_kill• -r--r--r-- 1 tgteam 1800 Jul 28 2006 glob_blob• -r--r--r-- 1 tgteam 2012 Jul 25 2006

group_application• -r--r--r-- 1 tgteam 1544 Aug 11 2003 heartbeat• -r--r--r-- 1 tgteam 1393 Aug 11 2003 job_features• -r--r--r-- 1 tgteam 1347 Aug 11 2003 job_kill_inbox• -r--r--r-- 1 tgteam 1697 Aug 11 2003 kill_all_kids• -r--r--r-- 1 tgteam 117247 Aug 11 2003 lots_jobs• -r--r--r-- 1 tgteam 1228 Aug 11 2003 machine_list• -r--r--r-- 1 tgteam 1477 Jul 27 2006 machines• -r--r--r-- 1 tgteam 1429 Aug 11 2003 machines.vplato• -r--r--r-- 1 tgteam 1429 Aug 11 2003 machines.vtibet• -r--r--r-- 1 tgteam 2654 Aug 11 2003 man• -r--r--r-- 1 tgteam 5713 Aug 11 2003 many• -r--r--r-- 1 tgteam 5623 Aug 11 2003 many.1• -r--r--r-- 1 tgteam 2635 Aug 11 2003 many2• -r--r--r-- 1 tgteam 6392 Aug 11 2003 many.que• -r--r--r-- 1 tgteam 1282 Aug 11 2003 mon_alarm• -r--r--r-- 1 tgteam 1307 Aug 11 2003 mon_all_events• -r--r--r-- 1 tgteam 1307 Aug 11 2003 mon_all_status• -r--r--r-- 1 tgteam 1305 Aug 11 2003 mon_on_ice• -r--r--r-- 1 tgteam 1367 Jul 26 2006 mon_status• -r--r--r-- 1 tgteam 1498 Jul 26 2006 Notification• -r--r--r-- 1 tgteam 1275 Aug 11 2003 pars• -r--r--r-- 1 tgteam 2617 Aug 11 2003 peter

Page 144: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• -r--r--r-- 1 tgteam 2888 Jul 21 2006 Pyramid• -r--r--r-- 1 tgteam 2198 Aug 11 2003 que• -r--r--r-- 1 tgteam 3211 Aug 11 2003 que2• -r--r--r-- 1 tgteam 1319 Aug 11 2003 que_add• -r--r--r-- 1 tgteam 1919 Aug 11 2003 que.new• -r--r--r-- 1 tgteam 2143 Aug 11 2003 resource• -r--r--r-- 1 tgteam 1298 Aug 11 2003 run_csh• -r--r--r-- 1 tgteam 1230 Aug 11 2003 secure• -r--r--r-- 1 tgteam 1527 Jul 31 2006 ServiceDesk• -r--r--r-- 1 tgteam 1294 Aug 11 2003 sleep• -r--r--r-- 1 tgteam 1289 Aug 11 2003 sleep2• -r--r--r-- 1 tgteam 2002 Jul 21 2006 sleep.jil• -r--r--r-- 1 tgteam 1394 Aug 11 2003 std_files• -r--r--r-- 1 tgteam 1210 Aug 30 2006 test_cal.cal• -r--r--r-- 1 tgteam 1392 Oct 13 2006 test_install• -r--r--r-- 1 tgteam 5587 Aug 11 2003 tmp

Autosys autocal_ascAutosys Command - autocal_ascMenu Usage

• autocal_asc • • AutoSys Calendar Utility•• Please select from the following options:• [1] Administer Standard Calendar.• [2] Administer Extended Calendar.• [3] Administer Cycle.• [4] List all Calendars.• [5] List all Cycles.• [0] Exit AutoSys Calendar Utility.•• > 1•• Administer AutoSys Standard Calendar•• Please select from the following options:• [1] Create a Calendar.• [2] Add dates to Calendar.• [3] Delete Calendar dates.• [4] Delete an entire Calendar.• [5] List dates for a Calendar.• [6] List all Standard Calendars.• [9] Exit from "Administer AutoSys Standard Calendar" menu.• [0] Exit AutoSys Calendar Utility.•• > 2•• Administer AutoSys Extended Calendar•• Please select from the following options:

Page 145: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• [1] Create an Extended Calendar.• [2] Modify an Extended Calendar.• [3] Delete an Extended Calendar.• [4] List an Extended Calendar definition.• [5] Preview an Extended Calendar.• [6] Regenerate an Extended Calendar.• [7] List all Extended Calendars.• [9] Exit from "Administer AutoSys Extended Calendar" menu.• [0] Exit AutoSys Calendar Utility.•• > 3•• Administer AutoSys Cycles•• Please select from the following options:• [1] Create a Cycle.• [2] Add periods to Cycle.• [3] Delete a Cycle.• [4] List dates for Cycle.• [5] List all Cycles.• [9] Exit from "Administer AutoSys Cycles" menu.• [0] Exit AutoSys Calendar Utility.•• > 4 •• Existing Calendars: • --------------------------------• cal_Business_Days Standard Calendar• cal_Incorrect_Meter_pressure Standard Calendar• cal_MRI_Free_Days Standard Calendar• cal_Monthly_Batch Standard Calendar• cal_Monthly_Weekend_Batch Standard Calendar• cal_Natural_Gas_Vehicle Standard Calendar• cal_SAP_MMS_Device Standard Calendar•

Command Line Usage Unicenter AutoSys JM Calendar Utility

USAGE: autocal_asc [-D|-E export_filename] [-c cycle_name|-e extcal|-s stdcal] | -I import_filename | -l | -l[c|e|s] | -x | - | -?

WHERE: -D deletes a calendar or cycle -E export_filename exports calendars or cycles to the given file -c cycle_name | ALL specifies cycle for -D or -E -e extcal | ALL specifies extended calendar for -D or -E -s stdcal | ALL specifies standard calendar for -D or -E -I import_filename imports calendars or cycles from the given file -l lists all standard and extended calendars -lc lists all cycles -le lists all extended calendars

Page 146: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

-ls lists all standard calendars -x prints version information - reads menu selections from standard input -? prints this message

NOTE: -E exports all calendars of the given type when the ALL keyword is used.

Back Up Calendar Definitions

• You should back up your calendar definitions periodically so you have files to restore from in the event of a system failure.

• To back up calendar definitions, run each of the following commands from an instance command prompt:

• • autocal_asc –E autosys.EXTENDED_CAL –e ALL• autocal_asc –E autosys.CYCLES –c ALL• autocal_asc –E autosys.STANDARD_CAL –s ALL

ExamplesShow all standard calendars

• autocal_asc -ls • • Existing Calendars: • --------------------------------• cal_Business_Days Standard Calendar• cal_Incorrect_Meter_pressure Standard Calendar• cal_MRI_Free_Days Standard Calendar• cal_Monthly_Batch Standard Calendar• cal_Monthly_Weekend_Batch Standard Calendar• cal_Natural_Gas_Vehicle Standard Calendar• cal_SAP_MMS_Device Standard Calendar• cal_Tar_Archive_Files Standard Calendar

Delete Calendar

• autocal_asc -D -s cal_Business_Days • • CAUAJM_I_50438 Delete Successful for Calendar:

cal_Business_Days • CAUAJM_W_10119 Job 'job_TG_business_days' uses a custom

calendar that does not resolve to any valid dates.• CAUAJM_W_10120 This job was not scheduled to run!• autocal_asc -D -s cal_Incorrect_Meter_pressure • • CAUAJM_I_50438 Delete Successful for Calendar:

cal_Incorrect_Meter_pressure • CAUAJM_W_10119 Job 'box_TG_incorrect_meter_pressure' uses a

custom calendar that does not resolve to any valid dates.• CAUAJM_W_10120 This job was not scheduled to run!• autocal_asc -D -s cal_MRI_Free_Days •

Page 147: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• CAUAJM_I_50438 Delete Successful for Calendar: cal_MRI_Free_Days

• CAUAJM_I_10122 Job 'box_TG_MRIBCG_generation' scheduled: 02/25/2009 05:30:00

• CAUAJM_I_10122 Job 'box_TG_MRIBCH_generation' scheduled: 02/25/2009 05:00:00

• autocal_asc -D -s autocal_asc -D -s cal_Monthly_Batch • • CAUAJM_I_50438 Delete Successful for Calendar:

cal_Monthly_Batch • CAUAJM_W_10119 Job 'box_TG_monthly_batch' uses a custom

calendar that does not resolve to any valid dates.• CAUAJM_W_10120 This job was not scheduled to run!• CAUAJM_W_10119 Job 'box_TG_monthly_print' uses a custom

calendar that does not resolve to any valid dates.• CAUAJM_W_10120 This job was not scheduled to run!• CAUAJM_W_10119 Job 'box_TG_monthly_HEC_SLA' uses a custom

calendar that does not resolve to any valid dates.• CAUAJM_W_10120 This job was not scheduled to run!• CAUAJM_W_10119 Job 'box_TG_monthly_IVR_report' uses a custom

calendar that does not resolve to any valid dates.• CAUAJM_W_10120 This job was not scheduled to run!• autocal_asc -D -s cal_Monthly_Weekend_Batch • • CAUAJM_I_50438 Delete Successful for Calendar:

cal_Monthly_Weekend_Batch • CAUAJM_W_10119 Job 'box_TG_monthly_weekend_batch' uses a custom

calendar that does not resolve to any valid dates.• CAUAJM_W_10120 This job was not scheduled to run!• CAUAJM_W_10119 Job 'box_TG_monthly_stat' uses a custom calendar

that does not resolve to any valid dates.• CAUAJM_W_10120 This job was not scheduled to run!• CAUAJM_W_10119 Job 'box_TG_ODS_extract' uses a custom calendar

that does not resolve to any valid dates.• CAUAJM_W_10120 This job was not scheduled to run!• CAUAJM_W_10119 Job 'job_TG_calc_avg_factors' uses a custom

calendar that does not resolve to any valid dates.• CAUAJM_W_10120 This job was not scheduled to run!• autocal_asc -D -s cal_Natural_Gas_Vehicle • • CAUAJM_I_50438 Delete Successful for Calendar:

cal_Natural_Gas_Vehicle • CAUAJM_W_10119 Job 'job_TG_NGV_quarterly_extract' uses a custom

calendar that does not resolve to any valid dates.• CAUAJM_W_10120 This job was not scheduled to run!• autocal_asc -D -s cal_SAP_MMS_Device • • CAUAJM_I_50438 Delete Successful for Calendar:

cal_SAP_MMS_Device • CAUAJM_W_10119 Job 'box_TG_SAP_MMS_Devices' uses a custom

calendar that does not resolve to any valid dates.• CAUAJM_W_10120 This job was not scheduled to run!

Import calendar

Page 148: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• autocal_asc -I cal_STANDARD • • CAUAJM_I_50430 Insert Successful for Calendar:

cal_Incorrect_Meter_pressure • CAUAJM_I_10122 Job 'box_TG_incorrect_meter_pressure' scheduled:

03/01/2009 12:00:00• CAUAJM_I_50430 Insert Successful for Calendar:

cal_MRI_Free_Days • CAUAJM_I_10122 Job 'box_TG_MRIBCG_generation' scheduled:

02/25/2009 05:30:00• CAUAJM_I_10122 Job 'box_TG_MRIBCH_generation' scheduled:

02/25/2009 05:00:00• CAUAJM_I_50430 Insert Successful for Calendar:

cal_Natural_Gas_Vehicle • CAUAJM_I_10122 Job 'job_TG_NGV_quarterly_extract' scheduled:

04/15/2009 08:05:00• CAUAJM_I_50430 Insert Successful for Calendar:

cal_SAP_MMS_Device • CAUAJM_I_10122 Job 'box_TG_SAP_MMS_Devices' scheduled:

05/02/2009 16:00:00• CAUAJM_I_50430 Insert Successful for Calendar:

cal_Business_Days • CAUAJM_I_10122 Job 'job_TG_business_days' scheduled: 12/15/2009

08:00:00• CAUAJM_I_50430 Insert Successful for Calendar:

cal_Monthly_Batch • CAUAJM_I_10122 Job 'box_TG_monthly_batch' scheduled: 03/01/2009

02:00:00• CAUAJM_I_10122 Job 'box_TG_monthly_print' scheduled: 03/01/2009

06:00:00• CAUAJM_I_10122 Job 'box_TG_monthly_HEC_SLA' scheduled:

03/01/2009 12:00:00• CAUAJM_I_10122 Job 'box_TG_monthly_IVR_report' scheduled:

03/01/2009 15:00:00

Make backup of Standard calendar

• autocal_asc -E cal_STANDARD -s ALL • • -rw-rw-r-- 1 aczaszyn tgteam 2702 Feb 24 12:03

cal_STANDARD

Check calendars

• cat cal_STANDARD • • calendar: cal_Business_Days• 12/15/2009 00:00• calendar: cal_Incorrect_Meter_pressure• 02/01/2009 00:00• 03/01/2009 00:00• 04/05/2009 00:00• 05/03/2009 00:00• 06/07/2009 00:00

Page 149: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• 07/05/2009 00:00• 08/02/2009 00:00• 09/06/2009 00:00• 10/04/2009 00:00• 11/01/2009 00:00• 12/06/2009 00:00• 01/03/2010 00:00• calendar: cal_MRI_Free_Days• 02/01/2009 00:00• 02/02/2009 00:00• 02/08/2009 00:00• 02/09/2009 00:00• 02/15/2009 00:00• 02/16/2009 00:00• 02/22/2009 00:00• 02/23/2009 00:00• 02/25/2009 00:00• 03/01/2009 00:00• 03/02/2009 00:00• 03/08/2009 00:00• 03/09/2009 00:00• 03/15/2009 00:00• 03/16/2009 00:00• 03/22/2009 00:00• 03/23/2009 00:00• 03/26/2009 00:00• 03/29/2009 00:00• 03/30/2009 00:00• 04/05/2009 00:00• 04/06/2009 00:00• 04/10/2009 00:00• 04/12/2009 00:00• 04/13/2009 00:00• 04/19/2009 00:00• 04/20/2009 00:00• 04/26/2009 00:00• 04/27/2009 00:00• 05/03/2009 00:00• 05/04/2009 00:00• 05/10/2009 00:00• 05/11/2009 00:00• 05/17/2009 00:00• 05/18/2009 00:00• 05/24/2009 00:00• 05/25/2009 00:00• 05/27/2009 00:00• 05/31/2009 00:00• 06/01/2009 00:00• 06/07/2009 00:00• 06/08/2009 00:00• 06/14/2009 00:00• 06/15/2009 00:00

Page 150: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• 06/21/2009 00:00• 06/22/2009 00:00• 06/25/2009 00:00• 06/28/2009 00:00• 06/29/2009 00:00• 07/01/2009 00:00• 07/05/2009 00:00• 07/06/2009 00:00• 07/12/2009 00:00• 07/13/2009 00:00• 07/19/2009 00:00• 07/20/2009 00:00• 07/25/2009 00:00• 07/26/2009 00:00• 07/27/2009 00:00• 08/02/2009 00:00• 08/03/2009 00:00• 08/09/2009 00:00• 08/10/2009 00:00• 08/16/2009 00:00• 08/17/2009 00:00• 08/23/2009 00:00• 08/24/2009 00:00• 08/26/2009 00:00• 08/30/2009 00:00• 08/31/2009 00:00• 09/06/2009 00:00• 09/07/2009 00:00• 09/13/2009 00:00• 09/14/2009 00:00• 09/20/2009 00:00• 09/21/2009 00:00• 09/25/2009 00:00• 09/27/2009 00:00• 09/28/2009 00:00• 10/04/2009 00:00• 10/05/2009 00:00• 10/11/2009 00:00• 10/12/2009 00:00• 10/18/2009 00:00• 10/19/2009 00:00• 10/25/2009 00:00• 10/26/2009 00:00• 10/27/2009 00:00• 11/01/2009 00:00• 11/02/2009 00:00• 11/08/2009 00:00• 11/09/2009 00:00• 11/11/2009 00:00• 11/15/2009 00:00• 11/16/2009 00:00• 11/22/2009 00:00

Page 151: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• 11/23/2009 00:00• 11/26/2009 00:00• 11/29/2009 00:00• 11/30/2009 00:00• 12/06/2009 00:00• 12/07/2009 00:00• 12/13/2009 00:00• 12/14/2009 00:00• 12/20/2009 00:00• 12/21/2009 00:00• 12/25/2009 00:00• 12/27/2009 00:00• 12/28/2009 00:00• 01/01/2010 00:00• 01/03/2010 00:00• 01/04/2010 00:00• 01/10/2010 00:00• 01/11/2010 00:00• 01/17/2010 00:00• 01/18/2010 00:00• 01/24/2010 00:00• 01/25/2010 00:00• 01/31/2010 00:00• calendar: cal_Monthly_Batch• 02/01/2009 00:00• 03/01/2009 00:00• 04/01/2009 00:00• 05/01/2009 00:00• 06/01/2009 00:00• 07/01/2009 00:00• 08/01/2009 00:00• 09/01/2009 00:00• 10/01/2009 00:00• 11/01/2009 00:00• 12/01/2009 00:00• 01/01/2010 00:00• calendar: cal_Monthly_Weekend_Batch• 02/07/2009 00:00• 03/07/2009 00:00• 04/04/2009 00:00• 05/02/2009 00:00• 06/06/2009 00:00• 07/04/2009 00:00• 08/02/2009 00:00• 09/05/2009 00:00• 10/03/2009 00:00• 11/07/2009 00:00• 12/05/2009 00:00• 01/02/2010 00:00• calendar: cal_Natural_Gas_Vehicle• 04/15/2009 00:00• 07/15/2009 00:00

Page 152: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• 10/15/2009 00:00• 01/15/2010 00:00• calendar: cal_SAP_MMS_Device• 05/02/2009 00:00• 07/18/2009 00:00• 10/03/2009 00:00• 11/14/2009 00:00

Autosys sendeventAutosys Commands - sendeventSendevents to AutoSys for a variety of purposes, including starting or stopping AutoSys jobs, stopping the Event processor, and putting a job on hold. This command is also used to set AutoSys global variables or cancel a scheduled event. Unicenter AutoSys JM Sendevent Utility

USAGE: sendevent -E EVENT [-S AUTOSERV] [-A Alarm] [-J JobName] [-B GroupName] [-I ApplicationName] [-s Status] [-P Event Priority] [-M Max Send Trys ] [-q Job Queue Priority] [-G Global=Value] [-C Comment] [-U (Un-SENDEVENT)] [-T Time of Event] [-K Signal(s)] [-N Machine] [-x] [-?]

WHERE: -E Event -A Alarm -J JobName -B GroupName -I ApplicationName -s Status -S AUTOSERV AutoSys instance name -P Event Priority Assigns a priority to the event -M Max Send Trys Number of attempts to be made to send event in case of failure -q Job Queue Priority Assigns new queue priority to the job -G Global=Value Sets value to the global variable -C Comment Sends a comment ( Can be alphanumeric and should not exceed 255 characters) -U (Un-SENDEVENT) Cancels the last event specified by -E event -T Time of Event Processes the event on specified date and time in "MM/dd/[yy]yy hh:mm" format -K Signal(s) Sends a signal to a running Job -N Machine Real Machine name to send MACH_OFFLINE and MACH_ONLINE events -x Returns version information -? Help

NOTE: 1. Event [-E] is required. 2. [-s status] should be used with -E CHANGE_STATUS 3. [-G Global=value] should be used with -E SET_GLOBAL 4. If both [-B GroupName] and [-I ApplicationName]

Page 153: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

attributes are specified this is treated as an AND condition 5. [-J JobName] and [-B GroupName or -I ApplicationName] are mutually exclusive.

Event

• The following list contains all available event names in alphabetical order: • • ALARM CHANGE_PRIORITY CHANGE_STATUS• CHECK_HEARTBEAT CHK_BOX_TERM CHK_MAX_ALARM• CHK_N_START CHK_RUN_WINDOW COMMENT• DELETEJOB EXTERNAL_DEPENDENCY

FORCE_STARTJOB• HEARTBEAT JOB_OFF_HOLD JOB_OFF_ICE• JOB_ON_HOLD JOB_ON_ICE KILLJOB• QUE_RECOVERY REFRESH_BROKER

RESEND_EXTERNAL_STATUS• SEND_SIGNAL SET_GLOBAL STARTJOB

Status

• The job status when the event is CHANGE_STATUS. The following list contains all possible states for the CHANGE_STATUS event in alphabetical order:

• • ACTIVATED FAILURE INACTIVE• ON_HOLD ON_ICE QUE_WAIT• REFRESH_DEPENDENCIES REFRESH_FILEWATCHER RESTART• RUNNING STARTING SUCCESS• TERMINATED

ExamplesSet Global Dates

• sendevent -E SET_GLOBAL -G "DATEA=`date +%Y-%m-%d`" • sendevent -E SET_GLOBAL -G "DATEB=`date +%Y%m%d`" • sendevent -E SET_GLOBAL -G "DATEC=`date +%y%m%d`" • sendevent -E SET_GLOBAL -G "DATED=`date +%m%d%Y`" • sendevent -E SET_GLOBAL -G "DATEE=`date +%Y%b%d`" • sendevent -E SET_GLOBAL -G "DATEF=`date +%Y%m`" • sendevent -E SET_GLOBAL -G "DATEM=`date +%Y-%m-01`" • sendevent -E SET_GLOBAL -G "DATEN=`date -d '1 month ago' +%Y-

%m-01`" • sendevent -E SET_GLOBAL -G "DATEO=`date -d '1 month ago' +%Y-

%m`" • sendevent -E SET_GLOBAL -G "DATEP=`date -d '1 day ago' +%Y%m

%d`" • sendevent -E SET_GLOBAL -G "DATER=`date -d '1 month ago' +%Y

%m`"

• Set Globals in TGQA • • sendevent -E SET_GLOBAL -G

"APIINBOX=/CISSupport/tgqa/interfaces/inbox"

Page 154: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• sendevent -E SET_GLOBAL -G "APIOUTBOX=/CISSupport/tgqa/interfaces/outbox"

• sendevent -E SET_GLOBAL -G "AUTOBACKUP=/export/home/autosys/AUTOSYS/backup"

• sendevent -E SET_GLOBAL -G "CISADAPTERS=/CISSupport/tgqa/source/ADAPTERS"

• sendevent -E SET_GLOBAL -G "CISAUTOLOGS=/CISSupport/tgqa/autosys/current"

• sendevent -E SET_GLOBAL -G "CISAUTOSYS=/CISSupport/tgqa/autosys"

• sendevent -E SET_GLOBAL -G "CISFTP=/CISSupport/tgqa/ftp"• sendevent -E SET_GLOBAL -G "CISFTPFTP=/CISSupport/tg/ftp/tgqa"• sendevent -E SET_GLOBAL -G

"CISFTPSOURCE=/CISSupport/tg/ftp/tgqa/source"• sendevent -E SET_GLOBAL -G "CISLOGS=/CISSupport/tgqa/logs"• sendevent -E SET_GLOBAL -G

"CISREPORTS=/CISSupport/tgqa/reports"• sendevent -E SET_GLOBAL -G "CISSOURCE=/CISSupport/tgqa/source"• sendevent -E SET_GLOBAL -G "DATELIB=/usr/local/bin"• sendevent -E SET_GLOBAL -G "DATEA=`/usr/local/bin/date +%Y-%m-

%d`"• sendevent -E SET_GLOBAL -G "DATEB=`/usr/local/bin/date +%Y%m

%d`"• sendevent -E SET_GLOBAL -G "DATEC=`/usr/local/bin/date +%y%m

%d`"• sendevent -E SET_GLOBAL -G "DATED=`/usr/local/bin/date +%m%d

%Y`"• sendevent -E SET_GLOBAL -G "DATEE=`/usr/local/bin/date +%Y%b

%d`"• sendevent -E SET_GLOBAL -G "DATEF=`/usr/local/bin/date +%Y%m`"• sendevent -E SET_GLOBAL -G "DATEM=`/usr/local/bin/date +%Y-%m-

01`"• sendevent -E SET_GLOBAL -G "DATEN=`/usr/local/bin/date -d '1

month ago' +%Y-%m-01`"• sendevent -E SET_GLOBAL -G "DATEO=`/usr/local/bin/date -d '1

month ago' +%Y-%m`"• sendevent -E SET_GLOBAL -G "DATEP=`/usr/local/bin/date -d '1

day ago' +%Y%m%d`"• sendevent -E SET_GLOBAL -G "DATER=`/usr/local/bin/date -d '1

month ago' +%Y%m`"• sendevent -E SET_GLOBAL -G

"ENERGYPRINT=/export/home/energyop/print/peace8.04_tgqa1"• sendevent -E SET_GLOBAL -G "ENV=tgqa"• sendevent -E SET_GLOBAL -G "HOME=/export/home/energyop"• sendevent -E SET_GLOBAL -G "KM1_ENDDATE=2009-01-30"• sendevent -E SET_GLOBAL -G "KM1_STARTDATE=2009-01-24"• sendevent -E SET_GLOBAL -G "KM2_ENDDATE=2009-01-31"• sendevent -E SET_GLOBAL -G "KM2_STARTDATE=2009-01-25"• sendevent -E SET_GLOBAL -G "MRIBCG_READDATE=2009-01-07"• sendevent -E SET_GLOBAL -G "MRIBCH_READDATE=2009-01-07"

Check Global Variable

• autostatus -G DATEA

Page 155: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• autostatus -G DATEB • autostatus -G DATEC • autostatus -G DATED • autostatus -G DATEE • autostatus -G DATEM • autostatus -G DATEN • autostatus -G DATEO • autostatus -G DATEP

Start Box jobs

• sendevent -E FORCE_STARTJOB -J box_TG_archive • sendevent -E FORCE_STARTJOB -J box_TG_set_environment • sendevent -E FORCE_STARTJOB -J box_TG_tests • sendevent -E FORCE_STARTJOB -J box_TG_post_dp_batch • sendevent -E FORCE_STARTJOB -J box_TG_pre_dp_batch • sendevent -E FORCE_STARTJOB -J box_TG_weekly_batch • sendevent -E FORCE_STARTJOB -J box_TG_monthly_batch • sendevent -E FORCE_STARTJOB -J box_TG_monthly_weekend_batch • sendevent -E FORCE_STARTJOB -J box_TG_load_Remittance_files • sendevent -E FORCE_STARTJOB -J box_TG_load_RMF_files • sendevent -E FORCE_STARTJOB -J box_TG_cafe • sendevent -E FORCE_STARTJOB -J box_TG_cognos • sendevent -E FORCE_STARTJOB -J box_TG_energy_CIS_users • sendevent -E FORCE_STARTJOB -J box_TG_Davox_extract • sendevent -E FORCE_STARTJOB -J box_TG_Davox_upload • sendevent -E FORCE_STARTJOB -J box_TG_weekly_terasen_epost • sendevent -E FORCE_STARTJOB -J box_TG_SAP_MMS_Devices • sendevent -E FORCE_STARTJOB -J box_TG_monthly_stat • sendevent -E FORCE_STARTJOB -J box_TG_ODS_extract • sendevent -E FORCE_STARTJOB -J box_TG_TriStar_survey • sendevent -E FORCE_STARTJOB -J box_TG_direct_debit • sendevent -E FORCE_STARTJOB -J box_TG_workorder_out • sendevent -E FORCE_STARTJOB -J box_TG_workorder_in • sendevent -E FORCE_STARTJOB -J box_TG_workorder_consolidate • sendevent -E FORCE_STARTJOB -J box_TG_ip_pool_price_loader • sendevent -E FORCE_STARTJOB -J box_TG_IB_allocations • sendevent -E FORCE_STARTJOB -J box_TG_IB_hec • sendevent -E FORCE_STARTJOB -J box_TG_IB_usage • sendevent -E FORCE_STARTJOB -J box_TG_IB_heat • sendevent -E FORCE_STARTJOB -J box_TG_IB_temp • sendevent -E FORCE_STARTJOB -J box_TG_MRIBCG_generation • sendevent -E FORCE_STARTJOB -J box_TG_MRIBCH_generation • sendevent -E FORCE_STARTJOB -J box_TG_MRI_ftp • sendevent -E FORCE_STARTJOB -J box_TG_load_MREBCG • sendevent -E FORCE_STARTJOB -J box_TG_load_MREBCH

Start Single jobs

• sendevent -E FORCE_STARTJOB -J job_TG_business_days • sendevent -E FORCE_STARTJOB -J job_TG_davox_complaints

Page 156: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• sendevent -E FORCE_STARTJOB -J job_TG_work_management • sendevent -E FORCE_STARTJOB -J job_TG_work_management_fieldwork • sendevent -E FORCE_STARTJOB -J job_TG_track_statements_audit • sendevent -E FORCE_STARTJOB -J job_TG_bankrupt_credit • sendevent -E FORCE_STARTJOB -J job_TG_bankrupt_current • sendevent -E FORCE_STARTJOB -J job_TG_chk_unclosed_batches • sendevent -E FORCE_STARTJOB -J

job_TG_epost_retrieve_weekly_unfunded • sendevent -E FORCE_STARTJOB -J job_TG_incorrect_meter_pressure • sendevent -E FORCE_STARTJOB -J

job_TG_invoicing_reconnection_charges • sendevent -E FORCE_STARTJOB -J job_TG_mdd_in_progress • sendevent -E FORCE_STARTJOB -J job_TG_remove_OMR_readings • sendevent -E FORCE_STARTJOB -J job_TG_mdd_run_completions • sendevent -E FORCE_STARTJOB -J job_TG_mdd_to_reload • sendevent -E FORCE_STARTJOB -J job_TG_mdd_pdf_gen • sendevent -E FORCE_STARTJOB -J job_TG_mdd_appointments • sendevent -E FORCE_STARTJOB -J job_TG_CSS_gas_odour_rpt • sendevent -E FORCE_STARTJOB -J job_TG_caledon_tracker_load • sendevent -E FORCE_STARTJOB -J job_TG_CSS_meter_exchanges_rpt • sendevent -E FORCE_STARTJOB -J job_TG_check_calorific_values • sendevent -E FORCE_STARTJOB -J job_TG_check_tc_values • sendevent -E FORCE_STARTJOB -J job_TG_check_temperature • sendevent -E FORCE_STARTJOB -J

job_TG_daily_back_office_forecasting • sendevent -E FORCE_STARTJOB -J

job_TG_refunds_processing_debtors_and_divisions • sendevent -E FORCE_STARTJOB -J job_TG_epost_audit_extract • sendevent -E FORCE_STARTJOB -J job_TG_IB_adjusted_usage • sendevent -E FORCE_STARTJOB -J job_TG_IB_health_reports • sendevent -E FORCE_STARTJOB -J job_TG_days_delay_correction • sendevent -E FORCE_STARTJOB -J job_TG_resequencerounds • sendevent -E FORCE_STARTJOB -J job_TG_epost_retrieve_MDR • sendevent -E FORCE_STARTJOB -J

job_TG_epost_retrieve_daily_unfunded • sendevent -E FORCE_STARTJOB -J job_TG_epost_unpack_ifile • sendevent -E FORCE_STARTJOB -J job_TG_mdd_pool_old_ptjs • sendevent -E FORCE_STARTJOB -J job_TG_device_status • sendevent -E FORCE_STARTJOB -J job_TG_device_status_upload • sendevent -E FORCE_STARTJOB -J job_TG_NGV_quarterly_extract • sendevent -E FORCE_STARTJOB -J

job_TG_OMR_manual_readings_required_report • sendevent -E FORCE_STARTJOB -J job_TG_check_statement_loading • sendevent -E FORCE_STARTJOB -J job_TG_monthly_reads_stat • sendevent -E FORCE_STARTJOB -J • sendevent -E FORCE_STARTJOB -J • sendevent -E FORCE_STARTJOB -J • sendevent -E FORCE_STARTJOB -J • sendevent -E FORCE_STARTJOB -J • sendevent -E FORCE_STARTJOB -J

Change Status

Page 157: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• sendevent -E CHANGE_STATUS -s SUCCESS -J fw_TG_WeeklyTerasenUnfunded

Autosys autodwpAutosys Command - autodwp

• autodwp -? • • Unicenter AutoSys JM Dynamic Workload Placement Assistant

Utility•• USAGE: autodwp -n <vm name> -f <machine conditions file> [-

p] [-q] [-u]• [-x] [-?]•• WHERE: -n Virtual machine name• -f Machine conditions file• -p Prints the name of the virtual machine• -q Runs the command in quiet mode• -u Updates the machine list in the virtual machine• -x Returns version information• -? Help• abtgqdb /opt/CA/UnicenterAutoSysJM/autos

Autosys archive_eventsAutosys Command - archive_events

• Archive Evens in DB which are older than x days to prevent DB from becoming full

• archive_events -? • • Unicenter AutoSys JM Archive Events Utility•• USAGE: archive_events [-j Num_days|-l Num_days|-n Num_days|-r

Num_days] • [-A] [-B Batch_size] [-C Delimiter] [-d

Directory_name] • [-D Datasource|TNSname] [-I Idletime] [-

x] [-?] •• WHERE: -n Num_days Deletes events older than num_days• -j Num_days Deletes ujo_job_runs information • -l Num_days Deletes autotracking information• -r Num_days Deletes ujo_chkpnt_rstart

information• -A Archives data to file• -B Batch_size Archives specified number of events

at a time• -C Delimiter Archive file field delimiter

(Default is ","(comma))• -d Directory_name Stores the archived data in the

specified directory

Page 158: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• -D Datasource Uses specified datasource/TNSName to archive events

• -I Idletime Waits number of seconds specified • before timing out the SQL connection• -x Returns version information• -? Help•• ERROR: Number of Days for EVENTS [-n] OR• Number of Days for JOB RUNS [-j] OR• Number of Days for AUTOTRACK Log [-l] OR• Number of Days for CHECKPOINT RESTART [-r] IS REQUIRED.

Autosys autoaggrAutosys Command - autoaggr

• autoaggr -? • • Unicenter AutoSys JM Aggregator Utility•• USAGE: autoaggr [-d] [-h] [-m] [-w] [-r] [-x] [-?]•• WHERE: -d Collects and aggregates daily data• -h Collects and aggregates hourly data• -m Collects and aggregates monthly data• -w Collects and aggregates weekly data• -r Deletes the current aggregated data and reaggregates

data• -x Returns the autoaggr version number to standard

output• -? Help

Autosys autotrackAutosys Command - autotrack Unicenter AutoSys JM Autotrack Utility

USAGE: autotrack [-D DataSource] -u 0|1|2 : Update autotrack level autotrack [-D DataSource] -l : Query autotrack level autotrack [-D DataSource] [<Query Options>] : Query autotrack info autotrack [-D DataSource] [-x] : Version information autotrack [-D DataSource] [-?] : autotrack Usage help

WHERE: Query Options: [-v] : verbose [-F <MM/dd/yyyyHH:MM>] : after (From) time [-T <MM/dd/yyyyHH:MM>] : before (To) time [-U userid] : by user [-m machine] : by machine [-J <job name>] : by job [-t <AutoTrack Type>] : by AutoTrack Type

Page 159: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

AutoTrack Types: -t A : autosys_secure call -t B : monbro definition change -t C : calendar definition change -t J : job definition change -t M : machine definition change -t O : override definition change -t S : sendevent call -t T : autotrack call

Autosys clean_filesAutosys Command - clean_filesUnicenter AutoSys JM Clean Files Utility

USAGE: clean_files -d Num_days [-x] [-?]

WHERE: -d Num_days Number of Days to keep files for. -x Returns version information -? Help

ExamplesClean agent log files older than 1 day

• clean_files -d 1 • • Machines:• TGQAFTP• abtgpdb• abtgposs1• abtgpstmt• abtgqdb• CAUAJM_I_50065 Cleaning log files on machine: TGQAFTP...• CAUAJM_E_50066 Could not clean files on machine: TGQAFTP!• CAUAJM_I_50065 Cleaning log files on machine: abtgpdb...• CAUAJM_I_10082 [abtgpdb connected for Unicenter AutoSys JM

CleanFiles]• CAUAJM_I_50067 Removed 12 of 24 total log files on machine

abtgpdb.• CAUAJM_I_50065 Cleaning log files on machine: abtgposs1...• CAUAJM_I_10082 [abtgposs1 connected for Unicenter AutoSys JM

CleanFiles]• CAUAJM_I_50067 Removed 0 of 0 total log files on machine

abtgposs1.• CAUAJM_I_50065 Cleaning log files on machine: abtgpstmt...• CAUAJM_I_10082 [abtgpstmt connected for Unicenter AutoSys JM

CleanFiles]• CAUAJM_I_50067 Removed 0 of 0 total log files on machine

abtgpstmt.• CAUAJM_I_50065 Cleaning log files on machine: abtgqdb...• CAUAJM_I_10082 [abtgqdb connected for Unicenter AutoSys JM

CleanFiles]• CAUAJM_I_50067 Removed 0 of 0 total log files on machine

abtgqdb.

Autosys xql

Page 160: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

Autosys Command - xql

• Usage o xql -? o o Usage: xql -U User Name -P Password -S Server Name [-D

Database Name]o [-C Command] [-f file path] [-d Delimiter] [-w

column width] o [-T timeout] [-h] [-x] [-?]oo WHERE: -U User Name User Name to connect to the

Databaseo -P Password Password to connect to the

Databaseo -S Server Name Server Instance (MSSQL/Sybase)o -D Database Name Database nameo -f File Path Input file patho -C Command Command or Query to be executed

on Servero -C will be ignored if -f is also

usedo -d Delimiter Delimiter or Column Separatoro -T timeout XQL Timeout in seconds (default

is 60 sec)o -h Header offo -w Column Width Define the column widtho -x XQL Version Informationo -? Help

Autosys zqlAutosys Command - zql

• Usage o zql -? o o zql utilityoo Usage: zql -U User Name -P Password -S Server Name o [-c Command] [-f Input File] [-d Delimiter] [-b

Batch] [-q] [-Q] [-h] [-x] [-?]o WHERE: -U User Name User Name to connect to the

Databaseo -P Password Password to connect to the

Databaseo -S Server Name Database Server Nameo -f File Name Path to the Input Fileo -c Command Query to be executed.o -c will be ignored if -f is also

specifiedo -d Delimiter Delimiter or Column Separatoro -b Batch Batch to executeo -q Display error messageso -Q Do not display error messageso -h Offo -x zql Version Informationo -? Help

Page 161: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

Autosys autosys_secureAutosys Command - autosys_secure

• AutoSys Security Utility o autosys_secure o o AutoSys Security Utilityo Please select from the following options:o [1] Activate EIAM instance security.o [2] Manage EDIT/EXEC superusers.o [3] Change AutoSys database password.o [4] Change AutoSys remote authentication method.o [5] Manage AutoSys User@Host users.o [6] Get Encrypted Password.o [0] Exit AutoSys Security Utility.

Autosys autotimezoneAutosys Command - autotimezone

• Usage o autotimezone "-h" o o Unicenter AutoSys JM Autotimezone Utilityoo USAGE: autotimezone [-a Alias Timezone] [-c City

Timezone] [-t Timezone] o [-d Alias | City] [-q Alias | City |

Timezone |o sql_pattern] [-l] [-x] [-?] oo WHERE: -a Alias Timezone Associates alias to a

timezoneo -c City Timezone Associates city to a

timezoneo -t Timezone Adds a timezone entryo -d Alias|City Deletes associated alias

or cityo -q Alias|City|Timezone Queries database for the

specified alias, cityo |Sql_pattern timezone or sql_pattern

(Wildcards % or_)o -l Lists all timezone entrieso -x Returns version

informationo -? Help

Example

• List all time zones o autotimezone -l

• Vancouver time zone o autotimezone -q Vancouver o o CAUAJM_I_50089 Timezones:o Entry Type

Zone

Page 162: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

o ---------------------------------------- ------ ----------------

o Vancouver City Canada/Pacific

• Calgary time zone o autotimezone -q Calgary o o CAUAJM_I_50089 Timezones:o Entry Type

Zoneo ---------------------------------------- ------

----------------o Calgary City

Canada/Mountain

Autosys monbroAutosys Command - monbro

• Run monitor or report that has already been defined, using JIL or the monitor/browser editor

Usage

• monbro -h • • Unicenter AutoSys JM Monitor Browser Utility•• USAGE: monbro -N Name [-P Polling frequency] [-D DataSource] [-

q] [-x] [-?]•• WHERE: -N Name Runs specified Monitor or Report • -P Poll frequency Polls the database at the specified

interval• (in seconds)• -D Datasource Uses datasource to search the

specified information• -q Displays monbro definitions in JIL

format• -x Returns version information• -? Help

Example

• monbro -N failure_monitor • monbro -N ALL -q • • insert_monbro: error• mode: b• all_events: N• alarm: N• all_status: N• running: N• success: N• failure: Y

Page 163: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• terminated: Y• starting: N• restart: N• job_filter: a• currun: Y• insert_monbro: running• mode: b• all_events: N• alarm: N• all_status: N• running: Y• success: N• failure: N• terminated: N• starting: N• restart: N• job_filter: a• currun: Y

Autosys autosyslogAutosys Command - autosyslog Unicenter AutoSys JM log Utility

USAGE: autosyslog [-e | -s | -j Job_Name ] [-p] [-?]

WHERE -e [ monitor (tail -f) the event scheduler output file. ] -s [ monitor (tail -f) the application server output file. ] -j job_name [ Inspect the latest remote agent output file for job_name ] -p Include the output from the environment if available (RemoteProFile) -? Help

ExampleMonitoring CA Unicenter AutoSys JM Scheduler

• autosyslog -e • • Monitoring CA Unicenter AutoSys JM Scheduler Log: • /opt/CA/UnicenterAutoSysJM/autouser.TGD/out/event_demon

.TGD•• *** To break out type control-c (^c) ***•• [01/09/2009 17:29:57] <Event was Scheduled based on Job

Definition.>• [01/09/2009 17:29:57] CAUAJM_I_40245 EVENT: CHANGE_STATUS

STATUS: RUNNING JOB: box_TG_load_Remittance_files• [01/09/2009 17:29:58] CAUAJM_I_40245 EVENT: CHANGE_STATUS

STATUS: STARTING JOB: job_TG_FTP_get_Remittance_file_c• [01/09/2009 17:29:58] CAUAJM_I_10082 [170.248.99.73

connected for job_TG_FTP_get_Remittance_file_c 508.328.1]• [01/09/2009 17:29:59] CAUAJM_I_40245 EVENT: CHANGE_STATUS

STATUS: RUNNING JOB: job_TG_FTP_get_Remittance_file_c

Page 164: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• [01/09/2009 17:30:00] ----------------------------------------

• [01/09/2009 17:30:00] CAUAJM_I_40245 EVENT: CHANGE_STATUS STATUS: FAILURE JOB: job_TG_FTP_get_Remittance_file_c EXITCODE: 1

• [01/09/2009 17:31:00] ----------------------------------------

• [01/09/2009 17:32:00] ----------------------------------------

• [01/09/2009 17:33:00] ----------------------------------------

• [01/09/2009 18:27:02] CAUAJM_I_40245 EVENT: FORCE_STARTJOB JOB: box_TG_tests

• [01/09/2009 18:27:03] CAUAJM_I_40245 EVENT: CHANGE_STATUS STATUS: RUNNING JOB: box_TG_tests

• [01/09/2009 18:27:03] CAUAJM_E_90015 CA Unicenter AutoSys JM Agent [2AJR] - License Failure. Please contact your account representative to obtain a new license.

• [01/09/2009 18:27:03] CAUAJM_I_40245 EVENT: CHANGE_STATUS STATUS: STARTING JOB: job_TG_test_FTP_server

• [01/09/2009 18:27:03] CAUAJM_I_40245 EVENT: CHANGE_STATUS STATUS: STARTING JOB: job_TG_test_DB_server

• [01/09/2009 18:27:03] CAUAJM_I_40245 EVENT: CHANGE_STATUS STATUS: STARTING JOB: job_TG_test_STMT_server

• [01/09/2009 18:27:03] CAUAJM_I_10082 [SGDDB connected for job_TG_test_DB_server 480.329.1]

• [01/09/2009 18:27:03] CAUAJM_I_10082 [170.248.99.73 connected for job_TG_test_FTP_server 481.329.1]

• [01/09/2009 18:27:04] CAUAJM_I_10082 [SGDDB connected for job_TG_test_STMT_server 482.329.1]

• [01/09/2009 18:27:04] CAUAJM_I_40245 EVENT: CHANGE_STATUS STATUS: RUNNING JOB: job_TG_test_DB_server

• [01/09/2009 18:27:05] CAUAJM_I_40245 EVENT: CHANGE_STATUS STATUS: SUCCESS JOB: job_TG_test_DB_server EXITCODE: 0

• [01/09/2009 18:27:05] CAUAJM_I_40245 EVENT: CHANGE_STATUS STATUS: RUNNING JOB: job_TG_test_STMT_server

• [01/09/2009 18:27:05] CAUAJM_I_40245 EVENT: CHANGE_STATUS STATUS: RUNNING JOB: job_TG_test_FTP_server

• [01/09/2009 18:27:05] CAUAJM_I_40245 EVENT: CHANGE_STATUS STATUS: SUCCESS JOB: job_TG_test_STMT_server EXITCODE: 0

• [01/09/2009 18:27:05] CAUAJM_I_40245 EVENT: CHANGE_STATUS STATUS: SUCCESS JOB: job_TG_test_FTP_server EXITCODE: 0

• [01/09/2009 18:27:06] CAUAJM_I_40245 EVENT: CHANGE_STATUS STATUS: SUCCESS JOB: box_TG_tests

• [01/09/2009 18:28:00] ----------------------------------------

• [01/09/2009 18:29:00] ----------------------------------------

Monitoring application server output

• autosyslog -s • • Monitoring application server output file:

Page 165: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• /opt/CA/UnicenterAutoSysJM/autouser.PRD/out/as_server.PRD

•• *** To break out type control-c (^c) ***•• [04/26/2009 22:07:02] CAUAJM_W_10632 Attempting to

reconnect to database <TGPROD>. Attempt number [3].• [04/26/2009 22:07:04] CAUAJM_I_10633 Reconnection attempt

for database <TGPROD> succeeded.• [04/26/2009 22:25:11] CAUAJM_I_40262 SIGTERM signal

caught! - shutting down• [04/26/2009 22:25:12] CAUAJM_I_30004 CA Unicenter AutoSys

JM Application Server shutdown complete...• [04/26/2009 22:25:12] CAUAJM_I_30000 CA Unicenter AutoSys

JM Application Server exiting!• CA Unicenter AutoSys JM Application Server Log [04/26/2009

22:25:16]• Time Message• --------------------------

------------------------------------------------------------------------------

• [04/26/2009 22:25:16] CAUAJM_I_30001 CA Unicenter AutoSys JM Application Server startup complete...

• [04/26/2009 22:25:16] CAUAJM_I_10655 System is running in single server mode. Event server: TGPROD.

Autosys job_dependsAutosys Command - job_depends USAGE: job_depends [-B Group] [-c|-d|-t] [-D Data_server] [-F From_date/time][-I Application] [-J Job_name] [-L Print_level] [-e] [-s] [-T To_date/time] [-w] [-x] [-?]

WHERE: -J Job_name -B Group -I Application -c Returns Current status of the job and job dependencies -d Display job dependencies -e Generates all start times between -F and -T -t Display time dependencies -F From_date/time Defines From date-time for report in format: "MM/dd/yyyy hh:mm" -T To_date/time Defines the End date-time for report in Format: "MM/dd/yyyy hh:mm" -L Print_level Specifies the number of levels of the box job's hierarchy to be retrieved -D Data_server Uses specified Datasource for connection -s Sorts in the order of the job's next start time -w Widens the display columns -x Returns version information -? Help

NOTE: 1. If both [-B Group] and [-I Application] options are specified, this is treated as an AND condition. 2. The [ -J Job_name] and [-B Group or -I Application]

Page 166: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

options are mutually exclusive. 3. The -s and -e options are valid only with the -t option

Examples

• job_depends -t -w -J ALL -F "02/21/2009" • job_depends -c -j box_TGQA_monthly_print • • _______________________________________________________________

_______________••

Start Dependent• Job Name Status Date Cond?

Cond? Jobs?• -------- ------ ---------------

----- ---------• box_TGQA_monthly_print SUCCESS 09/01/2009

06:00:00 Yes No•• Condition: s(box_TGQA_monthly_batch) &

s(box_TGQA_monthly_KM_2) & • s(job_TGQA_monthly_r_deposit) •• Atomic Condition Current Status

T/F• ---------------- --------------

---• s(box_TGQA_monthly_batch) SUCCESS

T• s(box_TGQA_monthly_KM_2) SUCCESS

T• s(job_TGQA_monthly_r_deposit) SUCCESS

T• _______________________________________________________________

_______________

Autosys autorepAutosys Command - autorep Unicenter AutoSys JM Autorep Utility

USAGE: autorep [-J JobName] [-d | -s | -q | -o OverRide # | -a | -w] [-B GroupName] [-I ApplicationName] [-t] [-X ExternalInstanceName] [-Y JobType] [-R Run_num] [-L PrintLevel] [-N Retry] [-x] [-z GlobalBlobName] [-f BlobDownloadDirectory] [-G GlobalName] [-M MachineName] [-D DataSource] [-?]

WHERE: -J JobName -I ApplicationName -B GroupName -o Overnum -X ExternalInstance -Y JobType -z GlobalBlobName -G GlobalName

Page 167: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

-M MachineName -d Generates a detail report -s Generates a summary report -q Generates a query report (Jil format) -w Reports untruncated job name and machine name and uses the long form of job conditions -t Includes the timezone in the report -R Run_num Generates the report for the job run specified in run_num -L PrintLevel Generated Box Job hierarchy report will be limited to level specified -N Retry Attempts to connect to the database for number of times before generating an error -D DataSource Generates report from specified DataSource -f BlobDownloadDirectory Location on disk where blob data is downloaded to -a Download blob data to file as ASCII text -x Returns version information -? Help

NOTE: 1. -J OR -M OR -B OR -I OR -X OR -Y are required parameters. 2. If OverRide# = 0, it will display OverRide Currently in Effect. 3. If both [-B GroupName] and [-I ApplicationName] attributes are specified, this is treated as an AND condition. 4. [-J JobName] and [-B GroupName or -I ApplicationName][-X] are mutually exclusive. 5. The [-a] and/or [-f] attributes are valid with the attribute pair [-J JobName] and [-q] or with the [-z GlobalBlobName] attribute

ExamplesView Machines

• autorep -M ALL • • Machine Name Max Load Current Load Factor

O/S Status• _____________________________ __________ ____________ _______

___________ ______• abtgpdb --- --- 1.00

Unix Online• abtgpftp --- --- 1.00

Unix Online• abtgposs1 --- --- 1.00

Unix Online• abtgpstmt --- --- 1.00

Unix Online• TGPRODDB.abtgpdb --- --- ----

Unix Online

Page 168: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• TGPRODFTP.abtgposs1 --- --- ---- Unix Online

• TGPRODSTMT.abtgpstmt --- --- ---- Unix Online

• abtgqdb --- --- 1.00 Unix Online

• TGQADB.abtgqdb --- --- ---- Unix Online

• TGQAFTP.abtgqdb --- --- ---- Unix Online

• TGQASTMT.abtgqdb --- --- ---- Unix Online

View Global Variables

• autorep -G %TGPROD% • • Global Name Value

Last Changed • ____________________________

_____________________________________ ____________________• TGPROD_APIINBOX

/CISSupport/tgprod/interfaces/inbox 03/02/2009 16:44:09 • TGPROD_APIOUTBOX

/CISSupport/tgprod/interfaces/outbox 03/02/2009 16:44:09 • TGPROD_AUTOBACKUP /CISSupport/tgprod/reports/current

06/12/2009 11:00:50 • TGPROD_AUTOBIN

/opt/CA/UnicenterAutoSysJM/autosys/bin 03/02/2009 16:44:09 • TGPROD_CISADAPTERS /CISSupport/tgprod/source/ADAPTERS

03/02/2009 16:44:09 • TGPROD_CISAUTOLOGS /CISSupport/tgprod/autosys/current

03/02/2009 16:44:09 • TGPROD_CISAUTOSYS /CISSupport/tgprod/autosys

03/02/2009 16:44:09 • TGPROD_CISFTP /CISSupport/tgprod/ftp

03/02/2009 16:44:09 • TGPROD_CISFTPFTP /CISSupport/tg/ftp/tgprod

03/02/2009 16:44:09 • TGPROD_CISFTPSOURCE /CISSupport/tg/ftp/tgprod/source

03/02/2009 16:44:09 • TGPROD_CISLOGS /CISSupport/tgprod/logs

03/02/2009 16:44:09 • TGPROD_CISREPORTS /CISSupport/tgprod/reports

03/02/2009 16:44:09 • TGPROD_CISSOURCE /CISSupport/tgprod/source

03/02/2009 16:44:09 • TGPROD_DATEA 2009-09-18

09/18/2009 00:01:04 • TGPROD_DATEB 20090918

09/18/2009 00:01:04 • TGPROD_DATEC 090918

09/18/2009 00:01:04 • TGPROD_DATED 09182009

09/18/2009 00:01:04

Page 169: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• TGPROD_DATEE 2009Sep18 09/18/2009 00:01:05

• TGPROD_DATEF 200909 09/18/2009 00:01:06

• TGPROD_DATEG 2009-09 09/18/2009 00:01:06

• TGPROD_DATEH 20090916 09/18/2009 00:01:06

• TGPROD_DATEL 2009-06-01 09/18/2009 00:01:06

• TGPROD_DATELIB /usr/local/bin 03/02/2009 16:45:14

• TGPROD_DATEM 2009-09-01 09/18/2009 00:01:04

• TGPROD_DATEN 2009-08-01 09/18/2009 00:01:04

• TGPROD_DATEO 2009-08 09/18/2009 00:01:04

• TGPROD_DATEP 20090917 09/18/2009 00:01:05

• TGPROD_DATER 200908 09/18/2009 00:01:06

• TGPROD_DD_DATE 18-SEP-09 09/18/2009 04:06:40

• TGPROD_DE_DATE 2009-09-18 09/18/2009 04:06:34

• TGPROD_DP_DATE 2009-09-18 09/18/2009 04:06:32

• TGPROD_END_PREV_MONTH_DATE 2009-08-31 09/18/2009 00:01:06

• TGPROD_ENERGYPRINT /export/home/energyop/print/peace8.04_tgprod1 03/02/2009 16:45:14

• TGPROD_ENV tgprod 03/02/2009 16:46:49

• TGPROD_HOME /export/home/energyop 03/02/2009 16:46:49

• TGPROD_KM1_ENDDATE 2009-08-21 08/21/2009 22:58:41

• TGPROD_KM1_STARTDATE 2009-08-01 08/21/2009 22:58:35

• TGPROD_KM2_ENDDATE 2009-08-31 08/31/2009 20:21:12

• TGPROD_KM2_STARTDATE 2009-08-22 08/31/2009 20:21:06

• TGPROD_MRIBCG_READDATE 2009-09-23 09/18/2009 20:11:03

• TGPROD_MRIBCH_READDATE 2009-09-23 09/18/2009 20:11:11

• TGPROD_PREV_DP_DATEA 2009-09-17 09/18/2009 04:06:36

• TGPROD_PREV_DP_DATEB 20090917 09/18/2009 04:06:37

• TGPROD_R_MREVLIST_ENDDATE 2009-08-31 09/01/2009 04:36:30

Page 170: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• TGPROD_R_MREVLIST_STARTDATE 2009-08-01 09/01/2009 04:36:16

Backup Global Variables

• autorep -G ALL > AUTOSYS_GLOBAL_2009-01-16

Backup ALL JIL's

• autorep -J ALL -q > AUTOSYS_ALL_2009-01-16.jil

First Level reporting

• autorep -w -J ALL -L0

Example

• autorep -w -J %TGPROD% -L0 |sort • • Job Name

Last Start Last End ST Run Pri/Xit• _______________________________________________________________

_ ____________________ ____________________ __ _______ ___• box_TGPROD_CSS_gas_odour_rpt

09/18/2009 06:10:00 09/18/2009 06:36:52 SU 634449/1 • box_TGPROD_CSS_meter_exchanges_rpt

09/18/2009 09:15:00 09/18/2009 09:30:32 SU 635198/1 • box_TGPROD_DP_monitoring

09/17/2009 20:40:17 09/18/2009 04:06:37 OH 632953/1 • box_TGPROD_Davox_extract

09/18/2009 09:45:00 09/18/2009 09:49:49 SU 635318/1 • box_TGPROD_Davox_upload

09/18/2009 19:20:00 09/18/2009 19:32:05 SU 637661/1 • box_TGPROD_EPP_review

09/12/2009 08:19:57 09/12/2009 13:04:04 SU 603642/1 • box_TGPROD_IB_adjusted_usage

09/18/2009 08:02:00 09/18/2009 08:02:31 SU 634879/1 • box_TGPROD_IB_allocations

09/18/2009 18:00:00 09/18/2009 18:02:03 SU 637351/1 • box_TGPROD_IB_health_reports

09/18/2009 08:00:00 09/18/2009 08:01:11 SU 634869/1 • box_TGPROD_IB_heat

09/18/2009 17:05:00 09/18/2009 17:06:12 SU 637148/1 • box_TGPROD_IB_hec

09/18/2009 15:00:00 09/18/2009 15:02:15 SU 636636/1 • box_TGPROD_IB_temp

09/18/2009 10:05:00 09/18/2009 10:06:20 SU 635404/1 • box_TGPROD_IB_usage

09/18/2009 05:30:00 09/18/2009 07:18:28 SU 634347/1 • box_TGPROD_IB_usage_check

09/18/2009 07:00:00 09/18/2009 07:00:12 SU 634620/1 • box_TGPROD_MRIBCG_generation

09/18/2009 05:43:53 09/18/2009 06:03:40 SU 634382/1

Page 171: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• box_TGPROD_MRIBCH_generation 09/18/2009 05:00:00 09/18/2009 05:43:53 SU 634260/1

• box_TGPROD_MRI_ftp 09/18/2009 06:00:00 09/18/2009 06:02:12 SU 634421/1

• box_TGPROD_MRI_rename 09/14/2009 08:00:00 09/14/2009 08:00:03 SU 614700/1

• box_TGPROD_ODS_extract 09/01/2009 12:37:21 09/01/2009 14:28:55 SU 546128/1

• box_TGPROD_SAP_MMS_Devices 07/18/2009 16:00:00 07/18/2009 16:04:25 SU 264955/1

• box_TGPROD_TriStar_survey 09/18/2009 18:00:00 09/18/2009 18:08:03 SU 637350/1

• box_TGPROD_archive 09/18/2009 19:33:03 09/18/2009 19:36:59 SU 637708/1

• box_TGPROD_archive_ftp 09/17/2009 23:40:00 09/17/2009 23:40:18 SU 633409/1

• box_TGPROD_archive_stmt 09/17/2009 23:40:00 09/17/2009 23:40:11 SU 633408/1

• box_TGPROD_bankrupt_credit 09/14/2009 12:00:00 09/14/2009 12:00:49 SU 615713/1

• box_TGPROD_bankrupt_current 09/14/2009 12:10:00 09/14/2009 12:10:06 SU 615755/1

• box_TGPROD_cafe 09/12/2009 15:00:00 09/12/2009 15:18:49 SU 605285/1

• box_TGPROD_caledon_tracker_load 09/18/2009 10:30:00 09/18/2009 10:30:38 SU 635511/1

• box_TGPROD_chk_unclosed_batches 09/18/2009 11:00:00 09/18/2009 11:00:05 SU 635637/1

• box_TGPROD_cl_notic_work_management 09/18/2009 03:30:02 09/18/2009 09:02:35 SU 634011/1

• box_TGPROD_cognos 09/12/2009 16:00:00 09/12/2009 16:08:05 SU 605531/1

• box_TGPROD_collection_agency 09/12/2009 06:00:00 09/12/2009 07:34:27 SU 603069/1

• box_TGPROD_create_ptj_for_live_smart ----- ----- OH 0/0

• box_TGPROD_create_schedule ----- ----- OH 0/0

• box_TGPROD_daily_back_office_forecasting 09/18/2009 06:10:00 09/18/2009 06:27:14 SU 634448/1

• box_TGPROD_davox_complaints 09/18/2009 08:05:00 09/18/2009 08:05:22 SU 634893/1

• box_TGPROD_days_delay_correction 09/18/2009 07:10:00 09/18/2009 07:10:10 SU 634664/1

• box_TGPROD_device_status 09/18/2009 18:30:00 09/18/2009 18:33:55 SU 637470/1

• box_TGPROD_device_status_upload 09/18/2009 07:30:00 09/18/2009 07:31:18 SU 634743/1

• box_TGPROD_direct_debit 09/18/2009 04:06:38 09/18/2009 05:32:32 SU 634105/1

• box_TGPROD_dispute_drop_premises_extract 09/17/2009 18:00:00 09/17/2009 18:33:48 SU 632351/1

• box_TGPROD_energy_CIS_users 09/12/2009 16:15:00 09/12/2009 16:16:17 SU 605595/1

• box_TGPROD_epost_MDR 09/18/2009 15:05:00 09/18/2009 15:06:17 SU 636663/1

Page 172: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• box_TGPROD_epost_audit 09/18/2009 08:00:00 09/18/2009 08:01:19 SU 634866/1

• box_TGPROD_epost_unfunded 09/18/2009 08:15:00 09/18/2009 08:16:17 SU 634941/1

• box_TGPROD_in_lieu ----- ----- OH 0/0

• box_TGPROD_incorrect_meter_pressure 09/06/2009 12:00:00 09/06/2009 12:00:24 SU 571751/1

• box_TGPROD_invoicing_reconnection_charges 09/13/2009 19:20:00 09/13/2009 19:20:04 SU 611784/1

• box_TGPROD_ip_pool_price_loader 09/05/2009 06:12:04 09/05/2009 06:13:13 SU 564817/1

• box_TGPROD_large_customers_with_high_consumption 07/16/2009 09:12:30 07/16/2009 09:16:33 SU 252990/1

• box_TGPROD_late_payments 07/16/2009 09:22:14 07/16/2009 09:46:28 SU 253033/1

• box_TGPROD_lmdispatch_cancelled 09/18/2009 06:01:00 09/18/2009 06:17:33 SU 634423/1

• box_TGPROD_load_MREBCG 09/18/2009 17:40:00 09/18/2009 17:50:23 SU 637271/1

• box_TGPROD_load_MREBCH 09/18/2009 17:50:24 09/18/2009 18:05:49 SU 637311/1

• box_TGPROD_load_MRE_post 09/18/2009 18:05:50 09/18/2009 18:07:53 SU 637371/1

• box_TGPROD_load_RMF_files 09/18/2009 17:30:00 09/18/2009 17:32:51 SU 637229/1

• box_TGPROD_load_Remittance_files 09/18/2009 16:30:00 09/18/2009 17:52:26 SU 637018/1

• box_TGPROD_lockoffs_and_reconnects 08/20/2009 10:51:57 08/20/2009 11:10:19 SU 482313/1

• box_TGPROD_mdd_appointments 09/17/2009 23:00:00 09/17/2009 23:00:14 SU 633313/1

• box_TGPROD_mdd_ftp_out 09/18/2009 20:26:00 ----- RU 637900/1

• box_TGPROD_mdd_in_progress 09/13/2009 18:50:00 09/13/2009 18:50:52 SU 611664/1

• box_TGPROD_mdd_pdf_gen 09/18/2009 20:10:00 09/18/2009 20:11:09 SU 637845/1

• box_TGPROD_mdd_to_reload 09/18/2009 19:45:00 09/18/2009 19:45:39 SU 637752/1

• box_TGPROD_monthly_HEC_SLA 09/01/2009 12:00:00 09/01/2009 12:00:12 SU 545968/1

• box_TGPROD_monthly_IVR_report ----- ----- OH 0/0

• box_TGPROD_monthly_KM_1 08/22/2009 06:20:59 08/22/2009 07:35:59 SU 491438/1

• box_TGPROD_monthly_KM_2 09/01/2009 08:43:40 09/01/2009 09:39:00 SU 545214/1

• box_TGPROD_monthly_batch 09/01/2009 03:07:52 09/01/2009 08:58:48 SU 543913/1

• box_TGPROD_monthly_caledon_statistical_data ----- ----- OH 0/0

• box_TGPROD_monthly_print 09/01/2009 09:39:01 09/02/2009 10:57:33 SU 545391/1

• box_TGPROD_monthly_stat 09/01/2009 10:20:44 09/01/2009 10:30:29 SU 545539/1

Page 173: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• box_TGPROD_monthly_weekend_batch 09/05/2009 11:00:00 09/05/2009 14:14:59 SU 565993/1

• box_TGPROD_pending_referral_audit_report 09/12/2009 07:34:28 09/12/2009 07:37:21 SU 603454/1

• box_TGPROD_post_dp_batch 09/18/2009 04:06:38 09/18/2009 07:20:22 SU 634107/1

• box_TGPROD_pre_dp_batch 09/18/2009 19:38:55 09/18/2009 20:24:21 SU 637727/1

• box_TGPROD_prem_stops_to_work_this_week 09/13/2009 15:00:00 09/13/2009 15:00:10 SU 610792/1

• box_TGPROD_pulled_statements 09/18/2009 15:12:05 09/18/2009 15:13:22 SU 636694/1

• box_TGPROD_recall_and_meter_compliance ----- ----- OH 0/0

• box_TGPROD_refunds 09/18/2009 09:00:00 09/18/2009 09:02:34 SU 635129/1

• box_TGPROD_remove_OMR_readings 09/13/2009 13:00:00 09/13/2009 13:03:47 SU 610334/1

• box_TGPROD_resequencerounds 09/18/2009 07:01:00 09/18/2009 07:03:23 SU 634625/1

• box_TGPROD_set_environment 09/18/2009 00:01:00 09/18/2009 00:01:32 SU 633465/1

• box_TGPROD_statement_check 09/18/2009 07:20:23 09/18/2009 07:20:51 SU 634705/1

• box_TGPROD_statement_in 09/18/2009 11:15:00 09/18/2009 12:08:35 SU 635704/1

• box_TGPROD_statement_out 09/18/2009 05:00:00 09/18/2009 07:46:52 SU 634258/1

• box_TGPROD_tar_archive 09/06/2009 11:00:00 09/06/2009 11:07:47 SU 571519/1

• box_TGPROD_tests 08/20/2009 15:57:49 08/20/2009 15:57:51 SU 483592/1

• box_TGPROD_track_statements_audit 09/18/2009 07:50:00 09/18/2009 07:50:04 SU 634825/1

• box_TGPROD_triggers_check 09/18/2009 04:06:38 09/18/2009 04:07:52 SU 634106/1

• box_TGPROD_weekly_batch 09/12/2009 09:00:00 09/12/2009 10:46:56 SU 603805/1

• box_TGPROD_weekly_terasen_epost 09/14/2009 08:30:00 09/14/2009 08:31:04 SU 614837/1

• job_TGPROD_NGV_quarterly_extract 07/15/2009 08:05:01 07/15/2009 08:05:05 SU 247540/1

• job_TGPROD_OMR_manual_readings_required_report ----- ----- OH 0/0

• job_TGPROD_as_inactive_evening 09/18/2009 16:20:01 09/18/2009 16:20:04 SU 636978/1

• job_TGPROD_business_days 07/02/2009 14:48:13 07/02/2009 14:48:15 SU 179961/1

• job_TGPROD_calc_avg_factors 09/01/2009 12:27:55 09/01/2009 13:19:15 SU 546087/1

• job_TGPROD_check_FTP_ccp_to_print_out_logs 09/18/2009 18:00:01 09/18/2009 18:00:01 SU 637347/1

• job_TGPROD_ed_FTP_get_CCP_From_Inbox_file 09/18/2009 20:15:01 09/18/2009 20:15:12 SU 637863/1

• job_TGPROD_ed_consbill_workaround 09/16/2009 05:30:01 09/16/2009 05:34:48 SU 624215/1

Page 174: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• job_TGPROD_ed_monitor 09/18/2009 19:00:01 09/18/2009 19:00:01 SU 637585/1

• job_TGPROD_ed_monitor_and_ftp_files 09/18/2009 20:28:01 09/18/2009 20:28:01 SU 637909/1

• job_TGPROD_ed_run 09/18/2009 20:28:01 09/18/2009 20:28:05 SU 637911/1

• job_TGPROD_magic_mail_MP_finished 09/01/2009 08:34:22 09/01/2009 08:34:23 SU 545191/1

• job_TGPROD_mdd_log_archive 09/18/2009 20:10:01 09/18/2009 20:10:02 SU 637843/1

• job_TGPROD_mdd_monitor_and_ftp_files 09/18/2009 20:28:01 09/18/2009 20:28:01 SU 637908/1

• job_TGPROD_mdd_pool_old_ptjs 09/18/2009 18:55:01 09/18/2009 18:55:01 IN 637563/1

• job_TGPROD_mdd_post_apply_cons_main 09/18/2009 20:28:01 09/18/2009 20:28:01 SU 637910/1 1

• job_TGPROD_mdd_run_completions 09/18/2009 16:20:01 09/18/2009 16:20:36 SU 636976/1

• job_TGPROD_monthly_r_adebsum2 09/01/2009 05:12:54 09/01/2009 05:26:21 SU 544390/1

• job_TGPROD_monthly_r_deposit 09/01/2009 05:28:42 09/01/2009 06:10:28 SU 544451/1

• job_TGPROD_monthly_r_mrevlist 09/01/2009 04:40:04 09/01/2009 05:00:11 SU 544265/1

• job_TGPROD_r_synergee ----- ----- OH 0/0

• job_TGPROD_work_management_fieldwork 09/18/2009 17:01:01 09/18/2009 17:01:09 SU 637134/1

• job_TGPROD_work_management_weekly 09/13/2009 20:00:01 09/13/2009 20:03:13 SU 611937/1

Second Level reporting

• autorep -J ALL -L1

Detail info about the job execution

• autorep -w -J box_TGPROD_weekly_batch -d

What is currently running

• autorep -d -m ALL

Job Status

• autorep -J <box/job>

Job Definition

• autorep -J <box/job> -q

Status Abbreviation

Page 175: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• 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

Current Jobs TGPROD environment

• autorep -w -j %TGPROD% | cut -c1-60 | sort • Job Name • ____________________________________________________________• box_TGPROD_CSS_gas_odour_rpt • box_TGPROD_CSS_meter_exchanges_rpt • box_TGPROD_DP_monitoring • box_TGPROD_Davox_extract • box_TGPROD_Davox_upload • box_TGPROD_EPP_review • box_TGPROD_IB_adjusted_usage • box_TGPROD_IB_allocations • box_TGPROD_IB_health_reports • box_TGPROD_IB_heat • box_TGPROD_IB_hec • box_TGPROD_IB_temp • box_TGPROD_IB_usage • box_TGPROD_IB_usage_check • box_TGPROD_MRIBCG_generation • box_TGPROD_MRIBCH_generation • box_TGPROD_MRI_ftp • box_TGPROD_MRI_rename • box_TGPROD_ODS_extract • box_TGPROD_SAP_MMS_Devices • box_TGPROD_TriStar_survey • box_TGPROD_archive • box_TGPROD_archive_ftp • box_TGPROD_archive_stmt • box_TGPROD_bankrupt_credit • box_TGPROD_bankrupt_current • box_TGPROD_cafe • box_TGPROD_caledon_tracker_load • box_TGPROD_chk_unclosed_batches • box_TGPROD_cl_notic_work_management • box_TGPROD_cognos • box_TGPROD_collection_agency • box_TGPROD_create_ptj_for_live_smart

Page 176: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• box_TGPROD_create_schedule • box_TGPROD_daily_back_office_forecasting • box_TGPROD_davox_complaints • box_TGPROD_days_delay_correction • box_TGPROD_device_status • box_TGPROD_device_status_upload • box_TGPROD_direct_debit • box_TGPROD_dispute_drop_premises_extract • box_TGPROD_energy_CIS_users • box_TGPROD_epost_MDR • box_TGPROD_epost_audit • box_TGPROD_epost_unfunded • box_TGPROD_in_lieu • box_TGPROD_incorrect_meter_pressure • box_TGPROD_invoicing_reconnection_charges • box_TGPROD_ip_pool_price_loader • box_TGPROD_large_customers_with_high_consumption • box_TGPROD_late_payments • box_TGPROD_lmdispatch_cancelled • box_TGPROD_load_MREBCG • box_TGPROD_load_MREBCH • box_TGPROD_load_MRE_post • box_TGPROD_load_RMF_files • box_TGPROD_load_Remittance_files • box_TGPROD_lockoffs_and_reconnects • box_TGPROD_mdd_appointments • box_TGPROD_mdd_ftp_out • box_TGPROD_mdd_in_progress • box_TGPROD_mdd_pdf_gen • box_TGPROD_mdd_to_reload • box_TGPROD_monthly_HEC_SLA • box_TGPROD_monthly_IVR_report • box_TGPROD_monthly_KM_1 • box_TGPROD_monthly_KM_2 • box_TGPROD_monthly_batch • box_TGPROD_monthly_caledon_statistical_data • box_TGPROD_monthly_print • box_TGPROD_monthly_stat • box_TGPROD_monthly_weekend_batch • box_TGPROD_pending_referral_audit_report • box_TGPROD_post_dp_batch • box_TGPROD_pre_dp_batch • box_TGPROD_prem_stops_to_work_this_week • box_TGPROD_pulled_statements • box_TGPROD_recall_and_meter_compliance • box_TGPROD_refunds • box_TGPROD_remove_OMR_readings • box_TGPROD_resequencerounds • box_TGPROD_set_environment • box_TGPROD_statement_check • box_TGPROD_statement_in • box_TGPROD_statement_out

Page 177: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• box_TGPROD_tar_archive • box_TGPROD_tests • box_TGPROD_track_statements_audit • box_TGPROD_triggers_check • box_TGPROD_weekly_batch • box_TGPROD_weekly_terasen_epost • job_TGPROD_NGV_quarterly_extract • job_TGPROD_OMR_manual_readings_required_report • job_TGPROD_as_inactive_evening • job_TGPROD_business_days • job_TGPROD_calc_avg_factors • job_TGPROD_check_FTP_ccp_to_print_out_logs • job_TGPROD_ed_FTP_get_CCP_From_Inbox_file • job_TGPROD_ed_consbill_workaround • job_TGPROD_ed_monitor • job_TGPROD_ed_monitor_and_ftp_files • job_TGPROD_ed_run • job_TGPROD_magic_mail_MP_finished • job_TGPROD_mdd_log_archive • job_TGPROD_mdd_monitor_and_ftp_files • job_TGPROD_mdd_pool_old_ptjs • job_TGPROD_mdd_post_apply_cons_main • job_TGPROD_mdd_run_completions • job_TGPROD_monthly_r_adebsum2 • job_TGPROD_monthly_r_deposit • job_TGPROD_monthly_r_mrevlist • job_TGPROD_r_synergee • job_TGPROD_work_management_fieldwork • job_TGPROD_work_management_weekly

Autosys autostatusAutosys Command - autostatus Unicenter AutoSys JM Autostatus Utility

USAGE: autostatus [-J JobName | -G GlobalName] [-S AUTOSERV] [-x] [-?]

WHERE: -J jobname Displays status of the Job -G globalname Displays Global Variable's value -S instance AutoSys instance to be queried for -J or -G options -x Returns version information -? Help

ExampleStatus of the job

• autostatus -J job_TGPROD_IB_prem_stopped_accounts • • SUCCESS

Status of the global variable

Page 178: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• autostatus -G TGPROD_CISSOURCE • • /CISSupport/tgprod/source

Autosys monbroAutosys Command - monbro

• Run monitor or report that has already been defined, using JIL or the monitor/browser editor

Usage

• monbro -h • • Unicenter AutoSys JM Monitor Browser Utility•• USAGE: monbro -N Name [-P Polling frequency] [-D DataSource] [-

q] [-x] [-?]•• WHERE: -N Name Runs specified Monitor or Report • -P Poll frequency Polls the database at the specified

interval• (in seconds)• -D Datasource Uses datasource to search the

specified information• -q Displays monbro definitions in JIL

format• -x Returns version information• -? Help

Example

• monbro -N failure_monitor • monbro -N ALL -q • • insert_monbro: error• mode: b• all_events: N• alarm: N• all_status: N• running: N• success: N• failure: Y• terminated: Y• starting: N• restart: N• job_filter: a• currun: Y• insert_monbro: running• mode: b• all_events: N• alarm: N• all_status: N

Page 179: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

• running: Y• success: N• failure: N• terminated: N• starting: N• restart: N• job_filter: a• currun: Y

Command-eventorAutosys Command - eventor

• Start Event Demon o eventor

Scheduler started.************************************************************** Monitoring Log file: /opt/CA/UnicenterAutoSysJM/autouser.TGD/out/event_demon.TGD... ^c to Break out. **************************************************************[01/16/2009 21:46:00] ----------------------------------------[01/16/2009 21:47:00] ----------------------------------------CA Unicenter AutoSys JM Scheduler Log [01/16/2009 21:47:13]Time Message-------------------------- ------------------------------------------------------------------------------[01/16/2009 21:47:13] CAUAJM_E_90010 Unable to load libemsdk <libemsdk.so: cannot open shared object file: No such file or directory>.[01/16/2009 21:47:13] CAUAJM_E_00131 An unrecoverable error has occurred or the maximum number of allowable errors has been exceeded. Unicenter Event Management messaging has been disabled.[01/16/2009 21:47:13] CAUAJM_I_10655 System is running in single server mode. Event server: TG8.[01/16/2009 21:47:15] CAUAJM_I_40218 **** Time offset between the Scheduler and Event Server A is 3 seconds. **** [01/16/2009 21:47:15] CAUAJM_I_50407 Reading external instance information[01/16/2009 21:47:15] CAUAJM_I_50408 No external instance information available.[01/16/2009 21:47:15] CAUAJM_I_40246 CA Unicenter AutoSys JM Scheduler startup complete[01/16/2009 21:47:15] CAUAJM_I_40356 SNMP trap generation : DISABLED.[01/16/2009 21:47:15] CAUAJM_I_40211 Using TZ = America/New_York[01/16/2009 21:47:15] ______________________________________________________________________________[01/16/2009 21:47:15] CAUAJM_I_50154 Running the Chase Process.[01/16/2009 21:47:15] CAUAJM_I_50156 There are no Jobs in a STARTING or RUNNING state![01/16/2009 21:47:15] CAUAJM_I_50157 Chase is successful.

Page 180: Autosys - Computer Associates (CA) - Homedocshare04.docshare.tips/files/9788/97888843.pdf · Autosys - Computer Associates (CA) Job Scheduling and ... • Unicenter AutoSys Job Management

[01/16/2009 21:47:15] ______________________________________________________________________________[01/16/2009 21:47:15] CAUAJM_E_90015 CA Unicenter AutoSys JM Scheduler [2AJS] - License Failure. Please contact your account representative to obtain a new license.[01/16/2009 21:47:15] CAUAJM_E_90015 CA Unicenter AutoSys JM Agent [2AJR] - License Failure. Please contact your account representative to obtain a new license.[01/16/2009 21:47:20] CAUAJM_E_00165 The Primary Scheduler is already running on machine: tgdap01, Startup aborted.[01/16/2009 21:47:20] CAUAJM_I_40247 CA Unicenter AutoSys JM Scheduler processing of events complete.[01/16/2009 21:47:20] CAUAJM_I_40248 CA Unicenter AutoSys JM Scheduler shutdown complete. Exiting.[01/16/2009 21:48:00] ----------------------------------------