Top Banner
7/23/2019 Tws Introduction http://slidepdf.com/reader/full/tws-introduction 1/27 TIVOLI SCHEDULER
27

Tws Introduction

Feb 18, 2018

Download

Documents

Sitakanta
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Tws Introduction

7/23/2019 Tws Introduction

http://slidepdf.com/reader/full/tws-introduction 1/27

TIVOLI SCHEDULER

Page 2: Tws Introduction

7/23/2019 Tws Introduction

http://slidepdf.com/reader/full/tws-introduction 2/27

ContentsContents

What is TWS?

Getting TWS access

TWS – Terminology Used

 JNextPlan – Basic Concepts and Processes

Composer and Conman

Ho to !e"ne a TWS Jo# – $ario%s Parameters

Ho to !e"ne a TWS Sched%le – $ario%s Parameters

&'er'ie o( Composer Commands and Usage

&'er'ie o( Conman Commands and Usage

)imitations *o( "le atcher etc+,

Page 3: Tws Introduction

7/23/2019 Tws Introduction

http://slidepdf.com/reader/full/tws-introduction 3/27

What is TWS?What is TWS? TWS is the preferred scheduler option to automate the batchprocessing on Unix systems. It can provide calendar and event

driven workload automation across dierent platforms.

  The omposer program is used to manage scheduling

ob!ects in Workload Scheduler"s database. Scheduling ob!ects are

workstations# workstation classes# domains# !obs# !ob streams#

resources# prompts# calendars# and parameters.

  Workload Scheduler"s production plan environment is

managed with the onman program.

  Scheduling language format and keywords to de$ne

 !ob streams for Workload Scheduler.

Page 4: Tws Introduction

7/23/2019 Tws Introduction

http://slidepdf.com/reader/full/tws-introduction 4/27

Getting TWS accessGetting TWS access

We can get the Tivoli access by raising an eS% re&uest. The form name is '

  U N - . User /cco%nt 0e1%ests

(evels of TWS )ccess  ) user can have dierent levels of access within TWS.

+. )bility to view currently loaded schedules ,using conmancommands-

.)bility to view and manipulate currently loaded schedules,using conman commands-

/. )bility to view schedule de$nitions ,using composercommands-

0. )bility to view1add1amend schedule de$nitions ,using

composer commands-

Page 5: Tws Introduction

7/23/2019 Tws Introduction

http://slidepdf.com/reader/full/tws-introduction 5/27

Getting TWS accessGetting TWS access

 2aising an U N - . User /cco%nt 0e1%ests will provide youonly the ability to view currently loaded schedules ,usingconman commands-

34ow for getting further access on your existing tt5p I6# onehas to raise another eS% . The form name is '

  T W S User /cco%nt 0e1%est

 This re&uest will provide you access to manipulate currentlyloaded schedules and view composer de$nition of schedulesas well as the calendar de$nition.

Page 6: Tws Introduction

7/23/2019 Tws Introduction

http://slidepdf.com/reader/full/tws-introduction 6/27

 TWS 7 Terminology Used TWS 7 Terminology Used Wor2station

)lso referred to as %U. Usually an individual computer on which !obs and !obstreams are run. Workstations are de$ned in the Tivoli Workload Schedulerdatabase as a uni&ue ob!ect. ) workstation de$nition is re&uired for everycomputer that executes !obs or !ob streams in the Workload Scheduler network.

 Jo#

) script or command# run on the user’s behalf# run and controlled by Tivoli

Workload Scheduler.

 Jo# Stream

)lso referred to as schedule. ) mechanism for grouping !obs by function orapplication on a particular day and time. ) !ob stream de$nition includes a launchtime# priorities# dependencies# and !ob names.

Calendar

)n ob!ect de$ned in the Tivoli Workload Scheduler database that contains a list ofscheduling dates. 8ach calendar can be assigned to multiple !ob streams.)ssigning a calendar to a !ob stream causes that !ob stream to run on the daysspeci$ed in the calendar. ) calendar can be used as an inclusionary orexclusionary run cycle.

Page 7: Tws Introduction

