Sie sind auf Seite 1von 6

HOME

SITEMAP

VERBALREASONING

REASONINGMATERIALS

LOGICALREASONING

QUANTITATIVEAPTITUDE

ABOUTUS

DOWNLOAD

SEARCHTHISBLOG

Search

QUANTITATIVEAPTITUDE

NumberSeries
Percentage
ProfitandLoss

AUTOSYSINTERVIEWQUESTIONSAND
ANSWERSPDF
LATESTUPDATES

AUTOSYSINTERVIEWQUESTIONSANDANSWERSPDF

IntroductiontoAutosys
Autosysisanautomatedjobcontrolsystemforscheduling,monitoring,andreporting.Thesejobs
canresideonanyAutosysconfiguredmachinethatisattachedtoanetwork.AnAutosysjobisany
singlecommand,executable,script,orWindowsbatchfile.EachAutosysjobdefinitioncontainsa
varietyofqualifyingattributes,includingconditionsspecifyingwhenandwhereajobshouldberun.

FOLLOWBYEMAIL

Emailaddress...

AutosysSystemComponents
REASONINGBOOK

SimpleInterestandCompound
Interest
Average

Ithasserverclientarchitectureandrequires3rdpartydatabaseorbundledversionofSybase.
Eventserver:Databasecontainingthejobdefinitionsandevents.

RatioandProportion

EventProcessor:Thedaemonwhichreadsfromtheeventserverandsendsjobstreamtothe

ProblemsBasedonAges

RemoteAgent:TheRemoteagentistheclientcomponentofAutosysandwillexecutethecommand

Remoteagent.
asdefinedandwritetheresultbacktoEventServer.

Partnership
TimeandWork

ShadowProcessor:ThedaemonrunningontheserverwhichtakesoverfromtheEventProcessorif
itisinterrupted.
3rdmachine:AnAutosysRemoteagentthatactsasthetiebreakeriftheEventprocessand

PipeandCistern

Shadowprocessloseconnectivitywitheachother.

SpeedTimeandDistance

AutosysProcessFlow

ProblemsonTrains

Thediagraminthefollowingfigureandthenumberedexplanationsthatfollowitillustratehow

MixtureandAlligation
Inequality
PermutationandCombination

UnicenterAutosysJMperformsitsmostbasicfunctionstartingajob(thatis,executinga
command)onaclientMachine.
[Note:Infollowingfigure,themajorcomponentsareshownasseparateentities.Typically,event
processorandeventserverareinstalledonthesameservermachinealongwitharequiredremote
agent,andotherremoteagentsareinstalledonseparateclientmachines.]

BoatsandStreams
ProbabilityTricks
ProblemonNumbers

INTERVIEWQUESTIONS

ABINITIO

AdobeAEM
AdobeCQ5
Ajax
Autosys
CloverETL
DatapowerInterviewQuestions
DevOps

NowInIndia!LoseUpTo25KgIn4
WeeksUsingThisMethod
healthreports247.com

1.TheEventprocessorscanstheeventserverforthenexteventtoprocess.Ifnoeventisready,
theEventprocessorscansagaininfiveseconds.
2.TheEventprocessorreadsfromtheeventserverthataneventisready.IfeventisaSTARTJOB
event,thejobdefinitionandattributesareretrievedfromEventserver,includingthecommandand
pointer(fullpathnameontheclientmachine)totheprofiletobeusedforthejob.Inadditionfor
jobsrunningonwindowsmachines,theeventprocessorretrievesfromthedatabasetheuserIDs
andpasswordsrequiredtorunthejobonclientmachine.

DevOpsInterviewQuestions

3.TheEventprocessorprocessesevent.IftheeventisSTARTJOB,theEventprocessorattempts

FullStackDeveloper

toestablishaconnectionwithremoteagentontheclientmachine,andpassesjobattributesto

FullStackWebDevelopment

thatthejobisinSTARTINGstatus.

clientmachine.TheEventprocessorsendsaCHANGE_STATUSeventmakingintheeventserver

JasperReports
JasperReportsServer
JBoss
JBossAdministration

Viewmycom
profile

Mensuration

ADF

ABOUTME

