Fredrik Kristian Knalstad
10 ways to trigger Runbooks from the IT Jungle
Service Manager

HP Service Manager Software
Make your IT service desk enterprise strength

OpenView Operations
INTEGRATION PACKS

Third-Party
25%

Microsoft
50%
Community
25%
SMA

Powershell
Authoring

Orchestrator

Interoperability

Powershell
Engine

Graphical
Authoring

UI Runbook
Engine

Process Automation
10

Orchestrator Web Service
Orchestrator
Web Service

Web Service Triggered

Result Returned to webservice
Job status Returned

Job Created in DB

Runbook
Designer

Management
Server

Info sent back to DB

Orchestrator
Database

Job executed

Runbook
Server
Http://Servername/Orchestrator/Orchestrator2012.svc

• Orchestrator Web Service
•
•

•
•
•
•
•

REST based API
Exposes Orchestrator Resources and relationship through Open Data Protecol
(Odata)
Interact with the web service through URL syntax
Return data is listed in XML
Access the web service through programming language like C# and Powershell to automate
Orchestrator functionality
Windows Integrated and Certificate based authentication
Orchestrator web service is the only supported method of automating Orchestrator or
accessing information.
Odata Queries
[Service Root URI]/[Resource Path]?[Query Options]
http://SCOR2012R201:81/Orchestrator2012/Orchestrator.svc
http://SCOR2012R201:81/Orchestrator2012/Orchestrator.svc /Runbooks
http://SCOR2012R201:81/Orchestrator2012/Orchestrator.svc
/Runbooks?$filter=Name eq ‘Client Diagnostics’
Demo..
9

Powershell
Powershell:
•
•
•
•

Integrated in Orchestrator
Excellent method of integrating with products and solutions
Must create an http request that has the required properties
Specify the GUID for each parameter and the value to populate it with
10 ways to trigger runbooks from Orchestrator
Runbook GUID

Parameter GUID
Parameter Value

# Details of the runbook we are going to run
$rbid = "ba5346ed-af8e-48bf-966b-85e3e461763f"
$rbParameters = @{"863b70e9-f12e-43ef-ba1b-1094b3ea63f7" = "This is the value for Param1.";"ce36281b-b1d0-41cf-91757821f8782a8c" = " This is the value for Param2."}
# Create the request object
$request = [System.Net.HttpWebRequest]::Create("http://scor2012r201.knallert.local:81/Orchestrator2012/Orchestrator.svc/Jobs")

Web Service URL
System Center Orchestrator Web Service Powershell Module
Get-OrchestratorServiceUrl
Get-OrchestratorCollection
Get-OrchestratorJob
Get-OrchestratorRunbook
Get-OrchestratorRunbookInstance
Get-OrchestratorRunbookInstanceParameter
Stop-OrchestratorJob
Start-OrchestratorRunbook

OData PowerShell Explorer
•

Available on Codeplex
10 ways to trigger runbooks from Orchestrator
8

Configuration Manager
MDT Integration
Application Deployment
• Powershell
• SCOJoBRunner

OS Deployment
• Powershell (Task Sequence)
• MDT Integration (Task Sequence)

Client Management
• Runbook Commander 2.0
Demo..
Remember:

MDT Orchestrator Step (Task Sequence)
• Network access account added to the OrchestratorUserGroup
Where can I use this:

•Moving a computer to a new OU. (Active Directory)
•Adding Computers to Groups (Active Directory)
•Generating or retrieving a computer name. (Local Computer / Active Directory)
•E-mailing when a deployment fails (SMTP)
•Creating a trouble ticket/Incident when a deployment fails(Service Manager)
7

Monitor Activity
Integration Pack

Activity

Exchange Users Integration Pack

Monitor Item

Operations Manager Integration Pack

Monitor Alert
Monitor State

Service Manager Integration Pack

Monitor Object

Virtual Machine Manager Integration Pack

Monitor VMM Job

Standard Activites

Monitor Service
Monitor Event Log
Get Service Status
Monitor Process
Get Process Status
Monitor Computer/IP
Get Computer/IP Status
10 ways to trigger runbooks from Orchestrator
Remember:
Runbook Server
• Default 50 slots per Runbook server
• Policy module.exe instance run for every starting runbook.
• Large environments its better that remote integration is triggered.
• Performance impact not only on Orchestrator, but on the other systems
as well.
6

