Step-by-Step SCOM 2019 Upgrade Guide

Prajwal Desai
Posted by Prajwal Desai

In this post I will cover the steps to upgrade to SCOM 2019. I will cover all the SCOM pre-upgrade tasks and SCOM post-upgrade tasks in this post.

We will then look at Operations Manager 2019 upgrade process. You can upgrade to SCOM 2019 from versions 2016, 1801 or 1807.

Upgrade Paths for SCOM 2019

Most of all it is important that you know if your SCOM version is eligible to upgrade to version 2019. I have covered the SCOM 2019 upgrade paths in this post.

If you are planning to install SCOM 2019 in your setup, read this post.

If you are running SCOM 2016, 1801 or 1807, yes you can directly perform SCOM 2019 upgrade. And if you are using SCOM 2012 you must first upgrade to either SCOM 2016 or SCOM 1801. You can then upgrade to Operations Manager 2019.

System Requirements for SCOM 2019 Upgrade

You must always go through the system requirements of a product before you perform SCOM 2019 upgrade. Even though you are running a SCOM version that is eligible for upgrade, you must also read the system requirements.

If you are planning for a SCOM 2019 upgrade, here is an article from Microsoft that lists all the below requirements.

  • Capacity limits for Operations Manager
  • Hardware requirements
  • Software requirements for Operations Manager components
  • Supported Client operating systems

SCOM 2019 Upgrade Options

As per Microsoft there are several options for upgrade depending upon how you have installed SCOM.

  • If you have got a single-server management group, you only need to run the upgrade once since all features are installed on a single server.
  • If you have got a distributed management group, you must upgrade features in the below order.
  • Management servers
  • Gateways
  • Operations Consoles
  • Finally the SCOM agents.
  • Next, you can upgrade any remaining features, such as the web console, reporting and Audit Collection Services (ACS).
  • In case you want to maintain your earlier version of SCOM, you can install SCOM 2019 in parallel, upgrade your agents and multi-home them between both management groups.

SCOM 2019 Pre-Upgrade tasks

To ensure smooth SCOM 2019 upgrade, Microsoft recommends you to perform pre-upgrade tasks and the list of tasks are described below.

  • Review the Operations Manager Event Logs
  • Clean up the Database (ETL Table)
  • Configure agents to fail-over between multiple gateway servers
  • Remove Agents from Pending Management
  • Disable Notification Subscriptions
  • Disable any connectors
  • Stop the Microsoft Monitoring Agent, System Center Data Access Service, System Center Configuration Management, and Microsoft Monitoring Agent services on all management servers except the one being upgraded
  • Verify that the Operational Database Has More Than 50 Percent Free Space
  • Back up the Operations Manager Databases
  • Update the agent’s health service cache size temporarily to prevent loss of data while Management, and Gateway servers are upgraded.
  • Stop the application pool of Operations Manager and MonitoringViews in IIS server.

Review the Operations Manager Event Logs

First of all you must review the SCOM event logs and check if there are any errors or warnings. You must review them because a recurring critical error might cause issues while you perform upgrade.

Review the Operations Manager Event Logs

Clean up the Database (ETL Table)

Microsoft provides a script to cleanup ETL tables. You can copy and run the below script against the Operations Manager database. This script is provided by Microsoft.

-- (c) Copyright 2004-2006 Microsoft Corporation, All Rights Reserved         --
-- Proprietary and confidential to Microsoft Corporation                      --       
-- File:      CatchupETLGrooming.sql                                          --
-- Contents: A bug in the ETL grooming code could have left the customer      --
-- Database with a large amount of ETL rows to groom. This script will groom   --
-- The ETL entries in a loop 100K rows at a time to avoid filling up the        --
-- Transaction log                                                             --
---------------------------------------------------------------------------------
DECLARE @RowCount int = 1;
DECLARE @BatchSize int = 100000;
DECLARE @SubscriptionWatermark bigint = 0;     
DECLARE @LastErr int;
-- Delete rows from the EntityTransactionLog. We delete the rows with TransactionLogId that aren't being
-- used anymore by the EntityChangeLog table and by the RelatedEntityChangeLog table.
SELECT @SubscriptionWatermark = dbo.fn_GetEntityChangeLogGroomingWatermark();
WHILE(@RowCount > 0)
BEGIN
  DELETE TOP(@BatchSize) ETL  
  FROM EntityTransactionLog ETL
  WHERE NOT EXISTS (SELECT 1 FROM EntityChangeLog ECL WHERE ECL.EntityTransactionLogId = ETL.EntityTransactionLogId) AND NOT EXISTS (SELECT 1 FROM RelatedEntityChangeLog RECL
  WHERE RECL.EntityTransactionLogId = ETL.EntityTransactionLogId)
  AND ETL.EntityTransactionLogId < @SubscriptionWatermark;        
  SELECT @LastErr = @@ERROR, @RowCount = @@ROWCOUNT;            