4.Onaunixmachine,theinetdinvokestheremoteagent.Onawindowsmachine,theremote
agentlogsontothemachineastheuser,definedasthejobsowner,usingtheuserIDsand
passwordspassedtoitfromeventprocessor.
5.TheremoteagentsendsanacknowledgmentbacktotheEventprocessorindicatingthatithas

JBossSOA

receivedthejobparameters.Thesocketconnectionisterminated.Atthispoint,theEventprocessor

MapReduce

resumesscanningtheEventserverdatabase,lookingforeventstoprocess.

NodeJS

6.Theremoteagentstartsaprocessandexecutescommandinthejobdefinition.

OracleADF
Pro*C

7.TheremoteagentissuesaCHANGE_STATUSeventmarkingintheEventserverthatthejobis
inrunningstate.

SAPPI
SQL

8.Theclientjobprocessrunstocompletion,thenreturnsanexitcodetotheremoteagentand
quits.

SQLQuery
UIDeveloper
uideveloperinterviewquestions

TheremoteagentsendstheEventserveraCHANG_STATUSeventcorrespondingtothecompletion
statusofthejobandpassesbackanexitcode,usingthecommunicationfacilitiesofthedatabase.
IfthereturnstatusisSUCCESS,theremoteagentdeletesthelogfileinitstemporaryfiledirectory
ontheclientmachine.Theremoteagentsquits.
AutosysJobs
Therearethreetypesofjobs,
CommandJobs:executecommands
FilewatcherJobs:watchforthearrivalofaspecifiedfile.
BoxJobs:arecontainersthatholdotherjobs(includingotherboxes).Aboxjobcanbeusedto
organizeandcontrolprocessflow.Theboxitselfperformsnoactions,althoughitcantriggerother
jobstorun.Animportantfeatureofthistypeofjobisthatboxescanbeputinsideofotherboxes.

AutosysJobStatus
Autosyskeepstrackofthecurrentstatusofeveryjob.Followingarethestatuses
INACTIVE(IN)Thejobhasnotyetbeenprocessed.Eitherthejobhasneverbeenrun,orits
statuswasintentionallyalteredtoturnoffitspreviouscompletionstatus.
ACTIVATED(AC)ThetoplevelboxjobisinRUNNINGstate,butthejobitselfhasnotstartedyet.
STARTING(ST)TheeventprocessorhasinitiatedthestartjobprocedurewiththeRemoteAgent.
RUNNING(RU)Thejobisexecuting.Ifthejobisaboxjob,thisvaluesimplymeansthatthejobs
withintheboxmaybestarted(otherconditionspermitting).Ifitisacommandorfilewatcherjob,
thevaluemeansthattheprocessisactuallyrunningontheremotemachine.
SUCCESS(SU)Thejobexitedwithanexitcodeequaltoorlessthanthemaximumexitcodefor
success.Bydefault,onlytheexitcode0isinterpretedassuccess.
FAILURE(FA)Jobexitedwithanexitcodegreaterthanmaximumexitcodeforsuccess.Any
numbergreaterthanzeroisinterpretedasfailure.Autosysissuesanalarmifajobfails.
TERMINATED(TE)ThejobterminatedwhileintheRUNNINGstate.Ajobcanbeterminatedifa
usersendsaKILLJOBeventorifitwasdefinedtoterminateiftheboxitisinfailed.Ajobmayalso
beterminatedifithasexceededthemaximumruntimeorifitwaskilledfromcommandline
throughUNIXkillcommand.Autosysissuesanalarmifajobisterminated.
RESTART(RE)Jobwasunabletostartduetohardwareorapplicationproblems,andhasbeen
scheduledtorestart.
QUEWAIT(QU)Thejobcanlogicallyrun(thatis,allthestartingconditionshavebeenmet),but
therearenotenoughmachineresourcesavailable.
ON_HOLD(OH)ThisjobisonholdandwillnotberununtilitreceivestheJOB_OFF_HOLDevent.
ON_ICE(OI)Thisjobisremovedfromallconditionsandlogic,butisstilldefinedtoAutosys.
Operationally,thisconditionislikedeactivatingthejob.Itwillremainoniceuntilitreceivesthe
JOB_OFF_ICEevent.
DefaultBoxJobbehaviour
Someimportantrulestorememberaboutboxesare:
Jobsrunonlyonceperboxexecution.
Jobsinaboxwillstartonlyiftheboxitselfisrunning.
Aslongasanyjobinaboxisrunning,theboxremainsinRUNNINGstatetheboxcannot
completeuntilalljobshaverun.
Bydefault,aboxwillreturnastatusofSUCCESSonlywhenallthejobsintheboxhaverunand
thestatusofallthejobsis"success.
Bydefault,aboxwillreturnastatusofFAILUREonlywhenalljobsintheboxhaverunandthe
statusofoneormoreofthejobsis"failure."
Unlessotherwisespecified,aboxwillrunindefinitelyuntilitreachesastatusofSUCCESSor
FAILURE.
ChangingthestateofaboxtoINACTIVE(viathesendeventcommand)changesthestateofallthe
jobsintheboxtoINACTIVE.

