Many challenges come with managing and maintaining  System Center Configuration Manager in large environment. In previous posts, we covered how to limit Pull DP bandwidth and How to manage Pull DP with collections to ease management in large environment. Probably the biggest challenge with large environment,  is to keep SCCM up to date.

In this post, we will provide in depth details, considerations and useful tips on Pull DP upgrade for large SCCM environment. The goal is to provide ways to prevent upgrades of SCCM to become a nightmare by taking more time than planned and/or heavy hit on the network. We will cover theses subjects :

  • Automatic package update and distribution
  • How to work around automatic package update and distribution
  • Pre-requisite checker
  • Upgrade time lapse
  • Distribution point and PullDP upgrade ratio
  • What happen while Distribution point/ Pull DP upgrade

Note that all details and considerations are regarding major upgrade like service pack upgrades and major upgrades.

[su_note note_color=”#cbcbcb” radius=”8″]Warning : this post assume that you already have excellent SCCM knowledge. In Microsoft term, this could be target audience : level 300 :)[/su_note]

Automatic Package Updates and Distribution

After an upgrade, some packages will be automatically updated and distributed to all of your Distribution Point and Pull DP to provide the latest bits to be used by clients.

Here’s the list of what will be updated :

  • The default SCCM client package (Around 200MB)
9972(4)   9972(33)
  • Configuration Manager Client Upgrade Package (Around 2mb)
    • No control on this package
  • Default Windows PE boot images  (Around 200MB for each boot image)
    • The update will happen no matter if ADK is updated or not
      • For example, we can see a change between R2 and R2 SP1 to the default background used in the WinPE
    • If it doesn’t automatically update, it means that it tried and failed because of driver injection
      • Manual update of the boot image is required to fix this issue, by removing faulty drivers

9972(3) 9972(36)

How to Work Around the Automatic Packages Update and Distribution

With the nature of packages automatically updated and distributed, it is possible to work around it prior to the upgrade of the site server.

Remove Boot Images from Distribution Points

Boot images, unlike SCCM client, can’t be pre-distributed on distribution point because of their unique nature.

To prevent a hit on the network, we removed the boot images from DP, Pull DP and DP groups.

9972(1) 9972(2)

This mean that OSD will NOT be available while the upgrade is being processed.

Once all DP/Pull DP are upgraded and system is heatlhy, redistribute boot image on all your DP/PullDP. This will give you total control on when to distribute instead of leaving the upgrade handle it.

Pre-Distribute SCCM Client Package Content

As describe above, the update of the SCCM client package will send around 200 Mb to each DP/ Pull DP.  To prevent a massive hit on the network, we created a standard package, before the upgrade, that has the content of the new SCCM client.

We got the source from another hierarchy (like a lab) that was already to the desired upgrade level.

Path to the client : SCCMInstallationDirectory\Client

9972

The Content Library will only host a single instance of files, this will ease the distribution of the client after the upgrade as it will only validate and not distribute.

Prerequisite Checker

When the prerequisite checker runs, it will communicate with all DP and PullDP.

It takes approximately 5-10 seconds per PullDP… with 1000 PullDP, this could mean hours of waiting for the prerequisite checker to complete. Let it go, and follow the log for details.

9972(6)

You can follow the prerequisite checker in this log : C:\ConfigMgrPrereq.log

9972(7)

Upgrade Time Lapse

Upgrading a primary server will take time. Be patient.

As an example, upgrading a primary site server with 1000 Pull DP, 5000 clients, took more than 1 hour to complete the wizard.

9972(8)

Monitoring  Compmon.log after the upgrade wizard added another hour to the process. This log shows the various Site component status.

Compmon.log must show Waiting until the next polling cycle in 300 secondes from now to consider the upgrade completed.

This log can be find in : SCCMInstallationDirectory\Logs\compmon.log

9972(12)

Distribution Point and Pull Distribution Concurrent Upgrade Ratio

When upgrading a primary site, all child sites will be upgraded. In a large environment, DP and Pull DP are the biggest challenge of the upgrade.

We found this process not to be well documented and with many grey areas.

Change the DPUpgradeThreadLimit

By default, when upgrading a primary site, all Distribution and Pull DP will be upgraded.

As documented in this KB for DPUpgradeThreadLimit, the default limit is 5 concurrent Distribution Point or Pull DP Upgrade.

With 1000 Pull DP, this will take extremely long time. With a large SCCM environment, most probably the server and the network can handle more than 5 concurrent upgrade.

This setting can be changed for a higher rate of concurrent upgrade. We did it at 50 concurrent upgrade. Server and network did handle it quite well.

Here’s how to check if your DP settings :

Get the setting using a script querying the WMI of the primary server.

[pastacode lang=”javascript” message=”Check DP limit setting” highlight=”” provider=”manual”]

param(
[string] $siteServerName="."
)

$providerLocation = gcim -ComputerName $siteServerName -Namespace root\sms SMS_ProviderLocation -filter "ProviderForLocalSite='True'"
$providerMachine = $providerLocation.Machine
$sitecode = $providerLocation.SiteCode
$providerNamespace = "root\sms\site_" + $sitecode
$siteFilter = "SiteCode='" + $sitecode + "‘"

write-host $providerLocation



$distmgrConfig = gcim -ComputerName $providerMachine -Namespace $providerNamespace SMS_SCI_Component | ? {$_.ComponentName -eq "SMS_DISTRIBUTION_MANAGER"}

ForEach ($distMgrObject in $distmgrConfig)  {

    $properties = $distMgrObject | select -ExpandProperty Props
    $threadLimitProperty = $properties | ? {$_.PropertyName -eq "DPUpgradeThreadLimit"} 
    if($threadLimitProperty -eq $null)
    {
        write-host "Actual setting for DPUpgradeThreadLimit is using default (5)"
     
    }
    else
    {
        write-host "Actual setting for $($DistMgrObject.SiteCode) DPUpgradeThreadLimit is $($threadLimitProperty.Value)"
        }
    }

[/pastacode]

Here’s the script to change the setting in the WMI of the primary server.

[pastacode lang=”javascript” message=”Change DP/PullDP concurrent upgrade ratio” highlight=”” provider=”manual”]

param(
[string] $siteServerName=".",
#define the new number of DP/PullDP concurrent upgrade limit
[int] $newValue=50
)

$providerLocation = gcim -ComputerName $siteServerName -Namespace root\sms SMS_ProviderLocation -filter "ProviderForLocalSite='True'"
$providerMachine = $providerLocation.Machine
$sitecode = $providerLocation.SiteCode
$providerNamespace = "root\sms\site_" + $sitecode
$siteFilter = "SiteCode='" + $sitecode + "‘"

write-host $providerLocation



$distmgrConfig = gcim -ComputerName $providerMachine -Namespace $providerNamespace SMS_SCI_Component | ? {$_.ComponentName -eq "SMS_DISTRIBUTION_MANAGER"}

ForEach ($distMgrObject in $distmgrConfig)  {

    $properties = $distMgrObject | select -ExpandProperty Props
    $threadLimitProperty = $properties | ? {$_.PropertyName -eq "DPUpgradeThreadLimit"} 
    if($threadLimitProperty -eq $null)
    {
        write-host "Previous setting for DPUpgradeThreadLimit was using default, updating to $newValue"
        $newProperty = New-CimInstance -ComputerName $providerMachine -Namespace $providerNamespace -ClassName SMS_EmbeddedProperty
        $newProperty.PropertyName = "DPUpgradeThreadLimit"
        $newProperty.Value = $newValue#

        $newPropertyList = @()
        $properties | % { $newPropertyList += $_}
        $newPropertyList += $newProperty
    
        $distMgrObject.Props = $newPropertyList
        scim $distMgrObject
    }
    else
    {
        write-host "Previous setting for $($DistMgrObject.SiteCode) DPUpgradeThreadLimit was $($threadLimitProperty.Value), updating to $newValue"
        $newProperty.PropertyName = "DPUpgradeThreadLimit"
        $newProperty.Value = $newValue

        $newPropertyList = @()
        $properties | % { 
            if($_.PropertyName -eq "DPUpgradeThreadLimit")
            {
                $_.Value = $newValue
                $newPropertyList += $_
            }
            else
            {
                $newPropertyList += $_
           }  
        } 
    
        $distMgrObject.Props = $newPropertyList
        scim $distMgrObject 
       }
       }

[/pastacode]

Script credit : Matt Shadbolt

Here the result after modifying the WMI on our server.

9972(5)

Once modified in the WMI, restart the SMS_Executive so it takes effect.

What Actually Happen while Pull DP Upgrade

Pull DP need the same upgrade as the primary server.

The high-level steps are the following :

  • Update package for Client, Client upgrade and Boot image, if already distributed
  • Pull DP upgrade with PullDP.msi
  • Automatically upgrade SCCM client (no matter what are the setting of Automatic Client upgrade)
9972(30)

In Details…

All those steps and observation occurs after the upgrade of the server. No action are required for the following to occur.

  • First, it will trigger an Update Distribution Point on packages mentioned before:
    • Notice that the actual distribution will fail on all Pull Distribution point because they haven’t been upgraded yet
    • It took more than an hour to see the failure on all Pull DP

9972(14)

  • All Pull DP will turn red in the distribution point configuration status

9972(16)

  • While this happen, Pull DP Upgrade will be running 50 concurrent upgrade at a time
    • Monitor it through DistMgr.log

9972(32)

9972(31)

  • Pull DP will start to report Upgrade successfully completed

9972(18)

  • An SQL query will list the progress of the global PullDP Upgrade successfull

[su_note note_color=”#cbcbcb” radius=”8″]select * from v_DistributionPointMessages where MessageID=’2399′ order by LastStatusTime[/su_note]

9972(17)

  • Once flagged as Upgraded successfull, it will automatically retry to send packages
Pull DP Upgrade
  • Slowly, Pull DP will be back to green state as distribution is successful. At one point, we had close to 2000 active distribution pending.
Pull DP Upgrade
  • Eventually, success distribution will go up
    • This took almost 48 hours to fully complete

Pull DP Upgrade

  • After the packages are sent, the client will automatically update to the new version
Pull DP Upgrade
  • Note that the client didn’t upgrade prior to this point because of the boundary configuration we had
    • The Pull DP was the only available Distribution point for itself

Pull DP Upgrade

Hope this post will help you plan your next upgrade 🙂

 

 

Comments (8)

rocada

03.02.2018 AT 01:32 PM
if you have multiple providers in your env.. your scripts for your dp limits will fail this should use the first one $providerMachine = $providerLocation[0].Machine $sitecode = $providerLocation[0].SiteCode

Jim

09.11.2017 AT 09:38 PM
State Migration Points killed us on our last upgrade, it took days to complete the upgrade. Note to self: Use SMP's sparingly in a large environment!

Jonathan Lefebvre

09.13.2017 AT 07:50 AM
Thanks for the feedback Jim! There's not much out there about large SCCM environment upgrades... Jonathan

keshav

05.04.2017 AT 03:39 AM
Great info 🙂 Just checked that some of our Pull DP's are not upgraded after 1610 upgrade. Is there anyway to manually upgrade them or re-initiate upgrade process.

Jonathan Lefebvre

05.04.2017 AT 08:33 AM
Hi Keshav, I would try to first upgrade the SCCM client and see how it goes. If this is not enough, I would change the PullDP, back to a regular Distribution Point, and then go back to PullDP, so PullDP.msi run again. Jonathan

Tom

01.11.2017 AT 07:59 PM
I think there is an issue with the Set DPUpgradeThreadLimit script. It would appear a copy/paste added extra html - do not belong in Powershell scripts. 🙂

Qian Ming Ji

03.01.2016 AT 04:21 AM
good point ! 🙂 as always