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

Post on 15-Apr-2017

98 views 6 download

Transcript of Pre-Con Ed: CA Workload Automation AE: Tips and Tricks

World®’16

CAWorkloadAutomationAE:TipsandTricksMikeWoods,CATechnologies,PrincipalEngineeringServicesArchitect

MFX09E

MAINFRAMEANDWORKLOADAUTOMATION

2 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

©2016CA.Allrightsreserved.Alltrademarksreferencedhereinbelongtotheirrespectivecompanies.

Thecontentprovidedinthis CAWorld2016presentationisintendedforinformationalpurposesonlyanddoesnotformanytypeofwarranty. The informationprovidedbyaCApartnerand/orCAcustomerhasnotbeenreviewedforaccuracybyCA.

ForInformationalPurposesOnlyTermsofthisPresentation

3 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Abstract

ThissessionwillcovermanytipsandtricksgatheredfromCAexpertsandcustomers.Thepresentationwillcoverdaytodayusageincludingschedulingandmonitoring.

MichaelWoodsCATechnologiesPrincipalEngineeringServicesArchitect

4 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Agenda

CAWORKLOADAUTOMATIONAE

LOADBALANCING

WORKLOADCONTROLCENTER

Q&A

1

2

3

4

5 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CAWorkloadAutomationAE

§ PassingjobattributeasenvironmentvariablesThissettingsmakessomejobattributesavailableasenvironmentvariables– SetJobAttributeEnvironmentals=0|10Specifiesthattheschedulerdoesnotautomaticallysetthesupportedjobattributesasenvironmentvariables

1Specifiesthattheschedulerdoes automaticallysetthesupportedjobattributesasenvironmentvariables

ConfigurationSettings

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

7 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CAWorkloadAutomationAE

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

8 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CAWorkloadAutomationAE

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

takesoverprocessingevents2Theprimarybecomestheprimaryagainwithoutshuttingtheshadow

downfirst

§ Note– ADBfailoverwillstillrequireanautobcptosynchronizethedatabaseagain

ConfigurationSettings

9 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CAWorkloadAutomationAE

§ ManagerHostAlias– Isusedtodefinehowtheagentdefinesthemanagerhostname

communication.manageraddress_1=SWATRH5x64-3– Helpsensureagentsresolvenametocommunicateback– Onlyapplicabletothescheduler

§ AutoServerAliasId– SameideaasManagerHostAlias

ConfigurationSettings

10 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CAWorkloadAutomationAE

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

afterthekeywordTEXT.– Createsalongermessagetomakelogscrapingmoreeffective

ConfigurationSettings

11 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CAWorkloadAutomationAE

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

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

– WhencombinedwithISDBGACTIVitgivestheadditionaloutputintothefileaswell.Thiscreatesasingleplacetocollectthedatawhentryingtotroubleshootaproblem.

EnvironmentVariables

12 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CAWorkloadAutomationAE

§ RESTRICT_FORCE_STARTJOB

§ IssetontheschedulerenvironmentSpecifiesiftheschedulerrestrictsyoufromrunningmultiplejobinstanceswhilethejobisinaRUNNINGstate.CAUAJM_I_60000Job(test)isalreadyrunning.FORCE_STARTJOBhasnoeffect.

EnvironmentVariables

13 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CAWorkloadAutomationAE

§ AfteraDBfailover,theyneedtoberesynced

§ Oracleprovidesdatapumputilitythatismoreefficientthatautobcp– CreateLinkstoeachdatabaseasdocumentedintheAdminguide– Testlinks– UseautobcpORAdp.plwhendoingaresynch

DBFailover

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

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

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

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

18 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WorkloadControlCenter

§ QuickEditandApplicationEditor– Userscandecidewhatjobtypestheywouldliketoseeonpalate.

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

Personalcustomizations

19 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WorkloadControlCenter

§ Monitoring– Modifythesize– Numberofrowsdisplays– Auto-refresh

Personalcustomizations

20 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WorkloadControlCenter

§ Displaysjobsina‘filedirectory’style

§ Boxesareexpandedtoshowjobswithinandnestedaredisplayedaswell.

§ Jobselectedinflowviewishighlightedintreeview

§ Jobselectedintreeviewisbroughtintofocusonflowview

TreeViewinMonitoring

21 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WorkloadControlCenterUsingTree-View

22 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WorkloadControlCenter

§ Increaseproductivityandhelpensurestandardsareatleastdisplayed

§ Usethebatchinterfacetocreate

§ Canbeglobaloruserspecific

JobTemplates

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]

24 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WorkloadControlCenter

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

25 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WorkloadControlCenterPrepareJILDefinitions

Note1:AfterJILfilesareready,copythemtoacomputerrunningWCC.

Note2:Itispossibletohaveonly1jobdefinitionfor1filetoimportastemplate.

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

26 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WorkloadControlCenterPrepareJILDefinitions Continued

§ Deleteinsert_job:JOBNAME§ Incaseyouwanttousejobnameasapartoftemplate:

– renameinsert_job:JOBNAMEtojob_name:JOBNAME– putjob_type:TYPEonanewline

§ RepeatthesameforbothJILfiles

27 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WorkloadControlCenterImportasaGlobalTemplate

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

28 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WorkloadControlCenterImportasaUserTemplate

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

29 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

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

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

WorkloadControlCenterListtheTemplates

30 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

31 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WorkloadControlCenter

§ Logonagainafteraddingadd/modifyatemplateusingjob_template CLI

§ Logonagainaftermodifyingfilterjobtypesfilterusingfilter_jobtypes CLI

§ LogonagaintoapplyneworupdatedEEMpolicies

32 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Questions?

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

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

35 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MustSeeDemos

CAConversionService

CAWorkloadAutomationMFandWorkloadAutomation

SeamlessApplicationAutomationAgents&AdvancedIntegrationsMFandWorkloadAutomation

AdvancedWorkloadAnalyticsCAWorkloadAutomationiDashMFandWorkloadAutomation

Innovations:CrossEnterpriseWorkloadAutomationCAWLAAE&DEMFandWorkloadAutomation

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

MainframeandWorkloadAutomation

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

37 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Thankyou

Stayconnectedatcommunities.ca.com