DefiningJobs
Therearethetwomethodsyoucanusetocreatejobdefinitions:
UsingtheAutosysGraphicalUserInterface(GUI).
UsingtheAutosysJobInformationLanguage(JIL)throughacommandlineinterface.
WhatisdifferencebetweenONHOLDandONICEstatus?
Thedifferencebetween"onhold"and"onice"isthatwhenan"onhold"jobistakenoffhold,ifits
startingconditionsarealreadysatisfied,itwillbescheduledtorun,anditwillrun.Ontheother
hand,ifan"onice"jobistaken"office,"itwillnotstart,evenifitsstartingconditionsarealready
satisfied.Thisjobwillnotrununtilitsstartingconditionsreoccur.
Theothermajordistinctionisthatdownstreamjobsfromthejobwhichis"onice"willrun
asthoughthejobsucceeded.Whereas,alldependentjobsdonotrunwhenajobison"onhold.
WhataredifferentstartingconditionsforAutosysjob?
Autosysdetermineswhethertostartornottostartajobbasedontheevaluationofthestarting
conditions(orstartingparameters)definedforthejob.
Theseconditionscanbeoneormoreofthefollowing:
Dateandtimeschedulingparametersaremet(itisorhaspassedthespecifieddateandtime).
StartingConditionsspecifiedinthejobdefinitionevaluatetotrue.
Forjobsinabox,theboxmustbeintheRUNNINGstate.
ThecurrentstatusofthejobisnotON_HOLDorON_ICE.
Everytimeaneventchangesanyoftheaboveconditions,Autosysfindsallthejobsthatmaybe
affectedbythischange,anddetermineswhetherornottostartthem.

Samplejilcode/Writingjilcode
insert_job:templatejob_type:c
box_name:box1
command:lsl
machine:localhost
owner:lyota01@TANTA01
permission:gx,ge,wx,we,mx,me
date_conditions:1
days_of_week:all
start_times:15:00,14:00
run_window:14:006:00
condition:s(job1)
description:descriptionfield
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
profile:/tmp/.profile
Explanationofeachline:
Insert_job:thiswilllettheAutosysservertorecognizethejobandinsertsintoAutosysDataBase.
Jobtype:therearetwotypesofjobsnamelyboxandchild(c=child,b=box)
box_name:thisistheboxjobname:boxjobcanhavemorethan1childjobs.
commands:thisiswhereyoutellAutosys,whattodowhenthejobruns.
machine:nameofthemachinewhereyouwanttorunthejob.
owner:ownerofthejob.
permissions:
date_conditions:1ifyouhaveanyspecifications.
days_of_week:onwhichdaysoftheweekyouwantthejobtorun.
start_time:thetimeatwhichthejobshouldkickoff.
run_window:thisoptionisformonitoringjobs.Jobwillruncontinuouslyforspecifiedtimewindow.
conditions:Youcanspecifythedependencies.likesuccessofsomeotherjob.
description:
n_retrys:noofretrysonafailure.
term_run_job:thejobwillterminateifitrunsforspecifiedtime.
box_terminator:if1,terminatesboxjobdependsonterm_run_time.

