Menu Close

UR1 for SCOM 2022 – Step by Step

image

KB Article for OpsMgr

List of New Features

Download Update Rollup from the Catalog

Download the NEW Simplified Management Server Update EXE

Download Updated UNIX/Linux Management Packs

Recommended hotfix page

New Features:

  • Support for SQL 2022

Key fixes:

  • See the KB article.  There are too many fixes to list here.

 

NOTE:  I get this question every time we release an update rollup:  ALL SCOM Update Rollups are CUMULATIVE.  This means you do not need to apply them in order, you can always just apply the latest update.  If you have deployed SCOM 2022 and never applied an update rollup – you can go straight to the latest one available.

 
Let’s get started

From reading the KB article – the order of operations is:

1. Install the update rollup package on the following server infrastructure:

  • Management Servers
  • Audit Collection Servers
  • Web Console Servers
  • Gateway Servers
  • Operations Console Servers
  • Reporting Server

2. Apply Agent Updates

3. Update Unix/Linux MP’s and Agents

 

Management Servers

image

There is a new process for updating management servers that differs from previous versions of SCOM.  Download the single file management server EXE update, and this will ensure that your Management Server Role is updated, as well as any SQL updates, and Management Pack updates with a UI to show you success/fail and progress.

It doesn’t matter which management server I start with.  I simply make sure I only patch one management server at a time to allow for agent failover without overloading any single management server.

I have multiple management servers  My first two management servers hold 3 roles, and each must be patched:  Management Server, Web Console, and Console.

The first thing I do when I download the updates from the catalog, is copy the cab files for my language to a single location, and then extract the contents.

image

Notice the EXE file, and a MSP file exist for the Server update.  The EXE is the new simplified update file, but we included the older MSP for customers who want to continue to use the old process, or use silent installs for patching.  EITHER of these files will patch the server and attempt to run the SQL scripts and MP imports.  The EXE simply provides a visual progress.  That is the primary difference.  I will ONLY demonstrate and recommend the EXE file for the Management Server role update.

Once I have the EXE and MSP files, I am ready to start applying the update to each server by role.

  • ***Note:  One of the changes in SCOM 2019 Update Rollups, is that you no longer need to have “Sysadmin” role level rights to SQL.  The SCOM Update Rollup simply updates SCOM, and then uses your existing RunAs accounts to deploy the updated SQL script files to modify the SQL databases.  You simply need to log into your SCOM management servers as a Local Administrator and SCOM Admin.

My first server is a Management Server, Web Console server, and has the SCOM console installed, so I copy those update files locally, and execute them per the KB, from an elevated command prompt.

I will start with KB5020318-amd64-Server.exe

This is a self-extracting executable, that kicks off a simple update tool.  Accept the license terms, and click “Install

This will update the management server role, update the databases with SQL scripts, and then import any Management Pack updates.

image

If you have an issue – you can review the setup logs:

  • Setup Log: C:\Users\<UserName>\Appdata\Local\SCOM\Logs
  • SQL Logs: <SCOM install directory>\Server\SQL Script for Update Rollups\SqlExceptions_{version}.log
  • MP Import Logs: <SCOM install directory>\Server\Management Packs for Update Rollups\ManualMPImport_{version}.log

 

Next up – since this management server also runs a SCOM Web Console, I will run the Web Console update:  KB5020318-amd64-WebConsole.msp

Next – install the Console Update (make sure your console is closed):   KB5020318-amd64-Console.msp

You can reboot the server at this time if you were prompted to in order to complete the update.  If you were not prompted to, you do not need to.

 

Additional Management Servers:

image

Apply the UR updates for Server, Web Console, and Console roles as needed for all additional management servers.  You should only patch one management server at a time to allow for graceful failover of agents and to keep resource pools stable.

You can use the same EXE file and MSP files (where applicable) you used for the first management server.  The setup program will detect if the SQL scripts are already completed, and if the MP’s are already imported, and skip those if they are not needed. 

 

ACS Update: (Audit Collection Services)

image

