32
World ® ’1 6 Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle John Rooney, Sr. Principal Consultant, CA Technologies MFX23E MAINFRAME AND WORKLOAD AUTOMATION

Pre-Con Ed: Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle

Embed Size (px)

Citation preview

Page 1: Pre-Con Ed: Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle

World®’16

BestPractices:EnablingCAWorkloadAutomationDEArtifactstoMoveApplicationsThroughtheDevelopmentLifecycleJohnRooney,Sr.PrincipalConsultant,CATechnologies

MFX23E

MAINFRAMEANDWORKLOADAUTOMATION

Page 2: Pre-Con Ed: Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle

2 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

©2016CA.Allrightsreserved.Alltrademarksreferencedhereinbelongtotheirrespectivecompanies.

Thecontentprovidedinthis CAWorld2016presentationisintendedforinformationalpurposesonlyanddoesnotformanytypeofwarranty. The informationprovidedbyaCApartnerand/orCAcustomerhasnotbeenreviewedforaccuracybyCA.

ForInformationalPurposesOnlyTermsofthisPresentation

Page 3: Pre-Con Ed: Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle

3 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Abstract

AsCAWorkloadAutomationDE(CAWLADE)userstakeadvantageofpre-

productionenvironmentstotestouttheirjobflows,ithasbecomemore

importanttobeabletoabletomigratetheCAWLADEartifactsfromDevto

productionwithaslittlemanualinterventionaspossible.Thistalkwilldiscussthe

strategiesandtoolstousetocreateanautomatedprocesstomigrateyourCA

WLADEartifactsthroughthelifecycleprocess.

JohnP.RooneyCATechnologiesSr.PrincipalConsultant

Page 4: Pre-Con Ed: Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle

4 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Agenda

MULTIPLEENVIRONMENTSANDSTANDARDS

USEOFSYMBOLICS

LEVERAGINGJAVASCRIPTS

IMEXUTIL – IMPORT/EXPORTUTILITY

1

2

3

4

Q&A

SUMMARY5

6

Page 5: Pre-Con Ed: Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle

5 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DecisiontouseyourEnterpriseWorkloadproductornot?

§ Istheapplicationbusinesscritical?

§ Doestheapplicationhaveabusinessimpacton:– Revenue– Service– Customer

Yes.ThenyouneedtousetheEnterpriseWorkloadsolution

Page 6: Pre-Con Ed: Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle

6 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

OnceyouhaveaProductionWorkloadinstance,whatisthevalueofaPre-Productioninstance?§ Itisusedtoprotectproduction

– Minimizespotentialforproductionfailureoroutage– Testingofapplicationflowsbeforeproduction– TestingofApplicationIntegrationsinpre-prodenablesbetter

EnterpriseWorkloadusageandvisibility– PartofaDevOpsimplementationstrategy

§ TestingofCAWLADEserverupgradesandfixes

Page 7: Pre-Con Ed: Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle

7 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

PotentialissueswithmultipleCAWLADEinstances

§ Manualefforttomigrateartifactsfromoneinstancetoanother– ManualefforttochangevalueslikeargumentsintheApplicationsand

Jobs– ChangeEventnamesandschedulingfrequencies

§ Hardtokeepartifactsinsyncwithoutnamingstandards

Page 8: Pre-Con Ed: Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle

8 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

PotentialissueswithusingasingleCAWLADEinstances

§ Hardertokeeplogicalseparation

§ Applicationnameshavetobeuniquewithinaninstance– YoucannothavedifferentactiveversionsofthesameApplication

nameatthesametime– Needtochangeapplicationnames(likeaddingasuffix)toenable

multipleapplicationswithinthesameCAWLADEinstance

§ Hardertomaintainsecurityprofiles

§ Namingstandardsareamust!

Page 9: Pre-Con Ed: Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle

9 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ValueofcreatingNamingstandards

§ Easiertocategorizeartifactsforsearchingpurposes

§ Easiertodetermineownershiporresponsibility

§ Easiertocreateandonboardnewapplications

Page 10: Pre-Con Ed: Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle

10 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ValueofcreatingNamingstandards

§ Easiertocreateand/orclonesecurityrules