Service Manager
Runbook Template
Runbook Template

• Automating processes and enforcing best practices for incident, change,
and service-life-cycle management
• Reducing unanticipated errors and service delivery time by automating
tasks across responsibility groups within your IT organization
• Integrating System Center with non-Microsoft tools to enable
interoperability across the datacenter
• Orchestrating tasks across systems for consistent, documented, and
compliant activity
Runbook Designer:
• Create the Runbook
• Make sure Runbook is [Check in]
Orchestrator Connector:
• Orchestrator Web Service
• Run As account
• Select the Sync folder
• URL to the Web console
Service Manager Runbooks:
• Active / Missing
• Naming Convention
Runbook Activity Template:
• Is Ready for Automation
Add User to Local Administrators

Service Request Template

IT Administrators Approve
(Review Activity)

Add User to AD Group
(Runbook Activity Template)
Demo..
Add User to Local Adminstrators v1
Add User to Local Adminstrators v2
Remember:

Orchestrator Connector
• Connector account added to the OrchestratorUserGroup
Orchestrator
• Runbook needs to be checked in or it will be listed as «Missing» in
Service Manager
5

EUPSCO

End User Portal Orchestrator
End User Portal for System Center Orchestrator
• No Cost
• Service Request
• Order on Behalf
• Activity Delegation (Approval)
• Active Directory LDAP Sync
• Custom services based on your Runbooks
10 ways to trigger runbooks from Orchestrator
Demo..
4

Custom Integrations
Orchestrator Web Service
Custom Integrations:

•
•
•

Console Application (CMD)
Formbased Application (UI)
Webform / Website (.NET)

•

Visual Studio or Visual C# 2010 Express
Demo..
3

Orchestrator Web Console
Runbook
Designer

Management
Server

Orchestrator
Database

Runbook
Server
Demo..
10 ways to trigger runbooks from Orchestrator
TRUNCATE TABLE
[Microsoft.SystemCenter.Orchestrator.Internal].AuthorizationCache
Orchestrator Web Console

•
•

Delegation of access to Users and Groups (Service Desk)
Offload usage of Runbook Designer
2

SCOJobRunner
Task Activities
SCOJobRunner.exe

Type

Example:

-ID

Runbook ID

79cf665b-9f4f-4273-9d4f-67aaf0da868e

-Webserver

Computername

SCOR2012R201

-Port

Orchestrator Webservice Port

81

-Parameters:

Input Parameters in Runbook

"Computer Name=%Input%"

-RunbookServer

Runbook Server to execute the
job

SCOR2012R201
Default
SCOJobRunner.exe -ID "Runbook ID" -webserver: "ServerName" Parameters:"Computer Name=Variable"
With Input
SCOJobRunner.exe -ID "79cf665b-9f4f-4273-9d4f-67aaf0da868e" webserver:"SCOR2012R201" -Parameters:"Computer Name=MGTCLIENT"
10 ways to trigger runbooks from Orchestrator
Service Manager
Where can I use the SCOJobRunner?

•
•
•
•
•

Service Manager – Console Task
Operation Manager – Console Task
Configuration Manager – Application Model [Deployment]
VMM Workflow – Build Server
Task Scheduler
Demo..
1

Orchestrator Mobile
Windows Phone App
10 ways to trigger runbooks from Orchestrator
10 ways to trigger runbooks from Orchestrator
Remember:

•
•
•
•

Phone has to have http(s) connectivity to Orchestrator Web Service
Orchestrator Web Service must be configured to allow Basic
authentication
If https is used then server certificate must be valid
In order to enable Orchestrator Mobile to connect to Orchestrator Web
Service from the internet, you have to publish it over a reverse proxy
(like Microsoft Forefront TMG).
Summary
•
•
•
•
•
•
•
•
•
•

Orchestrator Web Service
Powershell
Configuration Manager / MDT
Monitor Activity
Service Manager Runbook Template
End User Portal Orchestrator
Custom Integrations
Orchestrator Web Console
SCOJobRunner
Windows Phone App
Thank you
Fredrik.knalstad@crayon.com
Twitter: Theknall

More Related Content