job_terminator:if1,terminateschildjobdependsonterm_run_time.
std_out_file:standardoutputfile(log)forthejob
std_err_file:Errorlogfileifthejobfails
min_run_alarm:ifthejobterminates/completedwithinthattimeitgenerateanalarm
max_run_alarm:ifthejobrunsformorethanthespecifiedtime,itgenerateanalarm
alarm_if_fail:generatesanalarmifthejobfails
profile:thefilewhereyoucankeepallyourvariables(variablenames)
Wedontusealltheaboveoptionsinallthejobs,itdependsontherequirements.
Hereisasamplejobwhichwillverifyaparticularprocessisrunningornot.
/*SAP_UAT_MU03_C*/
insert_job:SAP_UAT_MU03_C
job_type:c
command:/local/SAP/processCheckUAT.sh
machine:MU03UAT
owner:admin@MU03UAT
permission:gx,wx,mx,me
days_of_week:all
start_times:15:00,14:00
description:JobusedforRuntestingofprocess
alarm_if_fail:1
max_exit_success:1
ToInsertanewAutosysjobasJILcode
issuecommand"jil"
bash3.00$jil>>1>
"Thefollowingpromptwillappear"copypastethejilcodeuhavemadeexampleofjilcodebelow.
Attheendthe"C"or"B"determinesifthejobisboxjoborchildjob.
Ifthejilisinsertedproperly,thensuccessfulmessagewillcomeandexitelseitwillshowerror.
ForExample
InsertBoxusingJIL
jil
jil>>01>insert_job:box_TG_cafejob_type:b
jil>>02>owner:autosys
jil>>03>permission:gx,wx,mx
jil>>04>date_conditions:1
jil>>05>days_of_week:sa
jil>>06>start_times:"16:00"
jil>>07>condition:s(box_TG_post_dp_batch)
jil>>08>description:"CAFEExtract"
jil>>09>alarm_if_fail:0
jil>>10>group:TG_cafe
jil>>11>exit
___________________________________________________________________
CAUAJM_I_50204Inserting/UpdatingJob:box_TG_cafe
CAUAJM_I_10122Job'box_TG_cafe'scheduled:01/07/201216:00:00
CAUAJM_I_50205DatabaseChangeWASSuccessful!
__________________________________________________________________
InsertCommandusingJIL
jil
jil>>01>insert_job:job_TG_extract_customer_premise_infojob_type:c
jil>>02>box_name:box_TG_cafe
jil>>03>command:sudouenergyopi$${CISSOURCE}/CAFE/extract_cust_premise_info.sh
jil>>04>machine:TGDB
jil>>05>owner:autosys
jil>>06>permission:gw,gx
jil>>07>condition:s(job_customer_enroll_info)
jil>>08>description:"extract_customer_premise_info"
jil>>09>std_out_file:$${CISAUTOLOGS}/extract_customer_premise_info_out.log
jil>>10>std_err_file:$${CISAUTOLOGS}/extract_customer_premise_info_err.log
jil>>11>alarm_if_fail:0
jil>>12>group:TG_cafe
jil>>13>exit
____________________________________________________________________
CAUAJM_I_50204Inserting/UpdatingJob:job_TG_extract_customer_premise_info
CAUAJM_I_50205DatabaseChangeWASSuccessful!
____________________________________________________________________
InsertFileWatcherusingJIL
jil
jil>>01>insert_job:fw_TG_CW27505_Extract_Premisejob_type:f
jil>>02>box_name:box_TG_cafe
jil>>03>machine:TGFTP
jil>>04>owner:energyop
jil>>05>permission:gw,gx
jil>>06>condition:s(job_TG_extract_customer_premise_info)
jil>>07>description:"CW27505_Extract_Premise_yyyymmdd.dat.gzfilewatcher"
jil>>08>watch_file:$${CISFTPFTP}/CAFE/out/CW27505_Extract_Premise_$${DATEA}.dat.gz