7/23/2019 Tws Introduction

http://slidepdf.com/reader/full/tws-introduction 7/27

 TWS 7 Terminology Used TWS 7 Terminology Used !ependency

) condition that must be met in order to launch a !ob or !ob stream.

C/0034&0W/0!

 The )229:;2W)26 option is de$ned on the schedule if we you want to get theschedule carried forward for the next day’s plan. If the )229:;2W)26 option isnot de$ned# the schedule !ust died down at the <4extday %lan for next day.

0eso%rce

)n ob!ect representing either physical or logical resources on your system. ;ncede$ned in the Tivoli Workload Scheduler database# resources can be used asdependencies for !obs and !ob streams. :or example# you can de$ne a resourcenamed tapes with a unit value of two. Then# de$ne !obs that re&uire two availabletape drives as a dependency. <obs with this

dependency cannot run concurrently because each time a !ob is run the “tapes” resource is in use.

Page 8: Tws Introduction

7/23/2019 Tws Introduction

http://slidepdf.com/reader/full/tws-introduction 8/27

 TWS 7 Terminology Used TWS 7 Terminology Used TWS /lert

 There are various alerts in Tivoli# we can have a mail sent to a group and anincident raised in S=> '

+. (ate Start alert. (ate :inish alert/. :ailure alert

 JNextday Plan

 The <4ext%lan script runs on the master domain manager to generate theproduction plan and distribute it across the Tivoli Workload Scheduler network.

Symphony

 <4ext%lan script creates the new production plan and stores it in a $lenamed Symphony.

)imit

(imit de$nes how many !obs can run at a time. (imit can be de$ned onSchedule1Workload1=aster level.

Page 9: Tws Introduction

7/23/2019 Tws Introduction

http://slidepdf.com/reader/full/tws-introduction 9/27

 <4extplan ?asic oncepts <4extplan ?asic onceptsand %rocessesand %rocesses

Page 10: Tws Introduction

7/23/2019 Tws Introduction

http://slidepdf.com/reader/full/tws-introduction 10/27

 <4extplan ?asic oncepts <4extplan ?asic oncepts

and %rocessesand %rocesses To generate and start a new production plan Tivoli Workload Scheduler performsthe following steps'

  Updates the preproduction plan with the ob!ects de$ned in the database thatwere added

or updated since the last time the plan was created or extended.

  2etrieves from the preproduction plan the information about the !ob streamsto run in thespeci$ed time period and saves it in an intermediate production plan.

  Includes in the new production plan the uncompleted !ob streams from theprevious

production plan.

  reates the new production plan and stores it in a $le named Symphony.

  6istributes a copy of the Symphony $le to the workstations involved in thenew product

plan processing.

  (ogs all the statistics of the previous production plan into an archive

  Updates the !ob stream states in the preproduction plan.

Page 11: Tws Introduction

7/23/2019 Tws Introduction

http://slidepdf.com/reader/full/tws-introduction 11/27

@ow to 6e$ne a TWS <ob 7 Aarious@ow to 6e$ne a TWS <ob 7 Aarious%arameters%arameters

 TWS <ob consists of below attributes '

5+ Jo# Name

  <ob 4ame consists of a workload and a meaningful name# separated by theconnector “B”.  e.g.# )28%B)2C8T()6D

6+ Scriptname

  Scriptname is nothing but the actual command to be run via !ob.

e.g.# SC0-PTN/78 “rm 1wload1arep1home1arepmrE1Test.;F ”

9+ ST08/7)&G&N Streamlogon is the user by which the script will be executed.

 e.g.# ST08/7)&G&N “arepmrE”

Page 12: Tws Introduction

7/23/2019 Tws Introduction

http://slidepdf.com/reader/full/tws-introduction 12/27

@ow to 6e$ne a TWS <ob 7@ow to 6e$ne a TWS <ob 7Aarious %arametersAarious %arameters

 TWS <ob consists of below attributes '

:+ !escription 

6escription speci$es the function of the script

  e.g.# !8SC0-PT-&N “2emoves .;F $le”

;+ 0eco'ery 

2ecovery part instruct the steps to be taken in case of failure of the !ob.

  e.g.# 08C&$803  ST;%1282U41):T82

Page 13: Tws Introduction

7/23/2019 Tws Introduction

http://slidepdf.com/reader/full/tws-introduction 13/27

@ow to 6e$ne a TWS Schedule 7 Aarious@ow to 6e$ne a TWS Schedule 7 Aarious%arameters%arameters

 TWS Schedule consists of below attributes '

5+ Sched%le Name *SCH8!U)8,

  Schedule 4ame consists of workload name and a meaningful name# separatedby the connector GBH.

e.g.# SCH8!U)8 )28%B)288T()6D+

6+ Sched%le 4re1%ency *&N,

  Schedule :re&uency speci$es the dates on which the schedule will execute# likedaily#weekly# monthly etc

e.g.# &N  =;# TU# W8# T@# :2

9+ Sched%le Time */T,

Schedule Time speci$es the time at which the schedule will start searching forthe

dependencies like $le dependency# predecessor schedule dependency etc. This Time is in

?ST.

e.g.# /T +DD

Page 14: Tws Introduction

7/23/2019 Tws Introduction

http://slidepdf.com/reader/full/tws-introduction 14/27

@ow to 6e$ne a TWS Schedule 7 Aarious@ow to 6e$ne a TWS Schedule 7 Aarious%arameters%arameters

:+ 4ile !ependency *&P8NS,

  ;%84S is a keyword used to de$ne a :ile dependency in TWS. Syntax is as below'

e.g.# &P8NS )28%BH1wload1arep1home1arepmrE1Incoming:ile.dat.doneH

;+ Sched%le<Jo# !ependency *4&))&WS,

  :;((;WS is a keyword used to de$ne a Schedule or <ob dependency in TWS.Syntax is as below

e.g.# 4&))&WS )28%B)288T()6D.J

=+ 0eso%rce !ependency *N88!S,

  4886S is a keyword used to de$ne a 2esource dependency in TWS. Syntax is asbelow

e.g.# N88!S )28%B=68%28

Page 15: Tws Introduction

7/23/2019 Tws Introduction

http://slidepdf.com/reader/full/tws-introduction 15/27

@ow to 6e$ne a TWS@ow to 6e$ne a TWSSchedule 7 8xampleSchedule 7 8xample

5+

SCH8!U)8 /08P>/088T)/6!6&N 08@U8ST>&N SUA 7&A TUA W8A TH/T 6 UNT-) 5 5 !/3S &NUNT-) C/NCC/0034&0W/0!