PPT
Data Mining: Concepts and Techniques for beginner
PDF
SCORCH: Tying it All Together
PPTX
Getting Started with Orchestrator and Service Manager
PPTX
Internet Marketing for Dentists 101
PDF
Acceptance Offer
PPTX
Nepal
PPTX
вступна презентація виховного проекту «швець без чобіт
PPTX
Eqpo 3 partes computadora
Data Mining: Concepts and Techniques for beginner
SCORCH: Tying it All Together
Getting Started with Orchestrator and Service Manager
Internet Marketing for Dentists 101
Acceptance Offer
Nepal
вступна презентація виховного проекту «швець без чобіт
Eqpo 3 partes computadora

Viewers also liked (14)

PPTX
Costos predeterminados equipo 8
PPT
Don't Forget Who You Are
PPTX
Penerangan Program Gen-G HHHC 9201 (Kemahiran Komunikasi)
PDF
BreeCS Example Report - All Deliveries
PPTX
Maths project
PPTX
Bentley
PDF
Influencers Copy
PPTX
з досвіду роботи синяк л. і.
PDF
Rimagine Credentials_2016
PPT
Its all about tyler
PPTX
communication channels or modes
PPTX
Presentacion equipo 7
PPTX
Equipo 6 sistemas operativos
PPTX
Costos predeterminados equipo 8
Don't Forget Who You Are
Penerangan Program Gen-G HHHC 9201 (Kemahiran Komunikasi)
BreeCS Example Report - All Deliveries
Maths project
Bentley
Influencers Copy
з досвіду роботи синяк л. і.
Rimagine Credentials_2016
Its all about tyler
communication channels or modes
Presentacion equipo 7
Equipo 6 sistemas operativos
Ad

Similar to 10 ways to trigger runbooks from Orchestrator (20)

PPTX
1.4 build your_svc_cat_final
PPTX
SCU Asia System Center: Beyond orchestrator
DOCX
Application Catalog and Approval Runbooks Sample
PDF
System Center 2012 Orchestrator R2 - Enterprise IT Automation
PDF
Advanced Orchestration & Automation
PDF
Service Delivery & Automation Configure & Deploy
PPTX
Automating System Center 2012 R2 (MVP Roadshow CPH 2015)
PPTX
System Center Ürün Bileşenleri ile ITIL Süreçleri Arasındaki İlişki
PPT
System center seminar presentation
PDF
Service Manager and Orchestrator: Better Together!
PPTX
System Center Universe Europe 2014 - Jakob Gottlieb Svendsen - Service Manag...
PPTX
Automation 2.0 - Automation Tools for Hybrid Cloud Environments
PPTX
Travis Wright - PS WF SMA SCSM SP
PDF
Automating OSD and Post-OSD Configuration with Powershell and Orchestrator
PPTX
CITPG - SC2012R2SM PRESENTATION - FINAL.pptx
PPTX
Service Management Automation (SMA) from zero to hero
PPTX
1.3 prepare for self service-final
PDF
Systemology presentation- System Center & the modern datacenter
PPTX
System Center Orchestrator 2012 Overview
PPTX
Managing IT as A Service with System Center
1.4 build your_svc_cat_final
SCU Asia System Center: Beyond orchestrator
Application Catalog and Approval Runbooks Sample
System Center 2012 Orchestrator R2 - Enterprise IT Automation
Advanced Orchestration & Automation
Service Delivery & Automation Configure & Deploy
Automating System Center 2012 R2 (MVP Roadshow CPH 2015)
System Center Ürün Bileşenleri ile ITIL Süreçleri Arasındaki İlişki
System center seminar presentation
Service Manager and Orchestrator: Better Together!
System Center Universe Europe 2014 - Jakob Gottlieb Svendsen - Service Manag...
Automation 2.0 - Automation Tools for Hybrid Cloud Environments
Travis Wright - PS WF SMA SCSM SP
Automating OSD and Post-OSD Configuration with Powershell and Orchestrator
CITPG - SC2012R2SM PRESENTATION - FINAL.pptx
Service Management Automation (SMA) from zero to hero
1.3 prepare for self service-final
Systemology presentation- System Center & the modern datacenter
System Center Orchestrator 2012 Overview
Managing IT as A Service with System Center
Ad

Recently uploaded (20)

PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PPTX
Benefits of Physical activity for teenagers.pptx
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
PPTX
O2C Customer Invoices to Receipt V15A.pptx
PDF
Five Habits of High-Impact Board Members
PDF
Getting started with AI Agents and Multi-Agent Systems
PDF
sustainability-14-14877-v2.pddhzftheheeeee
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
A novel scalable deep ensemble learning framework for big data classification...
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PPTX
Modernising the Digital Integration Hub
PDF
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
August Patch Tuesday
PPTX
Chapter 5: Probability Theory and Statistics
DOCX
search engine optimization ppt fir known well about this
PPTX
observCloud-Native Containerability and monitoring.pptx
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
Benefits of Physical activity for teenagers.pptx
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
O2C Customer Invoices to Receipt V15A.pptx
Five Habits of High-Impact Board Members
Getting started with AI Agents and Multi-Agent Systems
sustainability-14-14877-v2.pddhzftheheeeee
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Enhancing emotion recognition model for a student engagement use case through...
A novel scalable deep ensemble learning framework for big data classification...
Univ-Connecticut-ChatGPT-Presentaion.pdf
Modernising the Digital Integration Hub
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
Group 1 Presentation -Planning and Decision Making .pptx
August Patch Tuesday
Chapter 5: Probability Theory and Statistics
search engine optimization ppt fir known well about this
observCloud-Native Containerability and monitoring.pptx
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf

10 ways to trigger runbooks from Orchestrator