One of my management servers is also my ACS Audit Collection Server role.  I will apply the update for that:

KB5020318-amd64-ACS.msp

image

 

Updating Gateways:

image

Open an elevated command prompt, and run the update:   KB5020318-amd64-Gateway.msp

The update launches a UI and quickly finishes.

 

Updating Reporting:

image

On your server that hosts the SCOM Reporting role, run the update:   KB5020318-amd64-Reporting.msp

 

Apply Post-UR1 SCOM 2022 Console update

Triangular red sign with exclamation point

WARNING – There is a bug in the SCOM 2022 UR1 Console update that you must fix.  There is a post-UR1 update available which resolves an error where the console crashes with Microsoft.Mom.UI.Wrappers.dll messaging.  This crash happens when you try to modify User Profiles, and when you input credentials to approve pending agents.

System.IO.FileLoadException: Could not load file or assembly ‘Microsoft.Mom.UI.Wrappers, Version=10.22.10337.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

File name: ‘Microsoft.Mom.UI.Wrappers, Version=10.22.10337.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’

Simply download the console update fix from: HERE, and extract it.  On any server with a SCOM 2022 UR1 Console, browse to the \Program Files\Microsoft System Center\Operations Manager\Console directory.  Find the Microsoft.Mom.UI.Wrappers.dll and rename it to “Microsoft.Mom.UI.Wrappers.dll.RTM”.  Then copy the new DLL file in that folder:

image

 

 

Update Agents:

image

image There is a issue in SCOM 2022 RTM that you need to fix first before pushing agent updates.

Browse to your \Program Files\Microsoft System Center\Operations Manager\Server\AgentManagement\amd64 directory and delete the following two files:

  • KB3117586-amd64-Agent.msp
  • KB9999999-amd64-Agent.msp

This appears to be a bug in SCOM 2022 RTM, as these files should not exist.

image

Once these files are deleted – you can continue.

 

Agents should be placed into pending actions by this update for any agent that was not manually installed (remotely manageable = yes):

***NOTE: For this to work, you MUST run the server update from an elevated command prompt, and the user account running the update must be a Local Admin, and SCOM Admin.  The Agents MUST have “Remotely Manageable” set to “Yes”.

image

You can approve these – which will result in a success or failure message once complete:

image

Now we will show the “REAL” agent number in the Administration –> Agent Managed view console:

image

And my SCOM Management Group Management MP, which will help show you REAL UR levels based on a better discovery.  This has long been a pain point in SCOM:

https://kevinholman.com/2017/05/09/scom-management-mp-making-a-scom-admins-life-a-little-easier/

image

 

 

Update UNIX/Linux MPs and Agents:

Linux - Wikipedia

You can get the current Unix/Linux MP updates HERE

Download, extract, and import ONLY the updated Linux/UNIX MP’s that are relevant to the OS versions that you want to monitor.  Here is the FULL list:

image

In my environment – I only monitor RedHat and Universal Linux distributions, so this is my pared down list of MP’s to update.  Yours may vary, depending on what previous versions you are upgrading from:

image

These can take a considerable amount of time to import, and consume a lot of CPU on the management servers and SQL server until complete.

Once it has completed, and before you attempt to update your Linux Agents – verify the updated files are dropped at \Program Files\Microsoft System Center\Operations Manager\Server\AgentManagement\UnixAgents\DownloadedKits.   If they are not present or not updated after import, sometimes you must restart the Microsoft Monitoring Agent service on the management servers after an MP Import to get them to show up.

After restarting my Microsoft Monitoring Agent service on my management server, I see the new files dropped with new timestamps:

image

 

Now you can deploy the Linux agent updates:

image

image

image

If you have any issues, make sure your SUDOERS file has the correct information pertaining to agent upgrade:

https://social.technet.microsoft.com/wiki/contents/articles/7375.scom-configuring-sudo-elevation-for-unix-and-linux-monitoring.aspx

 

Update the remaining deployed consoles

image