jil>>09>watch_interval:60
jil>>10>alarm_if_fail:0
jil>>11>group:TG_cafe
jil>>12>exit
________________________________________________________________
CAUAJM_I_50204Inserting/UpdatingJob:fw_TG_CW27505_Extract_Premise
CAUAJM_I_50205DatabaseChangeWASSuccessful!
________________________________________________________________
AutosysCommandAutorep
Thecommandreportsinformationaboutajobstatusandalsojobdefination.Italsoreports
informationaboutjoboverridesandglobalvariables.
Syntax:
autorep(Jjob_name/Mmachine_name/Gglobal_name)[sdqoover_num][rrun_num]
TodisplayastatusofAutosysjob.
autorepJ(jobnamehere)
ViewingJILcodeforanyAutosysjob
autorepqJ(jobnamehere)
Toobtaintheinformationofpreviousruns
autorepJ(jobnamehere)r(Noofrunsback)
AutosysCommandsendevent
ThiscommandsendeventstoAutosysforavarietyofpurposes,includingstartingorstopping
autosysjobs,stoppingtheEventprocessor,andputtingajobonhold.Thiscommandisalsousedto
setautosysglobalvariablesorcancelascheduledevent.
Followingaretheexampleofsendeventcommandfrequentlyused.
sendeventEFORCE_STARTJOBj
sendeventESTARTJOBj
sendeventEJOB_ON_HOLDj:Jobnowonhold
sendeventEJOB_OFF_HOLDj:Jobnowreleased.
sendeventECHANGE_STATUSsSUCCESSj:Jobstatuschangedtosuccess
sendeventEJOB_ON_ICEj:Jobnow"onice"
sendeventEJOB_OFF_ICEj:Jobtakenoff"ice".Bewareofdependancies!!
sendeventEKILLJOBj:Job"Killed"
sendeventeCHANGE_STATUSsINACTIVEj
sendeventESTOP_DEMON:Shutdownautosys
sendeventESET_GLOBALGvar_name=/home/dinesh:Tosetvariableinautosys
sendeventisnormallyusedwith"E"&Joption
Jjob_name:Specifiesnameofthejobtoeventshouldbesent.Thisoptionisrequiredforall
eventsexceptSTOP_DEMON,COMMENT,ALARM,orSET_GLOBAL
Eevent:Specifiestheanyoneoffollowingeventstobesent.
STARTJOB

KILLJOB
DELETEJOB
FORCE_STARTJOB
JOB_ON_ICE
JOB_OFF_ICE
JOB_ON_HOLD
JOB_OFF_HOLD
CHANGE_STATUS
STOP_DEMON
CHANGE_PRIORITY
COMMENT
ALARM
SET_GLOBAL
SEND_SIGNAL
OtherAutosysCommands
#Reportsthecurrentstatusofaspecificjob,orthevalueofanAutosysglobalvariable.
autostatusJjob_name[Sinstance]
#Toseejobreport
autorepwj

#Tofinddependentdownstreamjobsandtheirstatus.
job_dependscwj
#LoadautosysJILfile
jil<JIL_source
#Finduniquecommandscurrentlybeingused
autorepJPARTIALJOBNAME%q|grep"command:"|awkF:'{print$2}'|
awk'{print$1}'|sortu>/tmp/cmds.txt
#Forecastreportfromdatetoinfinity:
job_dependstJALLF"mm/dd/yyyy"
#Displayalljobsscheduledtorunbetweenthesetwodates:
job_dependstJALLF:06/01/2008T:06/30/2008
#checkiftheeventprocessorisupandrunning
chk_auto_up
#Displaylistofavailabletimezones:
autotimezonel
#Getversioninformation
autoflagsa
#ViewRemoteAgentlog
autosyslogJjobname
#TostartautosysGUIpanel
autosc&
#Verifybothclient&serverarecorrectlyconfigured
autopingmmachine_name
#Toconvertjobsfromcrontabtoautosysjobs.Belowcommandwillcreateafile1.jilinpresent
directory.
cron2jilffile1
#Prints,adds&deletescustomcalendardefinations
autocal_asc
#Tochange,edit,execsuperusers,changeDBpasswds,changeremoteauthenticationmethod
autosys_secure
[COURTESYAllhelpinghandsandhelpfulwebsitesoninternet.]

AUTOSYSINTERVIEWQUESTIONSANDANSWERSPDF

PostedbyPreviousPapers
Labels:Autosys

PostaComment

NewerPost

Home

OlderPost

Subscribeto:PostComments(Atom)

DistributedbyBuyUnlockediPhone4|MarriedAffairsbyBloggerTemplates2008

BacktoTOP

Das könnte Ihnen auch gefallen