Logging! - Coretech Blog

Report
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
Introduction
Orchestrator Concepts
Activities
Runbooks
Databus
Executes a task
Collection of Activities
Published Data from Activities
Invoke Web
Services
Get Data Source
Run .Net
Script
Query Database
Clone Linux VM
Send e-mail
Create Checkpoint
Start Maint
Mode
Shut Down VM
Compare
Values
Check Schedule
Return Data
Create Incident
E-mail on error
Update on
success
Update
Create Recovery
Service Request
Point
Integration Packs
•
Solution or Application specific
•
•
•
•
Microsoft and Partner provided
•
•
•
Provide ready-built defined activities
Packaged and Deployed
Brings version control to activities
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
Runbook Planning
When to Automate Activities ?
Easy to Automate
Occurs Often
Time Consuming
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
Runbook Design
Demo
DESIGN GUIDE – BEST PRACTICE
Design Guide
Rename activities
Use link labels & colors
Success
Warning / Failed
“Could be”
Left to right
Folder and runbook structure
Naming convention
Variables
Library of standard runbooks
Demo
WATCH OUT!
Watch out!
• Success might 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
•
Text File
•
Custom Database
•
Event log (except SCOM monitors)
•
IP for Standard Logging (codeplex)
•
Platform Event
•
SCSM – Action Log
•
Built-in “Activity Specific Logging”
•
Make your own IP using the Wizard
Demo
LOGGING!
Build Modules
•
•
•
•
Does one task
Easier to develop and test
Can be used in multiple scenarios
Do not use when 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
System Center Orchestrator R2
• Windows Server 2012 R2 Support
• Service Management Automation
• Windows Azure Pack
• Runbook Workers
• System Center Integration Pack for Microsoft SharePoint
Summary
• Start small / simple
• Planning makes development much faster!
• Use Service Manager for staging support
Please evaluate the session
before you leave


similar documents