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 SQL Reporting for Client Cache Sizg

    SCCM ConfigMgr SQL Reporting for Client Cache Sizg

    Eswar KonetiBy Eswar KonetiJuly 16, 6:02 pm2 Mins Read CM2012 7,804 Views
    Share
    Facebook Twitter LinkedIn Reddit

    By Default,Client Cache information is not collected by Configuration Manager.You should do some customizations to get it working.

    This blog post talks about how to create Custom MOF file and import into SCCM as custom hardware inventory class which will be applied onto clients as policy to get the information from WMI .

    Save the below code into file with file_name.mof.

    [ SMS_Report (TRUE),
    SMS_Group_Name ("SMS Advanced Client Cache"),
    SMS_Class_ID ("SMS_ADVANCED_CLIENT_CACHE"),
    Namespace ("\\\\\\\\.\\\\root\\\\ccm\\\\softmgmtagent") ]
    class CacheConfig : SMS_Class_Template
    {
    [ SMS_Report (TRUE), key ]
    String     ConfigKey;
    [ SMS_Report (TRUE) ]
    Boolean     InUse;
    [ SMS_Report (TRUE) ]
    String     Location;
    [ SMS_Report (TRUE) ]
    UInt32     Size;
    };

    Note:Please Replace the Quotes (‘”) ,blog converts them to fancy.

    Open Configmgr 2012 Console,Move onto Administration pane—>Client Settings ,you see Default Client settings.

    Note :Don't try to do it on custom client hardware inventory settings which you have created ,If you do so,it will not work.

    Below is error code what you get if you try to import to Custom hardware inventory settings.

    “The following classes for which you are trying to import settings do not exist.  Import the required class definitions and then try to import the settings again.”

    image Always import /Add the custom hardware inventory classes onto Default Client settings .These changes will be automatically flow into Custom client hardware inventory settings.

    image Click on Set Classes and then Click on Import

    image

    Select the MOF file that we created above.

    image

    Select what is required for you.

    image Monitor dataldr.log on the site server if these changes successfully processed or not ?

    image

    From above we conclude that,these changes are inserted into Database.

    You can also verify from UI ,select what fields you required and what not .image

    From the SCCM client machine,you see the following changes when the hardware inventory schedule runs:

    Inventoryagent.log

    image

    Below is the collection, you can create to know how man clients do not meet the required cache size.

    select *  from  SMS_R_System inner join SMS_G_System_SMS_ADVANCED_CLIENT_CACHE on SMS_G_System_SMS_ADVANCED_CLIENT_CACHE.ResourceId = SMS_R_System.ResourceId where SMS_G_System_SMS_ADVANCED_CLIENT_CACHE.Size < 10240

    Thanks to MOF Master Sherry for providing the MOF file.

    Cache client cache CM12 Collection for Client Cache configmgr configuration Manager Custom Inventory using MOF file Client Cache MOF Report Client Cache SCCM
    Share. Twitter LinkedIn Email Facebook Reddit

    Related Posts

    SCCM SQL Report – Compare Installed Apps on TWO Different Computers

    July 13, 10:35 am

    Optimize Your Intune Workflow with a Powerful Browser Extension

    March 22, 10:39 am

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

    February 11, 9:50 pm

    16 Comments

    1. Mopireddy on October 16, 2020 4:40 PM

      Could you help me with SQL view for this

      Reply
      • Eswar Koneti on October 21, 2020 11:22 AM

        Hi,
        You can get the SQL view from the dataldr.log. did you check it?

        Thanks,
        Eswar

        Reply
    2. Pavel Jarkovsky on October 18, 2017 7:00 PM

      Hello, is there anything else needed to do? I imported mof file, I can see class has been added, I can see view in database, no errors, but even I forced policy update and HW inventory on workstations, there are no data about cache size after one day.

      Reply
      • Eswar Koneti on October 19, 2017 11:08 AM

        Hi Pavel,
        Did you look at inventoryagent.log to see if the inventory about the cache sent to site server ? you should see the info in the log something like cacheconfig etc.

        Reply
        • Pavel Jarkovsky on October 19, 2017 1:45 PM

          Hi, thanks for reply. I checked few computers which sent HW inventory recently and there is nothing about collecting cache size in Inventoryagent.log. It looks like computers does not know that they should collect it.

          I double checked Default client settings and see no problem in inventory classes which should be collected.

          Reply
          • Pavel Jarkovsky on October 19, 2017 4:21 PM

            I'm not sure what happened, or if I made something I did not noticed, but it started to collect data now

            Reply
            • Eswar Koneti on November 9, 2017 9:47 AM

              It could be that, client did not send the inventory about cache so that might have got delayed.

              Regards,
              Eswar

              Reply
              • Pavel Jarkovsky on November 9, 2017 2:14 PM

                May be that reason, but is strange. There is almost 1700 active machines in environment and after it collected first data (about two or three days after I set it) it was collecting data from about 200 - 300 computers per day.

    3. Basti on June 14, 2017 9:48 PM

      Many thanks for the reporting, this is exactly what I was searching for. 🙂
      One question; the cache size (in your example 10240) in the qurey is in MB, correct?!

      Reply
      • Eswar Koneti on July 7, 2017 1:01 AM

        Hi Basti,
        Yes, that is in MB (10GB) but you can change however you want.

        Regards,
        Eswar

        Reply
    4. DenisH on July 19, 2016 10:06 PM

      Thank you for Eswar. This is very useful. 🙂

      Reply
      • Eswar Koneti on July 19, 2016 10:18 PM

        Hi Danish,
        You are welcome, glad it helped.

        Thanks,
        Eswar

        Reply
      • Eswar Koneti on July 25, 2016 3:51 PM

        Hi DeniSH,
        You are welcome.

        Thanks,
        Eswar

        Reply
    5. Nawaz Kazi on February 18, 2015 3:08 AM

      Hi,

      Can we have report for disk space usage on all servers in collection, Report should contain all size of folders on C drive excluding folder such as c:\program files c:\windows.

      Reply
      • Eswar Koneti on March 16, 2015 11:11 AM

        Did you try this link ? http://blog.configmgrftw.com/folder-size-inventory-using-configmgr/

        Reply
    6. Fosund on December 9, 2014 1:22 PM

      Nice one, 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.