&P8NS /08P>D<load<xxxx<app<dataEa#initio<inter(ace<arch<xxxx<!B&)CP5+7&040TDF/08P>8T)/65= SC0-PTN/78 Dsleep =D ST08/7)&G&N #atchEid !8SC0-PT-&N DC! script to donload "leD T/ST3P8 UN-. 08C&$803 ST&PN88!S 5 ....>7!8EC!

8N!

Page 16: Tws Introduction

7/23/2019 Tws Introduction

http://slidepdf.com/reader/full/tws-introduction 16/27

;verview of omposer;verview of omposerommandsommandsCommand Short Name Function

 Add a Add scheduling object from a file

 Authenticate ( usedin composer )

auusername=<>password=<>

Change ser credentials

Continue !gnore the ne"t error  

Create#e"tract cr#e" Create te"t file from database object file

$elete de $elete scheduling object

Display d Display details o schedulin! o"#ect

edit ed %dits file%"it e %"it Composer  

&elp h $ispla's &elp command

ist l $ispla's list of database

loc ocs access to database object

Page 17: Tws Introduction

7/23/2019 Tws Introduction

http://slidepdf.com/reader/full/tws-introduction 17/27

;verview of omposer;verview of omposerommandsommandsCommand Short Name Function

modiy m $odiy schedulin! o"#ects

new n Add new scheduling object

print *rint scheduling objects

redo # or redo %dit and rerun the pre+ious command

rename rn Change the object name

replace rp ,eplace scheduling objects

unloc ,elease a scheduling object loc in the db

