Close Menu
    Facebook X (Twitter) Instagram
    Sunday, October 12
    X (Twitter) LinkedIn Reddit RSS
    All about Endpoint Management
    • Home
    All about Endpoint Management
    Home»CM2012»SCCM Configmgr 2012 SSRS Report Clients assigned to what Management points

    SCCM Configmgr 2012 SSRS Report Clients assigned to what Management points

    Eswar KonetiBy Eswar KonetiJanuary 08, 2:18 pm5 Mins Read CM2012 16,170 Views
    Share
    Facebook Twitter LinkedIn Reddit

    Brief information about proxy MP before we jump into the subject. Proxy Management Point(On Secondary Site) used mainly to avoid the excessive bandwidth usage over Slow Network links between clients located in the boundaries of a secondary site

    By Default,Proxy management Point and Distribution Point role will be enabled and installed with secondary site. More information about Proxy Management Point,read Technet and msdn blog

    The concept of Boundaries are changed in SCCM 2012 comparing with its previous version SCCM 2007.You should configure the Boundaries and Boundary group correctly .To know more ,refer Jason Blog explaining about Secondary Site and boundary Groups

    Recently ,I come across request asking for ,how many clients,specific secondary site is supporting /responsible for.

    Did you ever come across ,knowing the Client secondary Site Proxy management or Resident Management point ? How to get the Secondary Site code for clients residing in its boundaries into Database ?

    As you know,you can not create report or collection based on the Secondary site Code because the site code for clients residing in boundaries of secondary always show as  Primary Site Code(PRI) .

    If you look at the Configuration manager applet of client which is residing in the secondary site boundary, you can see proxy Management ,Resident Management Point and its Assigned Management Point information.

    image

    Updated: This blog is updated to apply this for Configmgr 2007 with MOF Code (only if you do not have client status reporting tool installed) and also a simple way to get the clients assigned* to Management Point.

    For Configmgr 2012:

    If you remember in SCCM 2007,v_CH_ClientSummary View handles information about client status like reporting,health etc.This view will be created if you had installed client status reporting tool.

    In Configmgr 2012, Client status and client activity information is integrated ,you don’t need to install status reporting tool as you do in Configmgr 2007.

    Below is the SQL Query which you can run from SQL Management studio to know the count of clients assigned to Management Points (could be assigned MP or Proxy MP)

    Just use the below SQL query to create SSRS Report or use in in SQL management Studio:

    select UPPER(SUBSTRING(lastmpservername, 1, CHARINDEX('.', lastmpservername) -1 )) as 'Management Point',
    count(lastmpservername) as 'Total Clients'
    from v_CH_ClientSummary
    group by lastmpservername
    order by lastmpservername desc

    How simple isn’t it ?

    If you want to know the proxy MP or Resident MP etc,then you should consider reading below information.

    From the configuration manager applet shown above ,we are sure that,this information is pulling from wmi isn't it ? .we need to find out the Namespace and classes which can be enabled in hardware inventory classes.

    Client properties information is stored in root\ccm namespace.You will find interesting information from this name space about client like its client ID,Client ID Change Date, Installed Components, User Logon events etc, which is not available by default in Configmgr Database.To know more about available classes,you can run wbemtest and connect to \\root\ccm name space,click enum classes,recursive and explore the existing classes like SMS_LOCALMP and SMS_MPProxyInformation.

     

    image

    How do we get this information into SCCM Database ?as usual,through MOF file ? Nope ,now we are in 2012 not in 2007.SCCM 2012 made it very easy to enable custom inventory classes.

    Go to your primary Site console,administration node—>Client settings—>Click on the properties of Default client settings.(You can not import any custom inventory classes to custom Client agent settings,you should always enable them in default Client agents),click on set Classes from hardware inventory

    image

    Click on Add

    image

    Click on connect,you can connect to wmi of any SCCM Client computer to get the required WMI classes

    image

    connecting to the computer which has sccm client installed.

    image

    image

    if you are interested in other classes,you can select them as well.Click ok,ok

    image

    Before you confirm the changes,make sure what information do you really required.Click ok and ok on the Default Client agent settings.

    These changes are tracked by dataldr.log(F:\sccm\logs) for the creation of views in Database.You see something like this.

    image

    It takes a while to load the policy to the client machines(based on machine policy interval) ,send client inventory information to site server to process into Database.

    If you need quick results,trigger machine policy and hardware inventory policy on the local server,wait for results to come up in the Database.

    The two SQL views created are: V_GS_LOCALMP and V_GS_SMS_MPPROXYINFORMATION
    Below is SQL Query to know the count of computers under the Secondary Sites.

    select LM.name0 [Secondary Site],LM.sitecode0 [Site Code],LM.mastersitecode0[Master Site],
    Count(*) [Total Clients] from v_gs_sms_localmp  LM,v_R_System sys
    where sys.ResourceID=lm.resourceid
    and sys.Active0=1 and lm.index0=1
    group by lm.name0,lm.sitecode0,LM.mastersitecode0

    image

    For Configmgr 2007:

    If you are running on SCCM 2007 and want to know count of clients how they are assigned ,add the below lines to the bottom of your sms_def.mof file on the central Site(changes will flow down to its child sites).

    //-------------------------------Management Point Info---------------//////////////

    [ SMS_Report (TRUE),
    SMS_Group_Name ("SMS_LocalMP"),
    SMS_Class_ID ("MICROSOFT|SMS_LOCALMP|1.0"),
    Namespace ("root\\\\ccm") ]
    class SMS_LocalMP : SMS_Class_Template
    {
    [ SMS_Report (TRUE) ]
    String     Capabilities;
    [ SMS_Report (TRUE) ]
    UInt32     Index;
    [ SMS_Report (TRUE) ]
    String     MasterSiteCode;
    [ SMS_Report (TRUE) ]
    String     Name;
    [ SMS_Report (TRUE) ]
    String     Protocol;
    [ SMS_Report (TRUE) ]
    String     SiteCode;
    [ SMS_Report (TRUE) ]
    UInt32     Version;
    };

    //--------------------------End here---------------------//

    Note: make sure you replace the quotes (“)with original as blog convert them to fancy otherwise you will get into trouble Smile.

    After you save the file,monitor the logs for any errors as said above,wait for sometime and you are ready to create report. You can Use above SQL query .

    clients Management Point lookup Preferred Management point Proxy Proxy Management Point Resident Management Point root\ccm\ sccm report SCCM Report for Secondary Site code Secondary Site Secondary Supporting SMS_LOCALMP SSRS Report v_CH_ClientSummary
    Share. Twitter LinkedIn Email Facebook Reddit

    Related Posts

    SCCM SQL Report – Compare Installed Apps on TWO Different Computers

    July 13, 10:35 am

    Migrate Microsoft 365 Updates from SCCM/MECM to Intune for Co-Managed Devices

    February 11, 9:50 pm

    Investigating Co-Management Issues with Windows Endpoints in SCCM/Intune

    October 26, 10:45 pm

    9 Comments

    1. rahul on February 2, 2017 4:24 PM

      SCCM 1511 - i need query for the systems reporting or downloading data from which DP. So ideally it should show System name, DP name, MP name

      Reply
      • Eswar Koneti on February 2, 2017 4:53 PM

        Hi Rahul,
        There is no direct method to find out which DP,client is connecting as it involves many factors like ,fallback or slow Wan etc.You can try the default report ConfigMgr_sitecode > Software Distribution - Content > Distribution point usage summary or http://blog.coretech.dk/kea/coretech-distribution-point-utilization-monitor/

        Regards,
        Eswar

        Reply
    2. Gobu Rajendran on October 24, 2016 8:21 PM

      Hi Eswar,

      Is there a way to find how many computers talking with the IBCM ? or how many computer taking policies from IBCM MP ?

      Reply
      • Eswar Koneti on October 24, 2016 10:05 PM

        when you have your SCCM running on https (PKI infra) ,clients will first choose https communication rather http .
        I do not have IBCM running to check on this but you can use the existing views that i mentioned in the report to check clients per MP (if MP is running on https or http).

        Regards,
        Eswar

        Reply
    3. caz on March 17, 2014 6:09 PM

      can you please assist with the changes to the sms_def.mof to get the same for sccm 2007?

      Reply
      • Eswar Koneti on March 19, 2014 8:47 AM

        if you have installed Client status reporting tool,you should have this information from v_CH_ClientSummary(check if you have this view or not ) else you would need to edit the mof file.
        I will update the blog post on this with mof information.

        Reply
    4. Caz on March 17, 2014 6:04 PM

      Hi E. Can you please assist with the changes I need to make to sms_def.mof get to the how many clients report to the proxy management points/secondary sites in sccm 2007 please. I am new to SCCM and have difficulty finding this info.

      Reply
      • Eswar Koneti on March 19, 2014 8:48 AM

        watch out for updated post soon!

        Reply
    5. Prashant on January 11, 2014 4:37 PM

      Really helpful post. Thanks!

      Reply

    Leave a ReplyCancel reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Sign Up

    Get email notifications for new posts.

    Author

    I’m Eswar Koneti ,a tech enthusiast, security advocate, and your guide to Microsoft Intune and Modern Device Management. My goal? To turn complex tech into actionable insights for a streamlined management experience. Let’s navigate this journey together!

    Support

    Awards

    Archives

    © Copyright 2009-2025 Eswar Koneti, All rights reserved.

    Type above and press Enter to search. Press Esc to cancel.