pre-con ed: ca workload automation ae: tips and tricks

37
World ® ’1 6 CA Workload Automation AE: Tips and Tricks Mike Woods, CA Technologies, Principal Engineering Services Architect MFX09E MAINFRAME AND WORKLOAD AUTOMATION

Upload: ca-technologies

Post on 15-Apr-2017

100 views

Category:

Technology


6 download

TRANSCRIPT

Page 1: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

World®’16

CAWorkloadAutomationAE:TipsandTricksMikeWoods,CATechnologies,PrincipalEngineeringServicesArchitect

MFX09E

MAINFRAMEANDWORKLOADAUTOMATION

Page 2: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

2 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

©2016CA.Allrightsreserved.Alltrademarksreferencedhereinbelongtotheirrespectivecompanies.

Thecontentprovidedinthis CAWorld2016presentationisintendedforinformationalpurposesonlyanddoesnotformanytypeofwarranty. The informationprovidedbyaCApartnerand/orCAcustomerhasnotbeenreviewedforaccuracybyCA.

ForInformationalPurposesOnlyTermsofthisPresentation

Page 3: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

3 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Abstract

ThissessionwillcovermanytipsandtricksgatheredfromCAexpertsandcustomers.Thepresentationwillcoverdaytodayusageincludingschedulingandmonitoring.

MichaelWoodsCATechnologiesPrincipalEngineeringServicesArchitect

Page 4: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

4 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Agenda

CAWORKLOADAUTOMATIONAE

LOADBALANCING

WORKLOADCONTROLCENTER

Q&A

1

2

3

4

Page 5: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

5 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CAWorkloadAutomationAE

§ PassingjobattributeasenvironmentvariablesThissettingsmakessomejobattributesavailableasenvironmentvariables– SetJobAttributeEnvironmentals=0|10Specifiesthattheschedulerdoesnotautomaticallysetthesupportedjobattributesasenvironmentvariables

1Specifiesthattheschedulerdoes automaticallysetthesupportedjobattributesasenvironmentvariables

ConfigurationSettings

Page 6: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

6 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CAWorkloadAutomationAE

§ PassingjobattributeasenvironmentvariablesThissettingsmakessomejobattributesavailableasenvironmentvariables

__job_name=job_name

__box_name=box_name

__machine=machine

__run_machine=run_machine

__max_exit_success=max_exit_success

ConfigurationSettings

Page 7: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

7 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CAWorkloadAutomationAE

§ Passingenvironmentvariablesasjobattributes– Jobattributeenvvars addedin11.3release– Onlyapplicablefor11.3+agents– Envvar attributecancontainupto255charactersperentryI.Eenvvars:MIKE=WOODS– Overrideswhatisinjobprofile– Maybeusefulfortestingchangeswithoutchangingscripts– Canbeusedtoswitchpwd

Page 8: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

8 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CAWorkloadAutomationAE

§ Failbacksimplification– PrimaryFailbackMode settingsettings0|1|20defaultsetting,muststopschedulertoregainHAstatus1Theschedulerrunsdormantlikeashadowuntilthenextfailoverand

takesoverprocessingevents2Theprimarybecomestheprimaryagainwithoutshuttingtheshadow

downfirst

§ Note– ADBfailoverwillstillrequireanautobcptosynchronizethedatabaseagain

ConfigurationSettings

Page 9: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

9 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CAWorkloadAutomationAE

§ ManagerHostAlias– Isusedtodefinehowtheagentdefinesthemanagerhostname

communication.manageraddress_1=SWATRH5x64-3– Helpsensureagentsresolvenametocommunicateback– Onlyapplicabletothescheduler

§ AutoServerAliasId– SameideaasManagerHostAlias

ConfigurationSettings

Page 10: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

10 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CAWorkloadAutomationAE

§ AppendMessages– AppendEventMessageText settingvalues0|1– 0messagesaredisplayedasnormal– 1Specifiesthattheeventmessagetextiswrittenonthesameline

afterthekeywordTEXT.– Createsalongermessagetomakelogscrapingmoreeffective

ConfigurationSettings

Page 11: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

11 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CAWorkloadAutomationAE

§ AUTOSYS_LOG– Issetontheclientenvironment– Whenset,createsacopyoftheoutputintothe$AUTOUSER/outdir