%alidate %al Validate o"#ect deinitions in a user ile

+ersion + $ispla's the Composer program banner  

-'stemscommands

.<commands>

!n+oe operating s'stem commands

Page 18: Tws Introduction

7/23/2019 Tws Introduction

http://slidepdf.com/reader/full/tws-introduction 18/27

;verview of omposer;verview of omposerommands K 8xamplesommands K 8xamples&' Display Schedule

composer d abatB)?)8T(LU6DD+

(' )dd Schedule*s to data"ase

composer add schedules.dat

+' $odiy Schedule deinition

composer m abatB)?)8T(LU6DD+

,' Replace Schedules in Data"ase

composer replace schedules.dat

-' Validate Schedule Deinition

composer validate schedules.dat

.' Delete Schedule*/o"s in data"ase

composer deleteabatB)?)8T(LU6DD+

0' Display Calendars

composer d calendars

1' Display /o" deinition

composer d !M)?)TB8T(CDC

2' )dd /o"*s to data"ase

composer add !obs.dat

&3' $odiy /o" Deinition

composer m !M)?)TB8T(CDC

&&' Replace /o" in data"ase

composer replace !obs.dat

&(' Validate /o" Deinition

composer validate !obs.dat

&+' Display T4S 5arameter 

composer d parms N grep 8T(T):T;

&,' Display T4S Resource

composer d r N grep 8T(;)6

Page 19: Tws Introduction

7/23/2019 Tws Introduction

http://slidepdf.com/reader/full/tws-introduction 19/27

;verview of onman;verview of onmanommandsommandsCommand Short Name Function

adddep job adj Add a dependenc' to a job

adddep sched ads Add a dependenc' to a job stream

altpass altpass Change a windows user password

altpri ap Alter the priorit' of job or job stream

cancel job cj Cancel a job

cancel sched cs Cancel a job stream

confirm confirm Confirm the state of a job

console cons %"it Composer  

deldep job ddj $elete a dependenc' on a job

deldep sched dds $elete a dependenc' on a job stream

e"it %"it the conman interface

Page 20: Tws Introduction

7/23/2019 Tws Introduction

http://slidepdf.com/reader/full/tws-introduction 20/27

;verview of onman;verview of onmanommandsommands ontinuedontinuedCommand Short Name Function

ill ill /ill a job that is in %0%C state

limit cpu lc -et the worstation limit

limit sched ls -et the limit on a job stream

lin lin in a worstation

release job rj ,elease dependencies on a job

release sched rs ,elease dependencies on a job stream

repl' repl' ,epl' to prompts

rerun rr ,erun a job (can also rerun 1,23)

showcpus sc -hows a list of worstations in the en+

showjobs sj -hows a list of jobs

showpropmts sp -hows a list of prompts

showsresources sr -hows a list of resources

Page 21: Tws Introduction

7/23/2019 Tws Introduction

http://slidepdf.com/reader/full/tws-introduction 21/27

;verview of onman;verview of onmanommandsommands ontinuedontinued

Command -hort 4ame 1unctionshowschedules ss -hows a list of schedules

submit job sbj -ubmit a defined job to a s'stem

submit sched sbs -ubmits a defined job stream to a s'stem

Page 22: Tws Introduction

7/23/2019 Tws Introduction

http://slidepdf.com/reader/full/tws-introduction 22/27

;verview of onman;verview of onmanommands K 8xamplesommands K 8xamples5+ S%#mit Sched%le in Plan

arepB)288T()6DOfollowsM)28%B)288T()6D+.8T()DDP

sbs arepB)288T()6D

6+ Cancel a Sched%le in Plan

can arepB)288T()6D

9+ /lter Priority o( Sched%le

ap arepB)288T()6DOD

:+ S%#mit Sched%le on Pri

sbs arepB)288T()6DOpriMD

;+ Sho Sched%les

ss arepB)288T()6Dss arepBJ)J

=+ Sho Jo#s in a Sched%le

s! arepB)288T()6D

I+ 0elease Sched%le

release arepB)288T()6D

5+ S%#mit Jo# in Plan

sb! )28%B8T()DDP

