A custom status MIF file does not return a "10009 - success" installation status message as expected in SMS 2003

Symptoms

In Microsoft Systems Management Server (SMS) 2003, a custom advertisement status Management Information Format (MIF) file is sometimes generated by a program such as Ismif32.exe. However, the SMS client does not always correctly report the package installation status from the MIF file. Instead, the package returns the following generic status message ID:
10008 -success
You expect the package to return the following custom status message ID:
10009 - success
Additionally, the following message is logged in the Execmgr.log file:
execmgrProgram exit code 0

execmgrLooking for MIF file to get program status
The following message should be the next entry in this log file:
A Matching MIF file mif name was found
However, this entry does not exist.

Cause

This problem occurs because Execution Manager requires data in one of the status matching fields. By default, these fields are blank.

Note These status matching fields are located on the Reporting tab in the package properties.

Workaround

To work around this problem, add the name that is defined in the
ISMIF32.EXE -p Name parameter to the NAME field on the package properties Reporting tab. By doing this, you enable the Execution Manager component to find a match between the package and the MIF file. You can also add the MIF File Name, Version, and Manufacturer fields, but these fields are not required.

This workaround requires that the Ismif32.exe command line include the -f Mif File name and -p Name switches. However, for status MIF matching to occur, only the Name value for the -p switch must be entered in the Name field on the Reporting tab of the corresponding package properties.


The MIF file is created in the Temp folder of a program's user context when that program runs. If the status MIF matching is successful, the MIF file will be automatically deleted from the Temp folder.


A failed attempt to match an MIF file leaves the orphaned MIF file in the Temp folder. To determine the Name value from an existing MIF file, open the MIF file in the Temp folder, and then locate the value in the following section:
START ATTRIBUTE

NAME Product
ID = 2

ACCESS = READ-ONLY

STORAGE = SPECIFIC

TYPE = STRING(64)

VALUE = SMS
END ATTRIBUTE
In the following sample command line, the MIF file name is "MYMIF," and the Name value is "SMS":
Ismif32.exe -f MYMIF -p SMS -d "Completed successfully"

Verify that the name in the "Value =" field matches the name in Name field on the Reporting tab. For example, if "Value = SMS" appears in the MIF file, "SMS" is entered in the Name field on the Reporting tab. Correct the information in the Name field if you have to, and then rerun the program. This action generates the Mymif.mif file that, in turn, generates the 10009 exit code.

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

More Information

The switches map to the Reporting tab fields as follows:

MIF file nameValue entered for -f
NameValue entered for -p
VersionValue entered for -v
PublisherValue entered for -c
You may experience this problem when you run any program that creates a status MIF file. However, if the program is also set to create an entry in the Name field for status MIF matching, you will not experience this problem.

References

For more information about parameters that are used by the Ismif32.exe process, click the following article number to view the article in the Microsoft Knowledge Base:

186415 Status MIF creator, Ismif32.exe, is available for Systems Management Server 1.2

268791 How a status Management Information Format (MIF) file produced by the ISMIF32.exe file is processed in SMS 2.0

Propriedades

ID do Artigo: 916797 - Última Revisão: 27 de out de 2006 - Revisão: 1

Comentários