END

To run this script, launch the SQL server management studio. Connect to the database engine. Expand Databases. Right click OperationsManager DB and click New Query.

In the query window, paste the above query and click Execute.

Clean up the Database (ETL Table)

Remove Agents from pending management

If you upgrading a management server, ensure that you remove any agents that are in Pending Management.

  • Open the SCOM console.
  • In the Administration pane, expand Device Management, and then click Pending Management.
  • If you notice any agent entries, right-click each agent, and then click Approve or Reject.
Remove Agents from pending management

Disable SCOM Notification Subscriptions

You must disable notification subscription before you upgrade the management group to ensure that notifications are not sent during the upgrade process.

  • Launch the Operations console.
  • Select the Administration. Expand the Notifications container, and then click Subscriptions.
  • Select each subscription, and right-click Disable each subscription.
Disable notification subscriptions

Disable connectors

To stop a service for a Connector launch Services.msc. Right-click the Connector that you want to control, and then click Stop.

Operations Manager database should have more than 50 percent free space

Before you perform upgrade to SCOM 2019, check if the SCOM database has got more than 50% free space

  • On the computer that hosts the operational database, launch SQL Server Management Studio.
  • Expand Databases. Right-click the Operations Manager database > Reports > Standard Reports, and then click Disk Usage.
  • View the Disk Usage report to determine the percentage of free space

In my case the disk usage reported showed only 31.18% of free space. Don’t panic if you see values less than 50%. We can increase the free space.

Operations Manager database

To increase the free space, right click OperationsManager database and click Properties. In the Database Properties dialog box, under Select a page, click Files. In the results pane, increase the Initial Size value for the MOM_DATA database by 50 percent.

Notice that my total space reserved value changed from 2.46 GB to 3.43 GB. I now see 60.89% of free space which is good.

Operations Manager database

Back up the Operations Manager databases

Backing up the databases is one of the pre-upgrade tasks. You must backup the operational database and data warehouse database before you upgrade SCOM. You should also create backups of databases for optional features, such as the Reporting and the Audit Collection Services database before you upgrade them.

If you already have a tool that backs up the databases you may skip this step.

To back up the OperationsManager database

Right click OperationsManager database and click Tasks > Backup.

Back up the Operations Manager databases

The database backup will be on a disk. If you need to add alternate backup location, click Add button. Specify the folder path and click OK.

The backup operations now begins. Once the backup operation is complete you will see a message box that says The backup of database ‘OperationsManager’ completed successfully.

Back up the Operations Manager databases

Repeat the same steps to backup OperationsManagerDW database.

Increase agent HealthService cache size

In this step we will increase agent HealthService cache size. This is done to ensure the agents can queue data during the upgrade.

Open Regedit (Registry Editor) and go to the below key

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlsSet\Services\HealthService\Parameters\Management Groups<ManagementGroupName>\maximumQueueSizeKb

The default decimal value of DWORD type is 15360 (15 MB) and the recommended value to change it to is 76800 (75 MB). Click OK and close the registry editor.

Increase agent HealthService cache size

Stop Operations Manager services on Management servers

Before upgrading the first management server in your management group, it is recommended to stop the Operations Manager services :-

  • System Center Data Access
  • System Center Configuration
  • Microsoft Monitoring Agent on all other management servers
Stop Operations Manager services on Management servers

Stop the application pool of Operations Manager and MonitoringViews in IIS server

This is the final step before you begin the SCOM 2019 upgrade. You must stop the OperationsManager and MonitoringViews application pools in Internet Information Services (IIS) Manager.

On the SCOM management server open the Internet Information Services (IIS) Manager and click Application Pools. Now on the right pane, right click OperationsManager and click Stop. Right click OperationsManagerMonitoringView and click Stop.

You should now see both OperationsManager and OperationsManagerMonitoringView status as Stopped.

Stop the application pool of Operations Manager and MonitoringViews in IIS server.

Download SCOM 2019 and Extract the Setup

After you complete all the SCOM pre-upgrade tasks, it’s time to download the SCOM 2019. After you download the SCOM 2019, you must first extract the SCOM setup files to a folder. Only then you get the setup file using which you can install SCOM 2019.

Mount the SCOM 2019 ISO file and right click SCOM_2019 application. Click Run as administrator.

Download SCOM 2019 and Extract the Setup

Click Next.

Download SCOM 2019 and Extract the Setup