6+ Cancel a Jo# -n Plan

can arepB)288T()6D+.8T()DDP

9+ /lter Priority o( a Jo#

ap )28%B)288T()6D+.8T()DDPOD

:+ S%#mit a Jo# on Pri

sb! )28%B8T()DDPOpriMD

;+ 0er%n a Jo# in a Sched%le

rr )28%B)288T()6D+.8T()DDP

=+ Sho CPU

sc N grep )28%

I+ Sho 0eso%rce

sr N grep 8T((;)6

Page 23: Tws Introduction

7/23/2019 Tws Introduction

http://slidepdf.com/reader/full/tws-introduction 23/27

;verview of onman;verview of onmanommands K 8xamplesommands K 8xamples  /dd !ependencies

5+ &( a Sched%le<Jo#

adddeparepB)288T()6DOfollowsM)28%B)288T()6D+.8T()DDP

6+ &( a 4ile

adddeparepB)28T8()6DO;%84SM)28%BQ1wload1arep1app1abinitiodisks1landing1serial12IS1risgpuinbound1ukba1risgputblP

 R.dat.6;48Q

9+ &( a 0eso%rceadddep

)28%B)288T()6D.8T()D+PO4886S

+ )28%B=686

:+ &( a Time

adddep arepB)288T()6DO)TMDDD

  !elete !ependencies

5+ &( a Sched%le<Jo#

deldep )28%B)288T()6DOfollowsMarepB)288T()6D+.8T()DDP

6+ &( a 4ile

deldep

arepB)28T8()6DO;%84SM)28%BQ1wload1arep1app1abinitiodisks1landing1serial12IS1risgpuinbound1ukba1risgputblP

 R.dat.6;48Q

9+ &( a 0eso%rce

deldep)28%B)288T()6D.8T()D+PO4886S

+ )28%B=686

:+ &( a Time

deldep repB)288T()6DO)TMDDD

;+ Con"rm S%ccess a Jo# F conf 28%B)288T()6D+.8T()DDPOsucc=+ S%#mit ith an alias F  sbs

arepB)288T()6DOaliasM)288T()6DDP

Page 24: Tws Introduction

7/23/2019 Tws Introduction

http://slidepdf.com/reader/full/tws-introduction 24/27

 TWS (imitations TWS (imitations

?elow points detail the limitations in TWS .0'

5+ 4ile !ependency – )ength o( 4ile name

  4ame of the $le in :ile 6ependency should be characters max# we can use R as wildcharacter.

e.g.# &P8NS  A,%*56#wload#arep#app#data7abinitio#interface#arch#triumph#$82C*A9C*-AC&:6

6+ Name o( 0eso%rce

  2esource name should be characters max

e.g.# N88!S =68(;)6

9+ )imitations o( sched%le !ependencies

  The max number of schedule dependencies on a schedule is PD.

Page 25: Tws Introduction

7/23/2019 Tws Introduction

http://slidepdf.com/reader/full/tws-introduction 25/27

:ood :or Thought ' Aarious (ive Scenarios:ood :or Thought ' Aarious (ive Scenarios

+. Is it possible to cancel a schedule automatically if the source $le is not arrived tillparticular time

. Is it possible to include !obs from dierent workloads in a single schedule

/. Is it possible to load a schedule on + st day of the month# but keep Start Time of Cth day of the month

0. an we reKrun a !ob multiple times a day automatically

C. an we customiEe the alert message generated by Tivoli

P. @ow a TWS alert gets generated

>. Is %ositive )lerting possible in Tivoli an we generate an alert through Tivoli if a !ob is Successful

. @ow can we control the number of !obs running at a time

5. Is there a limit on the total number of dependencies in a !ob

+D. What happens if a !ob is executing and the <4ext%lan starts

Page 26: Tws Introduction

7/23/2019 Tws Introduction

http://slidepdf.com/reader/full/tws-introduction 26/27

  @%estions  ???

Page 27: Tws Introduction

7/23/2019 Tws Introduction

http://slidepdf.com/reader/full/tws-introduction 27/27

  TH/N 3&U KKK