290 likes | 466 Views
Jakob Gottlieb Svendsen. System Center Orchestrator 2012 Runbook Design 101. Who am I. Jakob Gottlieb Svendsen - @ JakobGSvendsen Profession Chief Developer, Coretech A/S, System Center Gold Partner Titles System Center Cloud and Data Center Management MVP Windows Azure Pack / SMA
E N D
Jakob Gottlieb Svendsen • System Center Orchestrator 2012 Runbook Design 101
Who am I • Jakob Gottlieb Svendsen - @JakobGSvendsen • Profession • Chief Developer, Coretech A/S, System Center Gold Partner • Titles • System Center Cloud and Data Center Management MVP • Windows Azure Pack / SMA • Orchestrator + Extensions for SCSM + SCOM • VBScript / PowerShell / VB.NET / C#.NET • Communities • Co-Founder of the Danish PowerShell User Group (www.psug.dk) • Moderator on Microsoft TechNet Forums • Author • Service Manager 2012 Unleashed (contributing author – Release June 2014) • Mastering System Center Orchestrator 2012 – 3 day workshop • Windows Azure Pack - SMA Workshop/course (in development) • Advanced SCOM management pack design/development Workshop/course (in development)
Agenda • Introduction to Orchestrator • Runbook Planning • Runbook Design • Best Practices • Logging • Stage Tracking
Orchestrator Concepts Databus Activities Runbooks Collection of Activities Executes a task Published Data from Activities UpdateService Request Get Data Source Create Recovery Point Run .Net Script Invoke Web Services Send e-mail Create Checkpoint Create Incident Start Maint Mode Shut Down VM Check Schedule Update on success E-mail on error Return Data Compare Values Query Database Clone Linux VM
Integration Packs • Solution or Application specific • Provide ready-built defined activities • Packaged and Deployed • Brings version control to activities • Microsoft and Partner provided • All major enterprise management products • HP, IBM, CA, BMC, EMC • Build your own with the Integration Toolkit! • Leverage the Community ecosystem
Basic Example - Deploy Web site Create Folder Copy Content Create Web Site Test Web Site
Demo Basic runbook
When to Automate Activities ? Time Consuming Easy to Automate Occurs Often Visible to Customers High Risk Breaches SLA Often
Identify the best processes • Is the process optimized and standardized? • Is SCO the right tool? • Development Cost vs. Manual Process • Ports & Permissions?
Scenario 1 – Basic Task Automate “manual” task 1 time every month Takes 20 minutes to do 1 week to build runbook 20 minutes x 12 months = 4 hours per year 40 hours / 4 hours = 10 years
Scenario 2 – Incident Remediation Automate “Service Stopped” alerts 1 alert every day 1st line receives and forward (5 mins) 2nd line RDP and fix (15 mins) 1 week to build runbook 20 minutes x 365 days = 121 hours per year 40 hours / 20 minutes = 120 days = 4 months
Customer Request / Dream Invent “Skynet” The runbook will monitor this system for new objects, then it will… and if it is like that it will… then it will integrate with… and pass data into… …We don’t think it will take more than 14-18 months to build the solution. …By the way, we have never used Orchestrator before
Demo Design Guide – Best Practice
Design Guide Folder and runbook structure Naming convention Variables Library of standard runbooks Rename activities Use link labels & colors Success Warning / Failed “Could be” Left to right
Demo Watch Out!
Watch out! • Successmight not equal to your expectation • No Loops in Links – Only on activity level • Multiple Results (Multi-value published data) • Library runbooks might be in use!
Logging Don’ts Do’s Custom Database IP for Standard Logging (codeplex) SCSM – Action Log Make your own IP using the Wizard • Text File • Event log (except SCOM monitors) • Platform Event • Built-in “Activity Specific Logging”
Demo Logging!
BuildModules • Doesonetask • Easier to develop and test • Can beused in multiple scenarios • Do not usewhen handling a lot of executions • Adds a delay of a couple of seconds per execution.
Demo Modules
Fail-Over • Infrastructure • Multiple Runbook Servers • Runbook • Design to support failover • Resume at the correct stage (staging)
State Tracking • Integration Pack for Standard Logging • Custom Database • Service Manager
Demo State Tracking
Windows Server 2012 R2 Support Service Management Automation Windows Azure Pack Runbook Workers System Center Integration Pack for Microsoft SharePoint System Center Orchestrator R2
Summary • Start small / simple • Planning makes development much faster! • Use Service Manager for staging support