Changing IDMIF Files with Resynchronizations
and Pragma Statements

You can add, change, or delete any part of an IDMIF file in any of the following ways:

Pragma statements are messages to Inventory Data Loader that can be inserted into SMS IDMIF files. You can use pragma statements to direct Inventory Data Loader to add new groups, change groups, or delete groups within IDMIF files.

Pragma statements are used only with no history MIF files (*.nhm), not with MIF files (*.mif).

You might find the following three pragma statements especially useful when you use no history MIF files within SMS:

The following pragma statement is sometimes found in SMS 2.0 MIFs, but it is not necessary with the SMS site database and is not typically used in SMS:

Pragma = "sms:lookup"

Pragma statements can apply to any group within the MIF file. You insert them in the following location within any group:

Start Group           Name = "Equipment"          ID = 1          Class = "Equipment"          Key = 3,5          <pragma statement inserted here>          Start Attribute

The following table provides strategies for the three most common tasks you will perform when working with custom MIF files.


Table 10.2 Strategies for Common IDMIF File Tasks

IDMIF file typeAdding a new groupUpdating a groupDeleting a groupAgent ID
NHM file for custom architecture or stand-alone computer Add the new group and include the “sms:add” pragma statement.Make updates and change the pragma statement to “sms:update”.Change the pragma statement to “sms:delete”.Agent optional
MIF file for custom architecture or stand-alone computerAdd the new group to the MIF file.Make updates to the MIF file to reflect the changes.Delete the group from the MIF file.Agent optional

You can change or delete groups within an IDMIF file instance by modifying the MIF file as described in the following procedure. After you modify the MIF file, place it in the target directory on the client:

%Windir%\MS\SMS\Idmifs

Procedure Bullet  To replace a value in an IDMIF file

  1. Prepare an IDMIF file that includes the change you want. Use your name or another identifier as the agent ID. You can modify the IDMIF file that originally created the value, or you can create a new IDMIF file that changes whatever values you want modified.
  2. In the IDMIF file, add a Resync or a pragma statement. If you want to replace the entire architecture, use the following comment:
  3. //FullResync<1>

    To replace an attribute class, use the following comment:

    //ResyncClass<ClassName><1>

    To replace everything in the architecture for the unique ID that was added by this agent, use the following comment:

    //ResyncAgent<1>

    Or, you can use a pragma statement for no history MIF files, as described earlier.

  4. Place the IDMIF file in the target directory on the client:

    %Windir%\MS\SMS\Idmifs

    For example:

    copy test.mif c:\%Windir%\MS\SMS\Idmifs