Upload
ca-technologies
View
35
Download
1
Embed Size (px)
Citation preview
World®’16
Hands-OnLab:MasterRESTAPIsinCAApplicationPerformanceManagement
AndreasReiss- Sr.PrincipalEngineeringServicesArchitect- CATechnologies
DO4X153L
DEVOPS– AGILEOPERATIONS
2 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
©2016CA.Allrightsreserved.Alltrademarksreferencedhereinbelongtotheirrespectivecompanies.
Thecontentprovidedinthis CAWorld2016presentationisintendedforinformationalpurposesonlyanddoesnotformanytypeofwarranty. The informationprovidedbyaCApartnerand/orCAcustomerhasnotbeenreviewedforaccuracybyCA.
ForInformationalPurposesOnlyTermsofthisPresentation
3 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Abstract
Enterpriseswithcomplex,large-scaleenvironmentsmanagehundredsofCAApplicationPerformanceManagement(CAAPM)agentsinhighlydynamicenvironmentsandaregreatcandidatesfortheadvantagesofferedbyautomation.TheCAAPMCommandCenterfeatureprovidesnewAPIsthatcanbeeasilyintegratedwithscriptstoconnectwithdeploymenttoolssuchasChef,PuppetandCAReleaseAutomation.LearnhowtoharnesstheseAPIstosimplifythemanagementofCAAPMagents.
AndreasReissCATechnologiesSr.PrincipalEngineeringServicesArchitect
4 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Agenda
MEETJULIE
SETTINGUPTHEAGENTBUNDLES
PREPARINGTHEDEPLOYMENTSCRIPT
DEPLOYMENTOFTARGETPACKAGE
1
2
3
4
5 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MeetJulie
6 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
§ JulieisaQAEngineer
§ Goodknowledgeabouthertestingtools
§ Experienceinscripting
§ Experiencewithhermonitoringtools
MasterRESTAPIsinCAAPMMeetJulie
7 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MasterRESTAPIsinCAAPMArchitectureOptionsinCAAPM
AppAgentsAppAgents
AppAgentsApp
AgentsEPAgents
CommandCenter AppAgents
ControllerCommandCenter
WebView
EnterpriseManager(s)
TeamCenter
8 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MasterRESTAPIsinCAAPMJulie’sMission
CommandCenter
REST
fetchagentbundle
Updated
startargumentsTargetserver
Application
Prototype
ProductionStrategy
CommandCenteragent
image
Targetapp
ANTscript
Deploy
onfilesystem
Pull Deploy
Deploymenttool
(Chef, Puppet,CAReleaseAutomation)
9 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SettingUptheAgentBundles
10 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MasterRESTAPIsinCAAPM
§ Simplewizardofenterprisereadyandvalidatedagentimages
§ SupportforCAAPMMarketplaceplugins
§ Fullagentimagesauditfunctionality
§ Combineswithinstallationinstructions/self-service
CommandCenterIntegration,AgentPackages,EnterpriseReadiness
11 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MasterRESTAPIsinCAAPM
§ LogintoCommandCenterathttps://localhost:8443
§ LoginInformation– Mail:[email protected]– PW:acc
§ Configureanewagentpackage
AgentPackageConfiguration
12 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
PreparingtheDeploymentScript
13 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MasterRESTAPIsinCAAPM
§ Referenceandfulldocumentation– https://docops.ca.com/ca-apm/10-3/en/administrating/ca-apm-command-
center/ca-apm-command-center-api/package-resource
§ Packageresourceoptions:– Getpackageinformation– Downloadpackage– Requestinstallationinstructions(markdownformat)– Informationonbundlesinsidepackages– Bundle/packagecompatibilityinformation
AgentPackageConfiguration
14 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MasterRESTAPIsinCAAPMAgentPackageConfiguration
StepI,GettheAPIToken
CommandCenteragent
image
Targetapp
Powershellscript
Pull Deploy
15 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MasterRESTAPIsinCAAPM
§ CommandCenter/scriptconnectivitytesttoseeconfiguredpackages– LocatethefirstWindowsPowerShellscriptlistPackages.ps1 atC:\ACC-Scripts
onyourtestmachine– OpentheWindowsPowerShellscriptandreplacethetemplatevalue<token>
withyournewcreatedtoken– Openacommandpromptandtype“powershell”– Executethescriptfromthecommandline
AgentPackageConfiguration
16 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MasterRESTAPIsinCAAPM
§ Validatetheresult
§ Identifyyourconfiguredagentpackage
AgentPackageConfiguration
17 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DeploymentofTargetPackage
18 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Download Deploy
Extract
Update
MasterRESTAPIsinCAAPMAgentPackageConfiguration
CommandCenter
Startarguments
Temporarylocationdev
machine
Targetapp
location
FullyautomateddeploymentAutomatedviathird-party
toolormanual
19 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MasterRESTAPIsinCAAPM
§ Thepackageresourcescriptpart
AgentPackageConfiguration
20 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
MasterRESTAPIsinCAAPM
§ CommandCenter/scriptconnectivitytesttoseeconfiguredpackages– LocatetheWindowsPowerShellscript deployAgent.ps1 atC:\ACC-Scriptson
yourtestmachine– Updateyourtoken– Executethescriptfromthecommandline– Validate theextractedagentatC:\ACC-Scripts\target
AgentPackageConfiguration
21 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Thankyou.
Stayconnectedatcommunities.ca.com
22 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
DevOps– AgileOps
FormoreinformationonDevOps– AgileOps,pleasevisit:http://cainc.to/wYXSg6