SMS/ConfigMgr Client Package Cache Info

By request, the version of packages in ConfigMgr Client Cache.  Since I noticed the wmi namespace is different for SMS 2003 clients vs. ConfigMgr clients, if you have SMS2003, use the SMS2003 edit in sms_def.mof, if you are running ConfigMgr07, use the ConfigMgr edit.

Use this one if SMS2003:

//  <:[-<>>>>>>>>>>Start>>-SMS Client Cache Info-<<Start<<<<<<<<>-]:>
//`'`*._.*`'`*-
//  SMS Client Cache Info Reporting Class - FOR SMS2003
//`'`*._.*`'`*-

#pragma namespace ("\\\\.\\root\\cimv2\\sms")

[ SMS_Report(TRUE),
  SMS_Group_Name ("Cache Info"),
  Namespace ("root\\\\ccm\\\\softmgmtagent"),
  SMS_Class_ID ("CUSTOM|CACHE_INFO|1.0") ]
Class CacheInfo : SMS_Class_Template
{
 [SMS_Report (TRUE),key  ] string   CacheID;
 [SMS_Report (TRUE)      ] string   ContentID;
 [SMS_Report (TRUE)      ] uint32   ContentSize;
 [SMS_Report (TRUE)      ] string   ContentVer;
 [SMS_Report (TRUE)      ] datetime LastReferenced;
 [SMS_Report (TRUE)      ] string   Location;
 [SMS_Report (TRUE)      ] uint32   ReferenceCount;
 };

//  <:[-<>>>>>>>>>END>>-SMS Client Cache Info-<<END<<<<<<<<<<<<<<>-]:>

 Use this one if ConfiMgr07: 

//  <:[-<>>>>>>>>>>Start>>-SMS Client Cache Info-<<Start<<<<<<<<>-]:>
//`'`*._.*`'`*-
//  SMS Client Cache Info Reporting Class - FOR ConfigMgr 07
//`'`*._.*`'`*-

#pragma namespace ("\\\\.\\root\\cimv2\\sms")

[ SMS_Report(TRUE),
  SMS_Group_Name ("Cache Info"),
  Namespace ("root\\\\ccm\\\\softmgmtagent"),
  SMS_Class_ID ("CUSTOM|CACHE_INFO|1.0") ]
Class CacheInfoEx : SMS_Class_Template
{
 [SMS_Report (TRUE),key  ] string   CacheID;
 [SMS_Report (TRUE)      ] string   ContentID;
 [SMS_Report (TRUE)      ] uint32   ContentSize;
 [SMS_Report (TRUE)      ] string   ContentType;
 [SMS_Report (TRUE)      ] string   ContentVer;
 [SMS_Report (TRUE)      ] datetime LastReferenced;
 [SMS_Report (TRUE)      ] string   Location;
 [SMS_Report (TRUE)      ] uint32   PersistInCache;
 [SMS_Report (TRUE)      ] uint32   ReferenceCount;
 };

//  <:[-<>>>>>>>>>END>>-SMS Client Cache Info-<<END<<<<<<<<<<<<<<>-]:>

Append the mof edit to the bottom of inboxes\clifiles.src\hinv\sms_def.mof on your primary site servers.  If you are SMS2003, no mofcomp of the mof is necessary on your clients, the namespace already exists, it's just a policy change.

Published Tuesday, June 16, 2009 7:11 PM by skissinger

Comments

# re: SMS/ConfigMgr Client Package Cache Info

Good catch.

Wednesday, June 17, 2009 10:44 AM by Tom_Watson