50% found this document useful (2 votes)
577 views4 pages

NetBatch Job Scheduling Guide

NetBatch is a batch job scheduling program that allows scheduling jobs to run on NonStop servers. The document provides instructions on starting the NetBatch scheduler, initializing it by adding classes and executors, submitting jobs with options like start time and frequency, and controlling jobs using commands. It concludes with shutting down the scheduler when jobs are complete.

Uploaded by

kumar327
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
50% found this document useful (2 votes)
577 views4 pages

NetBatch Job Scheduling Guide

NetBatch is a batch job scheduling program that allows scheduling jobs to run on NonStop servers. The document provides instructions on starting the NetBatch scheduler, initializing it by adding classes and executors, submitting jobs with options like start time and frequency, and controlling jobs using commands. It concludes with shutting down the scheduler when jobs are complete.

Uploaded by

kumar327
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
  • Communicating with the Scheduler
  • Installing the Scheduler
  • Introduction to NetBatch
  • Job Priority and Class
  • Submitting Jobs
  • Mixing Output
  • Job Control Commands

Home|Tandem|MyTandemResources|NetBatchTutorial

********************************************************************************************

SchedulingJobsforDummies!

(UsingNetBatch)

********************************************************************************************

Contents:

IntroductiontoNetBatch
StartingtheScheduler
Communicatingwiththescheduler
Initializingthescheduler
SubmittingandRunningJobs
JobControlcommand
Windingup

IntroductiontoNetBatch:
=========================
NetBatchisabatchjobschedulingprogramthatallowsyoutoschedule(andrun!)batchjobs.
NonStopserversare(famousforand)usedforOLTPapplicationsbuteveninOLTPenvironmentyou
willhavecertainjobsthatyouneedtodoinbatch,likeprintingannual/monthlyreports,
generatingsystemperformancestatistics,etc.

StartingtheScheduler:
=======================
IssuethefollowingcommandonTACLprompttostartthescheduler.

TACL>NETBATCH/NAME$NBS,NOWAIT,CPU0/SUBVOL!

SUBVOListhesubvolumeonyoursystemwhereyouwantNetBatchtostoreitslogfiles,andabang
(!)
aftersubvolumenameinstructstheschedulertocoldstart(purgeandrecreateallitsfiles).

Thereisnothingspecialaboutthename$NBSyoucangiveanynameyouwishtorunyour
schedulerwith.

Communicatingwiththescheduler:
=================================
BATCHCOMistheutilityusedforcommunicatingwiththeNetBatchscheduler.

TACL>BATCHCOM$NBS

ThiswilldisplaytheBatchcombannerandtheBatchcompromptwhichisaclosingcurlybracket
'}'

Initializingthescheduler:
===========================
YoucanhaveanobeyfilecontainingthecommandsandyoucanobeythefileatBatchcomprompt
like

1>[Link]

Again,[Link]'sname.

Or,[Link]

ADDSCHEDULER

STARTSCHEDULER
ADDCLASSDEFAULT
ADDEXECUTORE1,CPU0
ADDEXECUTORE2,CPU1
STARTEXECUTOR*
Thismakesyourschedulerreadytoacceptjobsthatyouwanttorun.

ACLASSinNetBatchisacollectionofrelated/[Link]
belongtoaCLASS.
Hence,[Link]'t,thejobwillbe
addedtothe
classDEFAULThenceitismandatorytohavethatclassaddedtothescheduler.

AnExecutorisalogicalpipeline(oraqueue)[Link]
EXECUTORs,whereas
[Link]
controlthe
CPUonwhichtheNetBatchjobs(belongingtothatclass)[Link]'tlinkaCLASStoan
EXECUTOR,
thejobsintheCLASSwillrunonanyavailableEXECUTOR.

SubmittingandRunningjobs:
============================
YoucansubmitjobstotheschedulerbyusingtheSUBMITJOBorSUBMITJOBcommandat
[Link].
Wewillseesomesampleones.