This is an important step.  I have consoles deployed around my infrastructure – on my Orchestrator server, SCVMM server, on my personal workstation, on all the other SCOM admins on my team, on a Terminal Server we use as a tools machine, etc.  These should all get the matching update version. 

DON’T FORGET to also apply the port-UR1 SCOM Console update to resolve console crashes, as instructed above.

 

 

Verifying the update

There are new views in the SCOM console to help with this and make this process MUCH easier.  You do need to wait long enough for the discoveries to run in order for these to update the views.

image

image

image

image

image

image

image

image

 

Review:

Now at this point, we would check the OpsMgr event logs on our management servers, review the Management Group Health dashboard, check for any new or strange alerts coming in, and ensure that there are no issues after the update. 

 

Known Issues:

image

1.  SCOM 2022 RTM has a bug that left two agent update files in \Program Files\Microsoft System Center\Operations Manager\Server\AgentManagement\amd64 directory.

You need to delete the following two files:

  • KB3117586-amd64-Agent.msp
  • KB9999999-amd64-Agent.msp

2.  SCOM 2022 UR1 Console update has a console crash issue that requires a post-UR1 fix for Microsoft.Mom.UI.Wrappers dll.

3.  When you run the Management server role update, sometimes the tasks fail to update the SQL databases, or perform the Agent Pending Management task.

This can happen when your permissions are not set correctly for your RunAs accounts.  There are 3 tasks that get deployed from the Management Pack included in the Update Rollup:

MP:  Microsoft.SystemCenter.DBUpdateTask

  • Database update task
  • Datawarehouse update task
  • Agent pending management task

The “Database update task” runs as whatever action account is associated with the RunAs Profile:  “Operational Database Account”.   By default there are no RunAs accounts associated with this profile, so any workflow that attempts to use this RunAs profile while it is unassociated will execute as the Management Server Action Account.  Since the MSAA has a high level of privilege to the OperationsManager database, this will be successful.  It will fail if someone has restricted the rights of this account on the management server or the SQL database/instance.

The “Datawarehouse update task” runs as whatever action account is associated with the RunAs Profile: “Data Warehouse Account”.  By default the RunAs account “Data Warehouse Action Account” is associated with this profile, so the task will execute as the credential configured in the “Data Warehouse Action Account” RunAs account, which should be the Data Warehouse Write Action account you specified when you installed SCOM.  This credential has a very high privilege to the OperationsManagerDW database (db_owner) so it can modify anything necessary.  It will fail if someone has restricted the rights of this account on the management server or the SQL database/instance.

The “Agent pending management task” runs as whatever action account is associated with the RunAs Profile:  “Operational Database Account”.   By default there are no RunAs accounts associated with this profile, so any workflow that attempts to use this RunAs profile while it is unassociated will execute as the Management Server Action Account.  Since the MSAA has a high level of privilege to the OperationsManager database, this will be successful.  It will fail if someone has restricted the rights of this account on the management server or the SQL database/instance.

If any of these fail, it is likely that someone has modified the default permissions for your action accounts to the SQL databases, or someone has incorrectly modified the default RunAs profile associations.  Please review your permissions against:  SCOM 2022 Security Matrix

 

Done!

image

