...and this one

http://blogs.msdn.com/b/alex_semi/archive/2011/12/20/increase-cm-cache-and-clean-it-2.aspx


Troy L. Martin | Principal Consultant
1E | Empowering Efficient IT
US Mobile: +1 678-898-6147
UK Mobile : +44 208 326 9141
[email protected]<mailto:[email protected]> | www.1e.com<http://www.1e.com/>

Facebook<http://www.facebook.com/1eglobal> | 
Twitter<https://twitter.com/1e_global/> | 
YouTube<http://www.youtube.com/1enews> | Blogs<http://blogs.1e.com/> | 
RSS<http://blogs.1e.com/index.php/feed/>
Please consider the environment before printing this e-mail

From: [email protected] [mailto:[email protected]] On 
Behalf Of Todd Hemsell
Sent: Wednesday, July 17, 2013 10:26 AM
To: [email protected]
Subject: Re: [mssms] CM12 - Inventory Cache Size and Usage

nice, thanks.
On Wed, Jul 17, 2013 at 8:57 AM, Troy Martin 
<[email protected]<mailto:[email protected]>> wrote:
...you may find this valuable as well.

http://blogs.msdn.com/b/alex_semi/archive/2011/12/15/increase-cm-cache-and-clean-it.aspx

Troy L. Martin | Principal Consultant
1E | Empowering Efficient IT
US Mobile: +1 678-898-6147
UK Mobile : +44 208 326 9141
[email protected]<mailto:[email protected]> | www.1e.com<http://www.1e.com/>

Facebook<http://www.facebook.com/1eglobal> | 
Twitter<https://twitter.com/1e_global/> | 
YouTube<http://www.youtube.com/1enews> | Blogs<http://blogs.1e.com/> | 
RSS<http://blogs.1e.com/index.php/feed/>
Please consider the environment before printing this e-mail

From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>] 
On Behalf Of Todd Hemsell
Sent: Monday, July 15, 2013 7:41 PM
To: [email protected]<mailto:[email protected]>
Subject: Re: [mssms] CM12 - Inventory Cache Size and Usage

nice! Thanks!
On Mon, Jul 15, 2013 at 4:32 PM, Daniel Ratliff 
<[email protected]<mailto:[email protected]>> wrote:
Keep in mind you cannot raise the cache size above 80 or 100 GB (can't 
remember) via the UI, batch, or .vbs. Actually opened a call with Microsoft and 
found out it works with PowerShell!

Here is the script we use to set the cache to 150GB. Name the file 
CacheSize.ps1 and we just run a 'Run Command Line' task in a task sequence. 
Should also work as a package/app. Defaults to 50GB if you don't specify a 
parameter.

powershell.exe -executionpolicy bypass -file CacheSize.ps1 153600

param(
    [int]
    $cachesize = 51200
)

$cache = Get-WmiObject -Namespace root\ccm\SoftMgmtAgent -Class CacheConfig

write-host "Current SCCM Cache Size:"$cache.size"MB." -foregroundcolor cyan
write-host ""
if ($cachesize -ge 51200) {
    write-host "Changing SCCM Cache Size to $cachesize MB..." -foregroundcolor 
cyan
    $cache.Size = $cachesize
    $cache.Put() | out-null
    write-host "Restarting CCMEXEC service..." -foregroundcolor cyan
    restart-service ccmexec
    write-host "Current SCCM Cache Size: "$cache.size  -foregroundcolor green
} elseif ($cachesize -lt 51200) {
    write-host "Changing SCCM Cache Size to 51200 MB..." -foregroundcolor cyan
    $cache.Size = 51200
    $cache.Put() | out-null
    write-host "Restarting CCMEXEC service..." -foregroundcolor cyan
    restart-service ccmexec
    write-host "Current SCCM Cache Size: "$cache.size  -foregroundcolor green
}

Daniel Ratliff

From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>] 
On Behalf Of Todd Hemsell
Sent: Monday, July 15, 2013 5:22 PM
To: [email protected]<mailto:[email protected]>
Subject: Re: [mssms] CM12 - Inventory Cache Size and Usage

God bless!

No, I need this one in particular because I am going to use the "persist 
content in cache" to handle self healing. So I need to know when the cache is 
getting full so I can raise it.

I will write a sscript to send the the "Full machines" that removes content not 
marked as persist, and if there is not enough room left after that, raise the 
cache size.

Other suggestions welcomed!

thanks again!

/Todd
On Mon, Jul 15, 2013 at 3:52 PM, Sherry Kissinger 
<[email protected]<mailto:[email protected]>> wrote:
[ 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;
};

Just save that as whatever-you-want.mof,  import that, if you have a CAS (I 
hope you don't but if you do), do so at the CAS.

need/want anything else?  what SQL puts in WMI? the LocalGroupmembers one? Dot 
Net versions?  Those are the most popular...

Sherry Kissinger
Microsoft MVP - ConfigMgr
[email protected]<mailto:[email protected]>
________________________________
From: Todd Hemsell <[email protected]<mailto:[email protected]>>
To: [email protected]<mailto:[email protected]>
Sent: Monday, July 15, 2013 3:36 PM
Subject: [mssms] CM12 - Inventory Cache Size and Usage

Has anyone edited the CM12 "mof" to collect information about the SCCM client 
cache?

TIA,

Todd





The information transmitted is intended only for the person or entity to which 
it is addressed
and may contain CONFIDENTIAL material. If you receive this material/information 
in error,
please contact the sender and delete or destroy the material/information.



________________________________


DISCLAIMER: This is a PRIVATE AND CONFIDENTIAL message for the ordinary user of 
this email address. If you are not the intended recipient, please delete 
without copying and kindly advise us by e-mail of the mistake in delivery. 
NOTE: Regardless of content, this e-mail shall not operate to bind 1E to any 
order or other contract unless pursuant to explicit written agreement or 
government initiative expressly permitting the use of e-mail for such purpose.





Reply via email to