You can add, change, or delete any part of an IDMIF file in any of the following ways:
//FullResync<1>
//ResyncAgent<1>
//ResyncClass<ClassName><1>
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:
Pragma = "sms:add"
Pragma = "sms:update"
Pragma = "sms:delete"
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 type | Adding a new group | Updating a group | Deleting a group | Agent 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 computer | Add 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
To replace a value in an IDMIF file
//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.
%Windir%\MS\SMS\Idmifs
For example:
copy test.mif c:\%Windir%\MS\SMS\Idmifs