Hands-On Lab: Master REST APIs in CA Application Performance Management

22
World ® ’1 6 Hands-On Lab: Master REST APIs in CA Application Performance Management Andreas Reiss - Sr. Principal Engineering Services Architect - CA Technologies DO4X153L DEVOPS – AGILE OPERATIONS

Transcript of Hands-On Lab: Master REST APIs in CA Application Performance Management

Page 1: Hands-On Lab: Master REST APIs in CA Application Performance Management

World®’16

Hands-OnLab:MasterRESTAPIsinCAApplicationPerformanceManagement

AndreasReiss- Sr.PrincipalEngineeringServicesArchitect- CATechnologies

DO4X153L

DEVOPS– AGILEOPERATIONS

Page 2: Hands-On Lab: Master REST APIs in CA Application Performance Management

2 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

©2016CA.Allrightsreserved.Alltrademarksreferencedhereinbelongtotheirrespectivecompanies.

Thecontentprovidedinthis CAWorld2016presentationisintendedforinformationalpurposesonlyanddoesnotformanytypeofwarranty. The informationprovidedbyaCApartnerand/orCAcustomerhasnotbeenreviewedforaccuracybyCA.

ForInformationalPurposesOnlyTermsofthisPresentation

Page 3: Hands-On Lab: Master REST APIs in CA Application Performance Management

3 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Abstract

Enterpriseswithcomplex,large-scaleenvironmentsmanagehundredsofCAApplicationPerformanceManagement(CAAPM)agentsinhighlydynamicenvironmentsandaregreatcandidatesfortheadvantagesofferedbyautomation.TheCAAPMCommandCenterfeatureprovidesnewAPIsthatcanbeeasilyintegratedwithscriptstoconnectwithdeploymenttoolssuchasChef,PuppetandCAReleaseAutomation.LearnhowtoharnesstheseAPIstosimplifythemanagementofCAAPMagents.

AndreasReissCATechnologiesSr.PrincipalEngineeringServicesArchitect

Page 4: Hands-On Lab: Master REST APIs in CA Application Performance Management

4 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Agenda

MEETJULIE

SETTINGUPTHEAGENTBUNDLES

PREPARINGTHEDEPLOYMENTSCRIPT

DEPLOYMENTOFTARGETPACKAGE

1

2

3

4

Page 5: Hands-On Lab: Master REST APIs in CA Application Performance Management

5 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MeetJulie

Page 6: Hands-On Lab: Master REST APIs in CA Application Performance Management

6 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

§ JulieisaQAEngineer

§ Goodknowledgeabouthertestingtools

§ Experienceinscripting

§ Experiencewithhermonitoringtools

MasterRESTAPIsinCAAPMMeetJulie

Page 7: Hands-On Lab: Master REST APIs in CA Application Performance Management

7 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MasterRESTAPIsinCAAPMArchitectureOptionsinCAAPM

AppAgentsAppAgents

AppAgentsApp

AgentsEPAgents

CommandCenter AppAgents

ControllerCommandCenter

WebView

EnterpriseManager(s)

TeamCenter

Page 8: Hands-On Lab: Master REST APIs in CA Application Performance Management

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)

Page 9: Hands-On Lab: Master REST APIs in CA Application Performance Management

9 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SettingUptheAgentBundles

Page 10: Hands-On Lab: Master REST APIs in CA Application Performance Management

10 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MasterRESTAPIsinCAAPM

§ Simplewizardofenterprisereadyandvalidatedagentimages

§ SupportforCAAPMMarketplaceplugins

§ Fullagentimagesauditfunctionality

§ Combineswithinstallationinstructions/self-service

CommandCenterIntegration,AgentPackages,EnterpriseReadiness

Page 11: Hands-On Lab: Master REST APIs in CA Application Performance Management

11 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MasterRESTAPIsinCAAPM

§ LogintoCommandCenterathttps://localhost:8443

§ LoginInformation– Mail:[email protected]– PW:acc

§ Configureanewagentpackage

AgentPackageConfiguration

Page 12: Hands-On Lab: Master REST APIs in CA Application Performance Management

12 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

PreparingtheDeploymentScript

Page 13: Hands-On Lab: Master REST APIs in CA Application Performance Management

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

Page 14: Hands-On Lab: Master REST APIs in CA Application Performance Management

14 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MasterRESTAPIsinCAAPMAgentPackageConfiguration

StepI,GettheAPIToken

CommandCenteragent

image

Targetapp

Powershellscript

Pull Deploy

Page 15: Hands-On Lab: Master REST APIs in CA Application Performance Management

15 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MasterRESTAPIsinCAAPM

§ CommandCenter/scriptconnectivitytesttoseeconfiguredpackages– LocatethefirstWindowsPowerShellscriptlistPackages.ps1 atC:\ACC-Scripts

onyourtestmachine– OpentheWindowsPowerShellscriptandreplacethetemplatevalue<token>

withyournewcreatedtoken– Openacommandpromptandtype“powershell”– Executethescriptfromthecommandline

AgentPackageConfiguration

Page 16: Hands-On Lab: Master REST APIs in CA Application Performance Management

16 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MasterRESTAPIsinCAAPM

§ Validatetheresult

§ Identifyyourconfiguredagentpackage

AgentPackageConfiguration

Page 17: Hands-On Lab: Master REST APIs in CA Application Performance Management

17 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DeploymentofTargetPackage

Page 18: Hands-On Lab: Master REST APIs in CA Application Performance Management

18 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Download Deploy

Extract

Update

MasterRESTAPIsinCAAPMAgentPackageConfiguration

CommandCenter

Startarguments

Temporarylocationdev

machine

Targetapp

location

FullyautomateddeploymentAutomatedviathird-party

toolormanual

Page 19: Hands-On Lab: Master REST APIs in CA Application Performance Management

19 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MasterRESTAPIsinCAAPM

§ Thepackageresourcescriptpart

AgentPackageConfiguration

Page 20: Hands-On Lab: Master REST APIs in CA Application Performance Management

20 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

MasterRESTAPIsinCAAPM

§ CommandCenter/scriptconnectivitytesttoseeconfiguredpackages– LocatetheWindowsPowerShellscript deployAgent.ps1 atC:\ACC-Scriptson

yourtestmachine– Updateyourtoken– Executethescriptfromthecommandline– Validate theextractedagentatC:\ACC-Scripts\target

AgentPackageConfiguration

Page 21: Hands-On Lab: Master REST APIs in CA Application Performance Management

21 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Thankyou.

Stayconnectedatcommunities.ca.com

Page 22: Hands-On Lab: Master REST APIs in CA Application Performance Management

22 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

DevOps– AgileOps

FormoreinformationonDevOps– AgileOps,pleasevisit:http://cainc.to/wYXSg6