Reporting Carpool Inventory

Use the following IDMIF to report carpool inventory data to SMS. You must use IDMIFs to report inventory data for non-system resource types (architectures).

//Architecture<Carpool>
//AgentID<Vehicle Discovery>
//UniqueID<9FD7821T8B14751>

Start Component
   Name = "Carpool"
   Start Group
      Name = "Carpool"
      ID = 1
      Class = "Carpool"
      Key = 1
      Start Attribute
         Name = "VIN"
         ID = 1
         Type = String(15)
         Value = "9FD7821T8B14751"
      End Attribute
      Start Attribute
         Name = "Make"
         ID = 2
         Type = String(15)
         Value = "Pontiac"
      End Attribute
      Start Attribute
         Name = "Model"
         ID = 3
         Type = String(15)
         Value = "Bonneville"
      End Attribute
      Start Attribute
         Name = "ModelYear"
         ID = 4
         Type = Integer
         Value = 1996
      End Attribute
      Start Attribute
         Name = "LicenseNumber"
         ID = 5
         Type = String(8)
         Value = "ABC123"
      End Attribute
      Start Attribute
         Name = "Color"
         ID = 6
         Type = String(16)
         Value = "Green"
      End Attribute
      Start Attribute
         Name = "Engine"
         ID = 7
         Type = String(10)
         Value = "3.8L V6"
      End Attribute
      Start Attribute
         Name = "Mileage"
         ID = 8
         Type = Integer
         Value = 35714
      End Attribute
   End Group

   Start Group
      Name = "Tires"
      ID = 2
      Class = "Tires"
      Key = 1
      Start Attribute
         Name = "VIN"
         ID = 1
         Type = String(15)
         Value = "9FD7821T8B14751"
      End Attribute
      Start Attribute
         Name = "Brand"
         ID = 2
         Type = String(15)
         Value = "Les Schwab"
      End Attribute
      Start Attribute
         Name = "Model"
         ID = 3
         Type = String(20)
         Value = "Wild Cat"
      End Attribute
      Start Attribute
         Name = "Size"
         ID = 4
         Type = String(10)
         Value = "17R70/250"
      End Attribute
      Start Attribute
         Name = "LastRotatedMileage"
         ID = 5
         Type = Integer
         Value = 33350
      End Attribute
      Start Attribute
         Name = "InstalledMileage"
         ID = 6
         Type = Integer
         Value = 0
      End Attribute
   End Group

   Start Group
      Name = "Service"
      ID = 3
      Class = "Service"
      Key = 1
      Start Attribute
         Name = "ServiceNumber"
         ID = 1
         Type = Integer
         Value = 12345
      End Attribute
      Start Attribute
         Name = "VIN"
         ID = 2
         Type = String(15)
         Value = "9FD7821T8B14751"
      End Attribute
      Start Attribute
         Name = "ServiceDate"
         ID = 3
         Type = String(12)
         Value = "02/12/1999"
      End Attribute
      Start Attribute
         Name = "Mileage"
         ID = 4
         Type = Integer
         Value = 33350
      End Attribute
      Start Attribute
         Name = "ServiceType"
         ID = 5
         Type = String(6)
         Value = "LOF"
      End Attribute
      Start Attribute
         Name = "Comments"
         ID = 6
         Type = String(255)
         Value = ""
      End Attribute
   End Group

End Component

Place the IDMIF in the inventory inbox on the site server, Sms\Inboxes\Inventry.box, where it is processed by the Inventory Data Loader. The loader creates the following new inventory classes if they do not already exist:

  • SMS_G_Carpool_CARPOOL
  • SMS_G_Carpool_TIRES
  • SMS_G_Carpool_SERVICE

The inventory data loader associates the inventory data with the resource data by searching the Carpool resource type (SMS_R_Carpool) for an instance whose SMSUniqueIdentifier value equals the value of UniqueID.

You must perform the following steps after the IDMIF is processed and when the site server is rebooted.

Note  Do not perform these steps on Systems Management Server version 2.0 Service Pack 1 or later releases.

  • Stop the Winmgmt service.

    Enter net stop winmgmt on the command line.

  • Remove the CIM repository.

    Delete all files in the %Winnt%\System32\Wbem\Repository directory.

  • Start the Winmgnt service.

    Enter net start winmgmt on the command line.

For more information on writing IDMIFs, see "Customizing Hardware Inventory" in the Microsoft® BackOffice Resource Kit documentation.