§ I.E.autorep.31150.out§ Intheaboveexample,31150isthepid oftheclirequest

– WhencombinedwithISDBGACTIVitgivestheadditionaloutputintothefileaswell.Thiscreatesasingleplacetocollectthedatawhentryingtotroubleshootaproblem.

EnvironmentVariables

Page 12: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

12 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CAWorkloadAutomationAE

§ RESTRICT_FORCE_STARTJOB

§ IssetontheschedulerenvironmentSpecifiesiftheschedulerrestrictsyoufromrunningmultiplejobinstanceswhilethejobisinaRUNNINGstate.CAUAJM_I_60000Job(test)isalreadyrunning.FORCE_STARTJOBhasnoeffect.

EnvironmentVariables

Page 13: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

13 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CAWorkloadAutomationAE

§ AfteraDBfailover,theyneedtoberesynced

§ Oracleprovidesdatapumputilitythatismoreefficientthatautobcp– CreateLinkstoeachdatabaseasdocumentedintheAdminguide– Testlinks– UseautobcpORAdp.plwhendoingaresynch

DBFailover

Page 14: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

14 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

LoadBalancing

§ UsingJobClass– Usedtodefinehowmanyconcurrentjobscanberunningbeforequeing– AgentallowsyoutoconfigurecustomjobclassesInitiators.class_n=jobclass,number_of_initiatorsExampletocreateanadditionaljobclassnamedDBthatallows10jobsofthatclasstorunatanygiventime.Initiators.class_1=DEFAULT,1000Initiators.class_2=DB,10

configuration

Page 15: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

15 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

LoadBalancing

§ UsingJobClass– Job_class jobattributeusedtospecifywhichclassitshoulduseExample:insert_job:dbtrig1job_type:DBTRIGJob_class:DBmachine:DB_agenttablename:storesconnect_string:"jdbc:sqlserver://myhost:1433;DatabaseName=pubs"

configuration

Page 16: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

16 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

LoadBalancingconfiguration

§ UsingJobClass– Automatiaclly assignajobtoaclass– initiators.afmjobclassmap_n=verb,subverb,jobclass– FromReceiver.log/WAAE_WF0.1/MAINRUNSQOOPJOB– Updateagentparm.txtinitiators.class_2=Hadoop,10initiators.afmjobclassmap_1=RUN,SQOOPJOB,Hadoop– Verify7433.843957_1/WAAE_WF0.1/MAINacquiredinitiatorofclassHADOOP.9left

Page 17: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

17 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WorkloadControlCenter

§ MyProfile– Userscansetpersonalpreferences

§ TimeZone– Displaystimestampsinselectedtimezone§ Date/timeformat- selecttheformatforthedateandtimebasedoncountrypreferences

§ Type– choosetheformatofhowmuchinformationisdisplayed– I.E.Short=10/2/161:54AM

– I.EFull=Sunday,October2,20161:54:26AMGMT

– I.E.inTurkish=02Ekim 2016Pazar 01:54:35GMT

Personalcustomizations

Page 18: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

18 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WorkloadControlCenter

§ QuickEditandApplicationEditor– Userscandecidewhatjobtypestheywouldliketoseeonpalate.

§ Dashboard– Candisplaywidgetstheyhaveaccessto– Canrearrangethem– Modifythesize– Numberofrowsdisplays– Auto-refresh

Personalcustomizations

Page 19: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

19 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WorkloadControlCenter

§ Monitoring– Modifythesize– Numberofrowsdisplays– Auto-refresh

Personalcustomizations

Page 20: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

20 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WorkloadControlCenter

§ Displaysjobsina‘filedirectory’style

§ Boxesareexpandedtoshowjobswithinandnestedaredisplayedaswell.

§ Jobselectedinflowviewishighlightedintreeview

§ Jobselectedintreeviewisbroughtintofocusonflowview

TreeViewinMonitoring

Page 21: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

21 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WorkloadControlCenterUsingTree-View

Page 22: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

22 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WorkloadControlCenter

§ Increaseproductivityandhelpensurestandardsareatleastdisplayed

§ Usethebatchinterfacetocreate

§ Canbeglobaloruserspecific

JobTemplates

Page 23: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

23 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WorkloadControlCenter