§ EasiertosubscribeinMonitoring– SubscriptiononlyallowsasingleApplicationFilter

§ EnablemovingapplicationsthroughadevelopmentlifecycleaspartofyourDevops strategy– Minimizeoreliminatemanualchangesbetweenstages

Page 11: Pre-Con Ed: Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle

11 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SuggestionsforCAWLADEArtifactNamingStandards

§ AshortBusinessApplicationnamecanbeveryusefulasaprefixforCAWLADEartifacts

§ Eventnamesshouldbeanindependentnameandnotassociatedwitharealuserid– ExampleDEV,TEST,PROD

§ AnothersuggestionforEventnamesistouseacustomernameordistributioncenternamewhenyouareusinganApplicationasaTemplateforamanytooneexecution– ExampleDC1,DC2,DC3

Page 12: Pre-Con Ed: Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle

12 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CAWLADEArtifactswherethebusinessapplicationnamecanbeusedasaprefix§ Event– EVENT_PREFIX. prefix_APPLICATION_NAME

§ Application– prefix_APPLICATION_NAME– RuntimenamecanoverridethesavedApplicationname

§ Resources- prefix_D/R/T_RESOURCE_NAME

§ SecurityGroup- prefix_GROUP

§ GlobalVariableContext

Page 13: Pre-Con Ed: Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle

13 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

CAWLADEArtifactswherethebusinessapplicationnamemakessenseasaprefixfornon-commonartifacts§ Alerts- prefix_ALERT_NAME

§ JavaScripts - prefix_JAVASCRIPT_NAME

§ CalendarSpecialDays- prefix_SPECIAL_DAY

§ AgentGroup- prefix_Agent_group

Page 14: Pre-Con Ed: Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle

14 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SampleSecuritysettingforAppsdev inPre-prod

§ DenySUBSCRIBEALL– Helpswithperformance

§ AllowanyEventPrefix– Lessmaintenancebyallowing

userstousetheirownuseridastheprefixforevents

Page 15: Pre-Con Ed: Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle

15 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

StaticVariables– ESPprefixedJavaScriptexecutedatEventLevel(maynotbenecessary)

§ Environmentname/prefix

§ Hostname/Port

§ Serverhomedirectory

§ CAWLADEServerID

§ Database/FTPUserids

§ Symlib JavaScriptforDefaultSymbolics

Page 16: Pre-Con Ed: Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle

16 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DynamicVariables– APPLandWOBprefixedJavaScriptexecutedattheApplicationorJobLevel

§ Dates

§ Agents

§ Directories/paths

§ Databaseservers

§ Emailids

§ Times/SLAs/Criticaljobs

§ Notifications

§ Jobname/qualifier

Page 17: Pre-Con Ed: Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle

17 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SampleJavaScripttocreatedatesymbolics invariousformats

Page 18: Pre-Con Ed: Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle

18 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SampleDefaultGlobalVariableContext§ UsingaJavaScriptorGlobalVariableContextenablesbeing

abletochangeallinstancesatonetime– LeavetheApplicationsalone– Couldhaveseparationofdutiesforupdatingvalues

Page 19: Pre-Con Ed: Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle

19 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

WaystominimizeoreliminatechangeswhilemovingthroughthelifecycleusingJavaScripts§ DefinedefaultcontextwithstaticvariablesdefinedintheEvent

– MaynotneedtomovetheEventthoughthelifecycle

§ DefinedynamicvariablesinaJavaScriptdefinedintheApplicationatEventTriggertime– Datesymbolics forpast,presentandfuturedates

§ EmbedJavascripts inthejobdefinition– Forvaluesthatneedtobesetjustbeforethejobisexecuted

§ InvokeRepositorybasedJavaScripts forgenericfunctions

Page 20: Pre-Con Ed: Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle

20 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Waystominimizeoreliminatechangeswhilemovingthroughthelifecycle§ TrytomakeitsothatonlytheApplicationneedstobe

migrated– UselinksforAPPLSTARTandAPPLENDasfunctionstoexecute

JavaScripts toset-upotherjobsandtokeeptheApplicationasself-sufficientaspossible

§ %IFfunctioninvariousjobdefinitionfields– Canenabledecisionmakingforaparticularjobfield