ADDJOB1,EPDELAY,SM"10SECONDS"

ThisjobisnamedJOB1anditisidenticaltoissuingthecommand

DELAY10SECONDS

[Link],theprogram
[Link],NetBatchisascheduler,itdecides
whentorunwhichjobsandmanagesresourcesassociated,itdoesnot'run'[Link]
[Link],TACListhe
ExecutorProgram.

SMstandsforstartupmessage,themessagethatisrequiredbytheEPtodothe
desiredjob.Herethedesiredjobisonlytoissueadelayof10seconds.

Here,thejobexecutesimmediatelyuponissuingtheabovecommand.

Note:EP(executorprogram)isTACLbydefault.

ADDJOB2,EPDELAY,SM"2SECONDS",EVERY5MINUTES,AFTER13:00

[Link]
[Link],ifyouwish,alsogiveEVERY10HOURS(orEVERY10DAYS
forthatmatter).

NobodysaidyoucanuseonlyDELAYastheEP.YoucanuseANY100or700codefileas
anEPforajobdependinguponthejobrequirements.

ADDJOB3,EPFUP,SM"INFO*",OUT$[Link]

TheabovejobusesFUPastheexecutorprogramandisidenticaltoissuingcommandFUPINFO*
[Link]([Link]*command)goestoadisk
file.

Note:BydefaulttheoutputofallthejobsscheduledbyNetBatchgoestothespoolerlocation
$S.#BATCH

Ifyouhaveajobthatusesmultipleexecutorprogramsyoucanuseanobeyfileand
useTACLastheexecutorprogram(EP).

ADDJOB4,IN$[Link],AT16:00


AndthecontentsofINFILEcanbeanythingthatcanbeobeyedatTACL.

SampleINFILE:

DELAY2SECONDS
FILEINFO
#PUSHVAR
#SETVAR"THISISANINFILE"
#OUTPUTVVAR
WHO
TIME
FUPINFO*
VOLUME

TheATattributeofthisjobspecifiesthatthejobistobeexecutedEXACTLYatthattime.
(youmaynotalwaysbeabletosettheATattributeofajob,duetorestrictionsplacedonthe
scheduler
[Link],theRUNNOWcommandmaytooberestricted)

JobControlCommands:
=====================
Youcanseethestatusofyoursubmittedjobsusing

STATUS<JOBNAME>or

STATUS*(forstatusofalljobs)

commandontheBatchcomprompt.

Itistobenotedherethatajob,ifnotarecursivejob([Link]),
getsdeletedafterfirst(andonly)execution.

Youcandeleteajobusing

DELETE<JOBNAME>or

DELETEJOB*(fordeletingalljobs)

commandontheBATCHCOMprompt.

YoucanputtheexecutionofajobinHOLDstateusing

ALTER<JOBNAME>,HOLDON

AjobinHOLDstatewillnotstartexecutionunlessitsHOLDattributeisremovedby

ALTER<JOBNAME>,HOLDOFF

WindingUp:
===========
AfteryouaredonewiththeNetBatchschedulingandafteralljobsscheduledbyNetBatchhave
completed
executionandyounolongerneedthescheduleryoucanusethefollowingBatchcomcommands

SHUTDOWN

EXIT

ThefirstcommandshutsdowntheschedulerandthesecondcommandendstheBatchcomsession.

Formoreadvancedtopics,refertotheNetBatchManualsinNTL/TIM.

Privacy

Home (http://goanand.com/index.htm) | Tandem | My Tandem Resources | NetBatch Tutorial
 
 
**********************************
START SCHEDULER
ADD CLASS DEFAULT
ADD EXECUTOR E1, CPU 0
ADD EXECUTOR E2, CPU 1
START EXECUTOR *
This makes your scheduler re
 
And the contents of INFILE can be anything that can be obeyed at TACL.
 
Sample INFILE:
 
DELAY 2 SECONDS
FILEINFO
#PUSH VA

You might also like