Choose the folder where you want to extract the setup files. Click Next.

Download SCOM 2019 and Extract the Setup

Click Extract.

Download SCOM 2019 and Extract the Setup

Close the wizard.

Download SCOM 2019 and Extract the Setup

Go to the folder where you extracted SCOM 2019 install files. Run the SCOM setup as administrator.

Run the SCOM 2019 setup

Begin SCOM 2019 Upgrade

Let’s begin the SCOM 2019 upgrade using Operations Manager setup wizard. On the SCOM 2019 setup screen, click Install.

Begin SCOM 2019 Upgrade

On the system center operations manager upgrade page, click Next.

Begin SCOM 2019 Upgrade

Accept the license terms and click Next.

Begin SCOM 2019 Upgrade

I will not change the location here. Click Next.

Begin SCOM 2019 Upgrade

As per the prerequisite check, i must restart the management server. Seems like some windows updates were installed and a restart was required. So let me restart the server and run the setup again.

SCOM prerequisite check

After the reboot all prerequisite checks have passed. Click Next.

SCOM prerequisite check complete

Click Upgrade. This begins the SCOM 2019 upgrade.

SCOM prerequisite check complete

While the upgrade process runs, you can monitor the process by opening the OpsMgrSetupWizard.log file. This file is located under C:\Users\<username>\AppData\Local\SCOM\LOGS. To know more about SCOM log files, description – read this post.

OpsMgrSetupWizard.log
SCOM 2019 upgrade

The SCOM 2019 upgrade completed successfully. In the next steps we will perform post SCOM upgrade tasks. Click Close to close the Operations Manager setup wizard.

SCOM 2019 Post-upgrade tasks

In the beginning of this post I covered the SCOM 2019 pre-upgrade tasks. After you install SCOM, you must perform the following tasks :-

  • Re-enable the Notification Subscriptions
  • Restart or re-enable the Connector Services (if needed)
  • Re-enable Audit Collection Services (ACS) on agents that were upgraded
  • Reset agent HealthService Cache size
  • Verify the upgrade was successful

Re-enable the Notification Subscriptions

Post the SCOM upgrade you must re-enable notification subscription.

  • Launch the Operations console.
  • Select the Administration. Expand the Notifications container, and then click Subscriptions.
  • Select each subscription, right-click each subscription and click Enable.
Re-enable the Notification Subscriptions

Re-Enable / Restart Connectors

To restart a service for a Connector launch Services.msc. Right-click the Connector that you want to re-enable, and then click Restart.

Reset agent HealthService cache size

Restore the default setting for the agent HealthService cache size by updating the following registry setting.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlsSet\Services\HealthService\Parameters\Management Groups\maximumQueueSizeKb

The default decimal value of DWORD type is 15360 (15 MB).

Reset agent HealthService cache size

Start the application pool of Operations Manager and MonitoringViews in IIS server

You must start the OperationsManager and MonitoringViews application pools in Internet Information Services (IIS) Manager.

On the SCOM management server open the Internet Information Services (IIS) Manager and click Application Pools. Now on the right pane, right click OperationsManager and click Start. Right click OperationsManagerMonitoringView and click Start.

You should now see both OperationsManager and OperationsManagerMonitoringView status as Started.

Start the application pool of Operations Manager and MonitoringViews in IIS server

SCOM 2019 Health Check

Verify that the upgrade was successful, you must first check the health state of the management and gateway servers. In addition to that check health of agents in the Health Service Watcher state view.

Go to Administration workspace of the Operations console, ensure that the management and gateway servers, and agents are healthy. In the Monitoring workspace, check if there are any alerts related to the management group health.

SCOM 2019 Health Check

Next review the event logs of all the management servers for any new errors. If there are no critical errors then no need to worry.

Review the Operations Manager Event Logs

Check SCOM 2019 version

After the SCOM 2019 upgrade, let’s check the SCOM version. In the SCOM console, click Help > About. The window should show following info.

  • Server version – 10.19.10050.0
  • SCOM version – System Center 2019 Operations Manager
Check SCOM version

To activate the SCOM 2019, click Activate button. Enter the product key and you should be good to continue using SCOM 2019. I hope this guide helps.

Install SCOM 2019 Console

If you wish to install Operations Manager 2019 console on another machine, you can follow the steps mentioned in this post.

Share This Article
Prajwal Desai
Posted by Prajwal Desai
Follow:
Prajwal Desai is a Microsoft MVP in Intune and SCCM. He writes articles on SCCM, Intune, Windows 365, Windows Server, Windows 11, WordPress and other topics, with the goal of providing people with useful information.
11 Comments