Tws Introduction
Tws Introduction
Tws Introduction
Contents
What is TWS?
What is TWS?
1.
2.
3.
4.
`Now for getting further access on your existing tt9p ID, one
has to raise another eSP . The form name is :
T W S User Account Request
Workstation
Also referred to as CPU. Usually an individual computer on which jobs and job
streams are run. Workstations are defined in the Tivoli Workload Scheduler
database as a unique object. A workstation definition is required for every
computer that executes jobs or job streams in the Workload Scheduler network.
Job
A script or command, run on the users behalf, run and controlled by Tivoli
Workload Scheduler.
Job Stream
Also referred to as schedule. A mechanism for grouping jobs by function or
application on a particular day and time. A job stream definition includes a launch
time, priorities, dependencies, and job names.
Calendar
An object defined in the Tivoli Workload Scheduler database that contains a list of
scheduling dates. Each calendar can be assigned to multiple job streams.
Assigning a calendar to a job stream causes that job stream to run on the days
specified in the calendar. A calendar can be used as an inclusionary or
exclusionary run cycle.
Dependency
CARRYFORWARD
The CARRYFORWARD option is defined on the schedule if we you want to get the
schedule carried forward for the next days plan. If the CARRYFORWARD option is
not defined, the schedule just died down at the JNextday Plan for next day.
Resource
An object representing either physical or logical resources on your system. Once
defined in the Tivoli Workload Scheduler database, resources can be used as
dependencies for jobs and job streams. For example, you can define a resource
named tapes with a unit value of two. Then, define jobs that require two available
tape drives as a dependency. Jobs with this
dependency cannot run concurrently because each time a job is run the tapes
resource is in use.
TWS Alert
There are various alerts in Tivoli, we can have a mail sent to a group and an
incident raised in SM7 :
1. Late Start alert
2. Late Finish alert
3. Failure alert
JNextday Plan
The JNextPlan script runs on the master domain manager to generate the
production plan and distribute it across the Tivoli Workload Scheduler network.
Symphony
JNextPlan script creates the new production plan and stores it in a file
named Symphony.
Limit
Limit defines how many jobs can run at a time. Limit can be defined on
Schedule/Workload/Master level.
To generate and start a new production plan Tivoli Workload Scheduler performs
the following steps:
Updates the preproduction plan with the objects defined in the database that
were added
or updated since the last time the plan was created or extended.
Retrieves from the preproduction plan the information about the job streams
to run in the
specified time period and saves it in an intermediate production plan.
Includes in the new production plan the uncompleted job streams from the
previous
production plan.
Creates the new production plan and stores it in a file named Symphony.
Logs all the statistics of the previous production plan into an archive
1.
Job Name
2.
Scriptname
Scriptname is nothing but the actual command to be run via job.
e.g., SCRIPTNAME rm /wload/arep/home/arepmrz/Test.OK
3.
STREAMLOGON
Streamlogon is the user by which the script will be executed.
4.
Description
Description specifies the function of the script
e.g., DESCRIPTION Removes .OK file
5.
Recovery
Recovery part instruct the steps to be taken in case of failure of the job.
e.g., RECOVERY STOP/RERUN/AFTER
2.
SCHEDULE AREP#AREETLA2D01
e.g.,
3.
e.g.,
AT 1200
e.g.,
5.
OPENS AREP#/wload/arep/home/arepmrz/Incoming_File.dat.done
e.g.,
6.
FOLLOWS AREP#AREETLA2D02.@
e.g.,
NEEDS AREP#MDE_PRE
Overview of Composer
Commands
Command
Short Name
Function
Add
Authenticate ( used
in composer )
au
username=<>
password=<>
Continue
Create/extract
cr/ex
Delete
de
Display
edit
ed
Edits file
Exit
Exit Composer
Help
List
lock
Overview of Composer
Commands
Command
Short Name
Function
modify
new
redo
/ or redo
rename
rn
replace
rp
unlock
validate
val
version
Systems
commands
:<
commands>
Overview of Composer
Commands - Examples
1. Display Schedule
composer d abat#ABAETLGUD001
composer d j=ABAT#ETLC5205
composer m abat#ABAETLGUD001
composer m j=ABAT#ETLC5205
composer delete
abat#ABAETLGUD001
7. Display Calendars
composer d r | grep ET_LOAD
composer d calendars
Overview of Conman
Commands
Command
Short Name Function
adddep job
adj
adddep sched
ads
altpass
altpass
altpri
ap
cancel job
cj
Cancel a job
cancel sched
cs
confirm
confirm
console
cons
Exit Composer
deldep job
ddj
deldep sched
dds
exit
Overview of Conman
Commands
Command
Short Name
Function
Continued
kill
kill
limit cpu
lc
limit sched
ls
link
link
Link a workstation
release job
rj
release sched
rs
reply
reply
Reply to prompts
rerun
rr
showcpus
sc
showjobs
sj
showpropmts
sp
showsresources
sr
Overview of Conman
Commands
Command
Short Name
Function
Continued
showschedules
ss
submit job
sbj
submit sched
sbs
Overview of Conman
Commands - Examples
1. Submit Schedule in Plan
arep#AREETLA2D02;follows=AREP#A
REETLA2D01.ETLA2006
sbs arep#AREETLA2D02
6. Show CPU
sc | grep AREP
sj arep#AREETLA2D02
7. Show Resource
7. Release Schedule
release arep#AREETLA2D02
sr | grep ETL_LOAD
Overview of Conman
Commands - Examples
Add Dependencies
Delete Dependencies
1. Of a Schedule/Job
1. Of a Schedule/Job
adddep
arep#AREETLA2D02;follows=AREP#AR
EETLA2D01.ETLA2006
deldep AREP#AREETLA2D02;
follows=arep#AREETLA2D01.ETLA2006
2. Of a File
2. Of a File
adddep
arep#ARETELA2D02;OPENS=AREP#"/wl
oad/arep/app/abinitio_disks/landing/seri
al/RIS/ris_gpu_inbound/ukba/risgpu_tbl6
_*.dat.DONE"
deldep
arep#ARETELA2D02;OPENS=AREP#"/wl
oad/arep/app/abinitio_disks/landing/seri
al/RIS/ris_gpu_inbound/ukba/risgpu_tbl6
_*.dat.DONE"
3. Of a Resource
3. Of a Resource
adddep
AREP#AREETLA2D02.ETLA2016;NEEDS
1 AREP#MDE_CD
deldep
AREP#AREETLA2D02.ETLA2016;NEEDS
1 AREP#MDE_CD
4. Of a Time
4. Of a Time
adddep arep#AREETLA2D02;AT=2000
deldep rep#AREETLA2D02;AT=2000
TWS Limitations
Below points detail the limitations in TWS 8.4:
1.
e.g.,
2.
OPENS AREP#"/wload/arep/app/data_abinitio/interface/arch/triumph/DBOLCPA.CPSACH*"
Name of Resource
Resource name should be 8 characters max
e.g.,
3.
NEEDS MDE_LOAD
Questions
???