Migrating runbooks from ORCHESTRATOR 2012 R2 to a new ORCHESTRATOR 2016
In this post I will explain how to Deploy a separate environment of ORCHESTRATOR in order to allow for minimal interruption that might result from potential incompatibilities of integration packs and other unknown factors.
This approach will allow you to conduct sufficient testing to ensure that the new environment meets all business requirements including disaster recovery testing.
Migration Steps
- Install and configure SCORCH 2016 Orchestrator 2016 environment
- Apply Lastest update Rollup (UR4 )
You can download from here make sure you read the Know Issues
https://support.microsoft.com/en-us/help/4047355/update-rollup-4-for-system-center-2016-orchestrator
This link describes some of the errors you may encounter with UR4
In my case, I ran into issues that were fixes with links above. However, AI also had to give the Runbook Service Account necessary permission in SQL by adding the account to proper roles.
After this update rollup is applied, SCORCH stopped logging Events in Events Table.
There is a stored procedure in the Orchestrator database named sp_insertevent which has a parameter @message.
If the datatype of the @message parameter is nvarchar(max), then the Log Purge function may fail. To fix this issue, change the datatype of the @message parameter from nvarchar(max) to nvarchar(4000). You can use the code below or SQL Server Management Studio to make this change in Orchestrator Database.
USE [Orchestrator]
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[sp_insertevent] @type nvarchar(50), @computer nvarchar(50), @summary nvarchar(200), @message nvarchar(4000)
AS
insert into EVENTS values (newid(), @type, @computer, getutcdate(), @summary, @message)
- Install all new version of Integration Packs Register and then
- Register and Deploy Runbook Designer to Server(s)
- Export Runbooks, global variables, counters, computer groups, schedules and global configurations from Orchestrator 2012.
- Documentation
- Document Permissions for Runbooks, Computer Groups, Variables, Counters and Schedules (Add Runbook Server account).
- Document any folder or runbook permissions that are different from Top Level “Runbooks”.
- Document any dependencies in Orchestrator 2012 environment. e.g. folder maybe utilized by an activity in a Runbook
- Import Runbooks, global variables counters, computer groups, schedules and global configurations to Orchestrator 2016.
- Orchestrator 2016 Apply Special Permissions documented in previous step.
Apply Top Level Permissions on Runbooks Folder before moving to next steps
recreate dependencies documented in previous step - Check SCORCH configurations:
In Runbook Designer Options>Active Directory
Repeat for each configuration that exist in your environment: SCCM Configuration Manager, SCOM, Exchange, SharePoint etc. - Registry Change in order to use Latest PS CLR
Create a new DWord-Value (32bit) OnlyUseLatestCLR = 1 in key HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework - Configure Other Components e.g. Install PowerShell Modules
e.g. to install Active Directory Module
Install-windowsfeature -name AD-Domain-Services –IncludeManagementTools - Install SCOM (System Center Operations Manager) Consoles if you are using SCOM IP
- Test your Runbooks
Runbook with an email activity with attachment
https://scorchking.blogspot.com/2018/02/scorch-2016-migration-issue-error.html
Comments
Post a Comment