CreatesjobtemplatestobeusedbothinQuickEditandApplicationEditor

§ Globaltemplateforallusers,templatesonlyforspecificusesSyntax:job_template -u,--user<user>-p,--password<password><-g,--global|-f,--for-user<user>><-l,--list|-r,--remove<template-name>|-i,--import<template-name><file-name>|-export<template-name><file-name>[-o,--overwrite]

Page 24: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

24 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WorkloadControlCenter

1. Useautorep toprepareJILdefinitions2. ModifyJILfiletoprepareitforimportasatemplate3. Createaglobaltemplateforallusers4. Createatemplateforejmcommanderuseronly5. Listtheglobaltemplatesavailable6. Listthetemplatesavailableforejmcommanderuseronly7. LogintoQuickEditorasejmcommanderandusethenewtemplates

Page 25: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

25 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WorkloadControlCenterPrepareJILDefinitions

Note1:AfterJILfilesareready,copythemtoacomputerrunningWCC.

Note2:Itispossibletohaveonly1jobdefinitionfor1filetoimportastemplate.

§ Useautorep outputtocreateaJILfile:autorep–q–jJOBNAME>filename.jil

Page 26: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

26 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WorkloadControlCenterPrepareJILDefinitions Continued

§ Deleteinsert_job:JOBNAME§ Incaseyouwanttousejobnameasapartoftemplate:

– renameinsert_job:JOBNAMEtojob_name:JOBNAME– putjob_type:TYPEonanewline

§ RepeatthesameforbothJILfiles

Page 27: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

27 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WorkloadControlCenterImportasaGlobalTemplate

§ Importglobaltemplate:job_template.bat-uejmcommander-pejmcommander-g-iglobalTemplatec:\temp\global_template.jil

Page 28: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

28 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WorkloadControlCenterImportasaUserTemplate

§ Importusertemplate:job_template.bat-uejmcommander-pejmcommander–fejmcommander-iuserTemplatec:\temp\user_template.jil

Page 29: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

29 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

§ Listtheglobaltemplatesavailable:job_template.bat-uejmcommander-pejmcommander–l-g

§ Listtheusertemplatesavailable:job_template.bat-uejmcommander-pejmcommander–l-f

WorkloadControlCenterListtheTemplates

Page 30: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

30 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Page 31: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

31 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WorkloadControlCenter

§ Logonagainafteraddingadd/modifyatemplateusingjob_template CLI

§ Logonagainaftermodifyingfilterjobtypesfilterusingfilter_jobtypes CLI

§ LogonagaintoapplyneworupdatedEEMpolicies

Page 32: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

32 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Questions?

Page 33: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

33 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

RecommendedSessionsSESSION# TITLE DATE/TIME

MFX12ECriticalPathAnalysiswithCAWorkloadAutomation(AE)iDash– Overview

11/14/2016at10:00amBanyanA/B

MFX20EBeyondtheCAWorkloadAutomationAECLI– LeveragingCAWLAAEWebServices

11/14/2016at5:00pmJasmineC

MFX27E PlanningDisasterRecoveryforCAWorkloadAutomationAE11/15/2016at9:00amJasmineC

MFX122S VisionandRoadmap:CAWorkloadAutomationAE11/16/2016at12:45pmBanyanA/B

Page 34: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

You Are Cordially Invited……..CA Workload Automation & CA Process Automation

Where? South Seas E When? Tuesday, November 15th

Time? 4:30pm – 6:00pm

Customer & Partner Reception

Page 35: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

35 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MustSeeDemos

CAConversionService

CAWorkloadAutomationMFandWorkloadAutomation

SeamlessApplicationAutomationAgents&AdvancedIntegrationsMFandWorkloadAutomation

AdvancedWorkloadAnalyticsCAWorkloadAutomationiDashMFandWorkloadAutomation

Innovations:CrossEnterpriseWorkloadAutomationCAWLAAE&DEMFandWorkloadAutomation

Page 36: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

@CAWORLD#CAWORLD ©2016CA.AllRIGHTSRESERVED.36 @CAWORLD#CAWORLD

MainframeandWorkloadAutomation

FormoreinformationonMainframeandWorkloadAutomation,pleasevisit:http://cainc.to/9GQ2JI

Page 37: Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

37 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Thankyou

Stayconnectedatcommunities.ca.com