27 Comments

  1. Michiel Rens

    Great article again, Kelvin! And thanks for pointing out some known issues.

    I’ve just upgraded a (non-production) environment from 2019 to 2022 and applied UR1 to it afterwards. All seems to work well, except for one REST API method that I’m using to query some performance counters (https://learn.microsoft.com/en-us/rest/api/operationsmanager/data/retrieve-performance-counters?tabs=HTTP). This used to work well on 2019 but now returns a 404 (not found) error:

    http:///OperationsManager/data/performanceCounters/{entityId}
    StatusCode: 404
    File or directory not found. The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

    Rolling back UR1 for the Web Console does not seem to make a difference, so I fear it has been introduced with the upgrade from 2019 to 2022.

  2. Peter

    Nice article again Kevin, alway enjoy reading it…..so for the console Post-UR1 SCOM 2022 fix….when is ‘comming soon’ 🙂 ? regards peter

    • Kevin Holman

      I don’t know if we block that or not. You’d have to try it. Even if there are “issues” as long as you can get through setup, as long as you deploy UR1 immediately after it should be OK. But from a “supported” perspective, I do not think we support setup of SCOM 2022 GA on SQL 2022. But it might work. 🙂

    • Abdelkader

      Hi IAN,

      I am planning to do the same setup (SQL 2022 /SCOM 2022 RTM and then upgrade to UR1)
      Have you already tried it and have you found any major issues ?

      Regards

  3. Matt Bravo

    Hey Kevin! Are you seeing an issue with the APM transfer health flapping on a daily basis? I am seeing it starting with my update to UR1, with the alert triggering daily. Maybe I need to do some DB pruning?

    The specified number of hours between data warehouse synchronizations has been exceeded.
    Hours: 11
    Workflow name: Microsoft.SystemCenter.Apm.DataTransferRule
    Instance name: Operations Manager APM Data Transfer Service
    Instance ID:
    Management group:

    • Kevin Holman

      I am not. However, one of the FIRST things I do in customer environments is to delete all the APM and Advisor MP’s.

      • Matt Bravo

        Interesting, and first I’m hearing about that. Is it a best practice for most environments unless those MPs are specifically needed?

        • Kevin Holman

          I probably should be more direct about it. I have some blog posts on how to remove them…. but I never say “I ALWAYS do this”.

          APM is a feature that is really out of date and very few customers use anymore…. and given how many issues we caused with it, removing the MP’s removes noise and risk.
          Advisor is an old out of date feature that in my opinion was always half baked and poorly supported… and sometimes caused major issues with SCOM deployments. It also broke change control as your SCOM deployments would download new MP’s whenever Microsoft felt like it with no control, and these workflows potentially ran on all agents. This was just such a huge no-no that I could never get behind it. So out it goes. Too many MP’s in SCOM get imported by default, in my opinion.

          • Matt Bravo

            Ahh, I was not aware APM was legacy. Welp, I see no reason to keep APM around either, so away it goes in my environment.

            Thanks for the insight, as always!

  4. Anthony Bertronski

    As always, thanks Kevin!

    I do have a question on the agents that go into pending approval. I’ve noticed when the agents are updated through our WSUS instance during monthly patching and after the monitored servers restart, they show the updated UR 1 and correct file version. It’s like I didn’t have to run the pending approval. Is the pending approval something equivalent to allowing the UR1 agent msp file to get run at that moment in time when I choose Approve? This is what I’m guessing since I’ve noticed RPC and dynamic high range ports are needed for the management server to be able to finish the approval.

    Short version – If I’ve installed the UR agent file to the monitored servers and they’ve restarted as part of monthly patching, etc. is there no need for me to run the pending approvals on the agents I see in the console?

    I’ve also verified the correct Update Rollup version with your SCOM Management Group Management MP.

    Thanks

    • Anthony Bertronski

      or maybe I’ve been over-thinking it all this time and when the update rollup gets applied through WSUS or manually then it’s good to go and the items shown in the pending management can just be ignored? I was thinking something else needed to be processed by approving the pending management 🙂

      • Kevin Holman

        Us putting agents into pending is a non-intelligent process. By that, I mean that ALL assigned agents are put into pending when an update is applied to a Management server or Gateway, where Remotely Manageable = True.

        If you apply updates through some other mechanism than agent-push/approve, then ignore pending and just REJECT them.

    • Kevin Holman

      These go missing from the catalog whenever the PG is moving the update into Microsoft Update. This happens every time we do an update and typically on lasts for a couple days

  5. Syed Fauvad

    HI Kevin,

    As always thanks for the wonderful, detailed guide and also pointing out the known issues. However, after the upgrade the web console is missing a lot of features like

    1. the health explorer for any object
    2. global search does not work (search for any object or device)
    3. the alert view on the web console for any object
    4. unable to set Maintenance mode to a specific date.

    Please let us know if you have come across this behavior after the upgrade.

Leave a Reply

Your email address will not be published.