Answered by:
sms_def.mof file question

Question
-
OK, I used the archive_reports.sms file to capture the inventory .xml. Using our current production .mof file the inventory .xml was 878KB in size.
I then turned on everything in the sms_def.mof file. So every place there was a (FALSE) it was changed to (TRUE). I reran the inventory and there were 2 .xml files. One was 31KB and the second was 8KB in size.
If I turned on everything why would the inventory .xml file(s) be so much smaller? Unless it choked on something?mqh7
Tuesday, May 1, 2012 8:37 PM
Answers
-
It does sound like you have a problem.... There is no way that it could be smaller. Take a look at the InventoryAgent.log for errors.
http://www.enhansoft.com/
- Marked as answer by Sabrina Shen Thursday, May 31, 2012 9:10 AM
Friday, May 4, 2012 11:58 AM
All replies
-
You are not preforming a FULL inventory, that would be a delta inventory. You can confirm this by looking at the inventoryagent.log.
Use SCCM client center to force a full inventory.
http://www.enhansoft.com/
- Proposed as answer by Sherry Kissinger Tuesday, May 1, 2012 11:58 PM
Tuesday, May 1, 2012 9:14 PM -
I installed the Client Tools and ran a full inventory. With everything in the .MOF set to (TRUE) the inventory file was 2691KB. That does not seem all that bad. Others had mentioned it can't be greater than 50MB, how could a hardware inventory ever even be over 5MB much less 50MB?
And once each machine runs this full .mof file inventory then it will only do a delta from that point on correct?
mqh7
Wednesday, May 2, 2012 4:10 PM -
It is easy to hit the 50 MB limit, not all clients will do it, most will not hit that limit. Try a Citrix server with Shortcuts enable, I have seen a MIF being over 100 MB.
http://www.enhansoft.com/
Wednesday, May 2, 2012 4:28 PM -
I must be doing something wrong.
.
I deleted all .XML files from the \ccm\inventory\temp folder.
I made sure our current PROD sms_def.mof file was in the hinv folder on the primary site.
I then stoppped and restarted the SMS Executive service on the primary site.
Then using the client tools I forced a full HW inventory on my 1 test PC. The file size was 2694KB
.
I then deleted the .XML files from the \ccm\inventory\temp folder.
I made sure the FULL sms_def.mof file was in the hinv folder on the primary site. This has everything set to (TRUE)
I then stoppped and restarted the SMS Executive service on the primary site.
Then using the client tools I forced a full HW inventory on my 1 test PC. But this time the .xml file was only 2711KB
.
that is barely larger than the first inventory and it should be far bigger right? So I must be doing something wrong. What step did I miss?mqh7
Wednesday, May 2, 2012 4:53 PM -
Garth, if this is all about hardware inventory how would shortcuts even matter? Or is this file both HW & SW inventory?
mqh7
Wednesday, May 2, 2012 5:41 PM -
Sorry, honestly I did not read the entire thread. I had to stop at "every place there was a (FALSE) it was changed to (TRUE)" I think anytime you change the mof it makes a backup copy. I can't recall where that is stored. I'd suggest your first step be find that and put it back. You cannot enable EVERYTHING, the server cannot process that because it will be too big. You can increase the default 5mb to a max of 50. (I blogged how to do that) but that's it.
Garth is talking about the AI classes. Shortcuts in the AI classes make HUGE inventory filles, especially from Citrix servers.
John Marcum | http://myitforum.com/cs2/blogs/jmarcum/|
Wednesday, May 2, 2012 7:26 PM -
Everything within the sms_def.mof is HW inv., this includes Add/Remove Programs data and all AI data, etc. So if you want everything that would be everything…..
BTW, I force a full inventory on my primary site server (only) and my full inventory file is just over 2 MB. I don’t have everything turned on but I do have some extra stuff, in my sms_def.mof. :-) I would have thought it was bigger than 2 MB but..
http://www.enhansoft.com/
Wednesday, May 2, 2012 8:05 PM -
John, our CIO said to turn on everything even though we've told him Microsoft says don't do it. We even had an SCCM product specialist who works for Microsoft say don't do this. So any documentation you can point me to that explains why you don't do this would be great. We are a global company with offices in 20 countries and our CIO wanted (and got) access to SCCM and the DB so he can write his own reports. That is what I have to deal with :-(
.
Now, that said if you do turn on everything and you are using the archive_reports.sms file do you still need to increase the registry on the server? Shouldn't the .XML file get created locally and then if the server registry can't support over 5MB just leave the .XML on the client? Or can a client even process a .mof that has everything enabled?
mqh7
I just confirmed that our MAX MIF SIZE reg key is set to 50000000. So that should support 50MB and it still does not create a huge .XML file.- Edited by mqh7 Wednesday, May 2, 2012 8:13 PM
Wednesday, May 2, 2012 8:09 PM -
That made my day. One of the funniest things I've heard in a long time. Maybe this will help you...
http://myitforum.com/cs2/blogs/jmarcum/archive/2009/02/02/129185.aspx
I wrote this when I enabled just all the AI stuff, not EVERYTHING and the desktop icons on my citrix servers was generating huge mif files. It simply not possible to enable EVERYTHING. If your CIO doesn't believe you tell him to call CSS and tell them "I enabled EVERYTHING in the sms_def.mof and now I am not getting inventory" and see what they tell him to do. Or for 300.00 per hour less restore the default file and enable only what you need. :-)
John Marcum | http://myitforum.com/cs2/blogs/jmarcum/|
Wednesday, May 2, 2012 8:16 PM -
Okay, I am still having an odd problem.
I am using the SCCM Client Tools that I downloaded from MyITForum. I use this to force a Full HW inventory on my test machine. When I run a full HW inventory using our current production sms_def.mof file the .xml file is 3452KB. I then replace that .mof file with the new .mof file that has everything enabled. I force a full HW inventory and the .XML file is only 1034KB.
.
How can it be smaller? I did increase the MAX MIF SIZE reg key on the Primary to allow for 50MB inventory files too. So I don't know why it would be smaller.
mqh7
Thursday, May 3, 2012 2:19 PM -
It does sound like you have a problem.... There is no way that it could be smaller. Take a look at the InventoryAgent.log for errors.
http://www.enhansoft.com/
- Marked as answer by Sabrina Shen Thursday, May 31, 2012 9:10 AM
Friday, May 4, 2012 11:58 AM