Posted on May 18, 2005 7:24 AM by chadley
At work we're using a product called (TWS) to do all our batch job scheduling. There's a gui available as a front end interface, but it's written in Java. Anybody who knows me knows how much I like Java GUI's. Fortunately, most of the things you can do with the Java GUI, you can also do on the command line. My goal is to become proficient with the command line tools so that I don't have to use the Java frontend most of the time.
In this thread I will post my own little quick reference guide for TWS and the command line tools. Maybe it can evolve into something that I would share with people at work to help them be good TWS operators.
Here's a link to the
This post has been looked at 295 time(s).
Tags:
IBM,
TWS,
Tivoli Workload Scheduler
Posted on May 18, 2005 7:24 AM by chadley
# CONMAN works on the PLAN
# COMPOSER works on the database
# shows all jobstreams in the plan today
conman ss @#@
# lists all schedules in the db on europa that start with H
composer list sched=EUROPA#H@
# rerun a job
conman rerun CARME#D_ADM_DB2_MNT1.ADM_DB2_TBSPACE_RPT01
# show jobs in the plan on carme
conman sj carme#@
# submit schedule named D_ADM_DB2_MNT1 on CARME
conman sbs CARME#D_ADM_DB2_MNT1
# Show job definitions for all jobs with ADM in their name
composer display jobs=@#@ADM@
# Alter priority of a job
conman "ap POKXITSPROD#D_NN_US_S2A_1.NN_PART_CTRL;50"
# this will make the job go no matter what the fence is set to
conman "ap POKXITSPROD#D_NN_US_S2A_1.NN_PART_CTRL;go"
# Alter the priority level to zero (no run) on all
#
JOBSTREAMS on CARME without prompting for confirmation
conman altpri "CARME#@;0;noask"
# Alter the priority level to zero (no run) on all
#
JOBS on CARME without prompting for confirmation
conman altpri "CARME#@.@;0;noask"
# Create a script that will have all job definitions for CARME
composer create carmejobs.txt jobs=carme#@
# Rerun a job that has failed.
conman rr CARME@W_ADM_JOBSTREAM1.ADM_JOBNAME
# Sometimes the problem was with the job definition itself.
# If you just rerun it with the command above after you
# changed the job def, it will fail because the plan has the
# old job def. To rerun it and tell conman to use the new
# job def do something like this:
conman rr "carme#jobs.ADM_BACKUP_SQLPARTS_CONFIG;from=carme#ADM_BACKUP_SQLPARTS_CONFIG"
#look at ALL stdlist fileS for a job
conman "sj POKXITSPROD#CF06110AAAAAAAAB.NN_RESULTS_FORMAT_CTRL;stdlist"
#look at the stdlist file for a specific job#
conman "sj POKXITSPROD#544802;std;sin"
#Confirm a job successful:
conman "confirm POKXITSTEST#CF06194AAAAAAAAB.NN_INVENTORY_CTRL;succ"
# Get a forecast of the schedule for a date
schedulr -date 07/29/2006 -prodsked myprodsked
Posted on November 25, 2007 12:49 PM by chadley
#to set the limit to 10 on all cpus run:
conman "lc @;10;noask"
# if the cpu LIMIT is set to 0 then no jobs will run unless they have a priority of GO or HI
Posted on November 25, 2007 12:54 PM by chadley
# to create a forecast of the production plan for a given day, use the planman command with the crtfc option:
planman crtfc myplan # forecast for today
planman -from 11/18/2007 crtfc myplan # forecast for 11/18/2007
# will create a PLAN file in TWS_home/schedForecast called Fmyplan
#To then create human readable report run the reptr command using the forecast plan file:
reptr -pre /opt/maestro/schedForecast/Fmyplan > myplan_report.txt
Posted on December 18, 2008 2:22 PM by chadley
# You may see a message like: "The server is trying to update and unlock the indicated object but it is locked by the user but in another session, or by another user."
# Sometimes you will have a case where a job stream or something else
# is locked by another userid and you need to edit it
# use the unlock command to be able to edit the object
composer "unlock js=sinope#w_n2_ap_p1_1;forced"
# you will have to force the commmand if you were not the one to lock the object
You are NOT logged in. You MUST
login to add a comment at this time.