SMS: Err Msg: ERROR 2 Failed to Run MofComp

ID: Q237495


The information in this article applies to:


SYMPTOMS

When you modify the default Sms_def.mof file that comes with Systems Management Server 2.0 Service Pack 1, you may not be able to compile the MOF on the client computer during a hardware inventory cycle. The Hinv32.log file contains any of the following error messages:

ERROR 2 - Failed to run MofComp !
or
Error Syntax 0X007F


CAUSE

This issue occurs because the MOF Manager tool (Mofman.exe) inserts 8 blank classes at the top of the Sms_def.mof file when you save it. When the Hardware Inventory Agent on the client computer attempts to compile the new Sms_def.mof file, it fails because of the blank classes.


WORKAROUND

WARNING: The Sms_def.mof file located on the site server is the source for hardware inventory data to query on all clients in the site. You need to be careful when you edit this file.

To avoid this problem, use Notepad to make changes to the Sms_def.mof file instead of the MOF Manager tool. To do this, follow these steps:

  1. Open the \SMS\Inboxes\Clifiles.Src\Hinv folder on the site server.


  2. Use Notepad to open the Sms_def.mof file.


  3. Find the section at the top of the file which looks like the following text:


  4. 
    //==================================================================
    // Register SMS CIMV2 Provider
    //==================================================================
    
    #pragma namespace ("\\\\.\\root\\cimv2\\SMS")
    
    	[SMS_Report(FALSE),
    	SMS_Group_Name(""),
    	SMS_Class_ID("")]
    class 
    {
    }; 
  5. The following lines should appear eight times in this section. Delete these lines.


  6. 
    	[SMS_Report(FALSE),
    	SMS_Group_Name(""),
    	SMS_Class_ID("")]
    class 
    {
    }; 
  7. Save the SMS_Def.MOF using Notepad. Do not add the .txt extension to the file name when you save the file.



STATUS

Microsoft has confirmed this to be a problem in Systems Management Server version 2.0.

Additional query words: prodsms SMS20POSTSP1


Keywords          : kbenv kbtool kbSMS200 kbSMS200bug 
Version           : winnt:2.0
Platform          : winnt 
Issue type        : kbbug 

Last Reviewed: August 9, 1999