Editor's Notes

  • #5: OrchestratorIn System Center 2012, System Center 2012 SP1, and System Center 2012 R2, the Orchestrator component enables you to automate business processes and IT operations in your data center without scripting or programming. Orchestrator is a feature in System Center 2012. If you already have System Center 2012 installed, and you do not plan to install Windows Azure Pack, use Orchestrator.Service Management Automation (SMA)Automation in Windows Azure Pack enables you to automate processes within the Windows Azure Pack. Because Automation runs Windows PowerShell workflows, you can also use Windows PowerShell cmdlets to run other System Center 2012 components, including Orchestrator. If you are planning to use the Windows Azure Pack, use Automation, and then you can continue to leverage your System Center 2012 installation (if one exists).Orchestrator Service Management Automation (SMA) is a new component that has been added in System Center 2012 R2, and although initially it might seem to be an extension to Orchestrator--which in itself is already part of System Center--it's really a completely separate component.It's also possible for organizations leveraging Windows Azure Pack to integrate their own PowerShell workflows into SMA. PowerShell is the future direction for Microsoft, and with Orchestrator SMA, those PowerShell efforts benefit from the capabilities and scalability (such as multiple SMA runbook servers) formerly possible only with Orchestrator runbooks.Note that SMA automations are not compatible with Orchestrator, and Orchestrator runbooks will not work with SMA.Through sessions on NIC you will see examples of SMA and the usage of Windows Azure Pack and how SMA works.“Most important both IT process automation solutions has in common – start using PowerShell!!!”
  • #7: Orchestrator Web Service runs on IIS.Orchestrator Web Service is a OrchestratorRoleTheorchestrator Web service is thecommunicationpointwithother Software products in OrhestratorThe Orchestrator web service must be installed on a server that is running Internet Information Services (IIS). The Orchestrator web service does not have to be available for runbook servers or runbooks to function. If the Orchestrator web service is not available, you cannot run the Orchestration console to start, monitor, or stop runbooks. You can install the web service on multiple IIS servers configured for load balancing to provide high availability and additional capacity.
  • #8: Transactional communication with RESTful web services Windows Integrated and Certificate+based AuthenticationOpens Possibilities of Interaction Between Orchestrator Instances
  • #9: Service Root URIDefinestherootoftheOdata service. This includestheprotocol to eitheruse http or https. Path to the computer hosting the service and port number.Resource PathThe resourcepathdefinestheresourcesthatyouwant to workwith. This can be a single resource as a runbook or a collectionofrunbooks or a collectionofjobs.Query Options Allowyou to furtherrefinewhich data is returned and how it is ordered.System Query Options are query string parameters a client may specify to control the amount and order of the data that an OData service returns for the resource identified by the URI. 
  • #13: Powershell is higglyintegrated in Orchestrator. SinceOrchestrator and Powershellarebuilton.Net Framework, powershell is an exellentmethodofintegratingwithproducts and solutions.Windows PowerShell does not have the ability to use a Service Reference as does a program written using Visual Studio.Instead, you must create an http request that has the required properties and the details of the runbook you want to start. You can parse the response to the request to determine information such as its completion status and the details of the resulting job.If the runbook requires parameters, you must specify the GUID for each parameter and the value to populate it with. This information is included in a Parameters XML element that uses a CDATA to distinguish it from the XML of the request itself. You can retrieve the parameters for a runbook with and their details with a request similar to the following:http://server01.contoso.com:81/Orchestrator2012/Orchestrator.svc/Runbooks(guid'00000000-0000-0000-00000000000000000')/ParametersThe following example shows how to start a runbook using Windows PowerShell. The runbook in this example has two parameters. The values for these two parameters are stored in an array variable before being added to the XML for the request. For a runbook that does not have parameters, you can leave the Parameters element of the request empt
  • #15: you must create an http request that has the required properties and the details of the runbook you want to start. You can parse the response to the request to determine information such as its completion status and the details of the resulting job.
  • #16: If the runbook requires parameters, you must specify the GUID for each parameter and the value to populate it with. This information is included in a Parameters XML element that uses a CDATA to distinguish it from the XML of the request itself. You can retrieve the parameters for a runbook with and their details with a request similar to the following:
  • #19: Automaticallyproviderunbook parametersSelect this option to automatically provide the Orchestrator runbook input parameter values( which assumes that the runbook parameter values are task sequence variables). For example, if a runbook has an input parameter named OSDComputerName, then the OSDComputerName task sequence variable value is passed to the runbook.Specifyexplicit  runbook parametersSelect this option to explicitly provide the Orchestrator runbook input parameters.You must configure the following settings for each input parameter that the Orchestrator runbook requires:
  • #20: Unlike the setup in place for web services and stored procedures, the Orchestrator support is not tied to CustomSettings.ini.  Instead, it is designed to run at any point in the task sequence itself by adding a new “Execute Orchestrator Runbook” requests wherever you want them:If that runbook accepts input parameters, you can pass those from the task sequence either explicitly (type in the value you want, using variable substitution if necessary) or implicitly (if the runbook parameter name matches the name of a task sequence variable, the value of that variable will be passed automatically).
  • #26: Each running runbook consumes a “slot” in the available runbook throttling limit that’s set for each Runbook Server.For every runbook that is running - every monitor runbook that is active, every runbook and all of the child runbooks that they might call – there is a PolicyModule.exe instance and that is consuming one of those slots in the throttling limit.In addition to the above, realize that you may have multiple monitor runbooks running against the same data source. For example, you may be monitoring Operations Manager for certain conditions like new alerts of a certain type or changes in status of a monitor for a set of computers.t’s highly likely that you will have multiple monitors, each polling the Operations Manager server every 5 seconds, putting additional load on the Operations Manager server because it has to do queries of its data every 5 seconds for 5 or 10 (or maybe more) different monitors. Now repeat this scenario across your other data sources, like Service Manager, Configuration Manager, Virtual Machine Manager, and so on. You begin to see how this might have a performance impact not only on Orchestrator, but on the other systems as well.
  • #27: Each running runbook consumes a “slot” in the available runbook throttling limit that’s set for each Runbook Server.For every runbook that is running - every monitor runbook that is active, every runbook and all of the child runbooks that they might call – there is a PolicyModule.exe instance and that is consuming one of those slots in the throttling limit.In addition to the above, realize that you may have multiple monitor runbooks running against the same data source. For example, you may be monitoring Operations Manager for certain conditions like new alerts of a certain type or changes in status of a monitor for a set of computers.t’s highly likely that you will have multiple monitors, each polling the Operations Manager server every 5 seconds, putting additional load on the Operations Manager server because it has to do queries of its data every 5 seconds for 5 or 10 (or maybe more) different monitors. Now repeat this scenario across your other data sources, like Service Manager, Configuration Manager, Virtual Machine Manager, and so on. You begin to see how this might have a performance impact not only on Orchestrator, but on the other systems as well.
  • #40: Connect to webserviceusingprogramming Language or scriptinglanguagethat is capableof sending an HTTP request and recieivingitsresponse