Page 21: Pre-Con Ed: Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle

21 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Waystominimizeoreliminatechangeswhilemovingthroughthelifecycle§ %IFfunctioninvariousjobdefinitionfields

§ Createapplicationstandardsfordeployingapplications– Standarddirectorynamesinpre-prodandprodwillminimizetheneed

forcreatingexceptionsymbolics

§ UnixandLinuxareinterchangeablejobtypes– CantestwithaUnixagentbutactuallyuseLinuxinproduction

§ Useagentgroupingoragentalias– Randomorroundrobin– Don’thavetospecifythe“real”agentname

Page 22: Pre-Con Ed: Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle

22 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

LeveragingAgentAlias

§ DonotneedtodefinetherealagentnameintheCAWLADEtopologytouseaparticularagent

§ Anagentaliascanbeset-upforanyreasonandforanypurpose– CApre-salesroutinelyusesaliasestomimiccustomer’sagents– Multiplealiasescanbeset-uponanagent

§ Coulduseproductionagentnamesforpre-prodagents

§ Whenretiringanagent,canbeaneasywaytoswitchagentswithoutchangingjobdefinitionsimmediately

Page 23: Pre-Con Ed: Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle

23 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

IMEXUTIl – Import/ExportUtility

§ Usefulasawayofexportingallartifactsasanotherwayofbackinguptheinstance– Restoreanindividualartifactwithouthavingtorestoreawholedatabase

§ Createasoftwarechangeprocessfromapre-prodinstancetoaproductioninstance

§ Caution:ifCAWLADEinstancesaredifferentreleases,maynotbeabletobeused– Releasedependent(doesnotapplytoSPreleases)

Page 24: Pre-Con Ed: Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle

24 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ExportinganApplicationTriggerandPassApplicationnameasUser1forexecutionfromexternalChangeManagementproduct

Page 25: Pre-Con Ed: Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle

25 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ImportinganApplicationTriggerandPassApplicationnameasUser1forexecutionfromexternalChangeManagementproduct

Page 26: Pre-Con Ed: Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle

26 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ApplicationParameterscanbeusedwithaTemplateApplication§ Canexecutedynamicallybywebservices§ Canexecuteanapplicationandpass

manymorethanfourparameterstoit

Page 27: Pre-Con Ed: Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle

27 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ExecutingaTemplateApplicationusingWebServices

Page 28: Pre-Con Ed: Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle

28 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Summary

§ SomeupfrontnamingconventionscanhelpoutlaterwhenplanningforApplicationlifecyclemanagement

§ LeverageJavaScripts andGlobalvariablesforCAWLADEinstancerelatedsymbolics

§ IMEXUTILcanbeveryusefulformanagingtheactualmovementofartifactsfrompre-prodtoprod

Page 29: Pre-Con Ed: Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle

29 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

RecommendedSessionsSESSION# TITLE DATE/TIME

MFX37EYouVoiceCounts!CustomerDrivenRequirementsforCAWorkloadAutomation

11/15/2016at1:00pm

BanyanA/B

MFX141ELLab:IncreasedAgilityandFlexibilitywithWebServicesforCAWLADEandESP

11/15/2016at9:30am

SouthSeasD

MFX30S CustomerUseCase:RealWorldAutomationinRetail11/16/2016at3:45pm

BanyanA/B

MFX136SDeliveringCAWorkloadAutomationfromaSaaSplatform

11/17/2016at4:30pm

JasmineB

Page 30: Pre-Con Ed: Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle

30 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MustSeeDemos

ModernWorkloadAutomation

CAWLADEMFandWorkloadAutomation

SeamlessApplicationAutomationAgents&AdvancedIntegrationsMFandWorkloadAutomation

CAConversionasaService

CAWorkloadAutomationMFandWorkloadAutomation

Innovations:CrossEnterpriseWorkloadAutomationCAWLAAE&DEMFandWorkloadAutomation

Page 31: Pre-Con Ed: Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle

31 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Questions?

Page 32: Pre-Con Ed: Best Practices: Enabling CA Workload Automation DE Artifacts to Move Applications Through the Development Lifecycle

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

MainframeandWorkloadAutomation

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