home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / samples / sysmgt / ffst / probe / probe.mif < prev    next >
Text File  |  1999-05-11  |  10KB  |  278 lines

  1. start component
  2.     name        = "FFST Example code"
  3.     description = "This is the FFST Example code Component"
  4. //                                                        //
  5. // This is a particularly complicated file.  Fortunately you only need to deal //
  6. // with the section at the very bottom, where you put in the information related //
  7. // to your DMI triplet (Vendor Tag, Tag, and Revision. The rest of this file defines //
  8. // itself to DMI and layouts the fields of information that DMI will manage            //
  9. //                                                         //
  10. //////////////////////////////////////////////////////////////////////
  11. //                                                                  //
  12. //                      component id group                          //
  13. //                                                                  //
  14. //////////////////////////////////////////////////////////////////////
  15. // Component ID Group
  16.  
  17. //
  18. //   Enumerations for this group
  19. //
  20.            Start Enum
  21.              Name = "Verify_Type"
  22.              Type = Integer
  23.              0x00 = "An error occurred; check status code"
  24.              0x01 = "This component does not exist"
  25.              0x02 = "The verify is not supported"
  26.              0x03 = "Reserved"
  27.              0x04 = "This component exists, but the functionality is untested"
  28.              0x05 = "This component exists, but the functionality is unknown"
  29.              0x06 = "This component exists, and is not functioning correctly"
  30.              0x07 = "This component exists, and is functioning correctly"
  31.            End Enum
  32.  
  33.  
  34.     start group
  35.         name    = "ComponentID"
  36.         id      = 1
  37.         class   = "DMTF|ComponentID|1.0"
  38.         description = "This group defines attributes common to all components."
  39.                       "This group is required."
  40.  
  41.         start attribute
  42.             name    = "Manufacturer"
  43.             id      = 1
  44.             description = "The name of the manufacturer that produces this component."
  45.             access  = READ-ONLY
  46.             storage = COMMON
  47.             type    = STRING(64)
  48.             value   = "IBM Corp."
  49.         end attribute
  50.  
  51.         start attribute
  52.             name    = "Product"
  53.             id      = 2
  54.             description = "The name of the component."
  55.             access  = READ-ONLY
  56.             storage = COMMON
  57.             type    = STRING(64)
  58.             value   = "FFST Example code"
  59.         end attribute
  60.  
  61.         start attribute
  62.             name    = "Version"
  63.             id      = 3
  64.             description = "The version for the component."
  65.             access  = READ-ONLY
  66.             storage = COMMON
  67.             type    = STRING(64)
  68.             value   = ""
  69.         end attribute
  70.  
  71.         start attribute
  72.             name    = "Serial Number"
  73.             id      = 4
  74.             description = "The serial number for this instance of this component."
  75.             access  = READ-ONLY
  76.             storage = SPECIFIC
  77.             type    = STRING(64)
  78.             value   = ""
  79.         end attribute
  80.  
  81.         start attribute
  82.             name    = "Installation"
  83.             id      = 5
  84.             description = "The time and date of the last install of this component."
  85.             access  = READ-ONLY
  86.             storage = SPECIFIC
  87.             type    = DATE
  88.             value   = ""
  89.         end attribute
  90.  
  91.         Start Attribute
  92.             Name = "Verify"
  93.             Id = 6
  94.             Access = Read-Only
  95.             Storage = Specific
  96.             Type = "Verify_Type"
  97.             Description = "A code that provides a level of verification "
  98.                           "that the component is still installed and working."
  99.             Value = 0x07
  100.         End Attribute
  101.  
  102.     end group
  103.  
  104. //
  105. //  Software Product Group
  106. //
  107. //      This is the group that contains the software Vital Product
  108. //      Data attributes that identify the software product that is
  109. //      represented by this DMI component
  110. //
  111. //      This group is a template that defines the software product group
  112. //
  113. //      This definition should not be modified the actual values are found in the
  114. //       table which is after this template definition
  115. //
  116. //      There are two sample rows defined for the table, however the table can
  117. //       have one or more rows, what ever is correct for your component
  118. //
  119.  
  120.     start group
  121.         name    = "OS/2 Warp Software Product"
  122.         class   = "IBM_OS/2 Warp|SoftwareProduct|1.0"
  123.         description = "OS/2 Warp standard Software Product attributes"
  124.         key=2,4,5              // The (Tag, VendorTag, Revision) triplet acts
  125.                                   //   as the key to this group
  126.  
  127.         start attribute
  128.             name    = "Title"
  129.             id      = 1
  130.             access  = READ-ONLY
  131.             type    = STRING(256)
  132.             value   = "     "
  133.             description = "Long name for software product package unit"
  134.         end attribute
  135.  
  136.         start attribute
  137.             name    = "Tag"
  138.             id      = 2
  139.             access  = READ-ONLY
  140.             type    = STRING(256)
  141.             value   = "     "
  142.             description = "Short name for software product package unit"
  143.         end attribute
  144.  
  145.         start attribute
  146.             name    = "VendorTitle"
  147.             id      = 3
  148.             access  = READ-ONLY
  149.             type    = STRING(256)
  150.             value   = "     "
  151.             description = "Long name for manufacturer of software product package unit"
  152.         end attribute
  153.  
  154.         start attribute
  155.             name    = "VendorTag"
  156.             id      = 4
  157.             access  = READ-ONLY
  158.             type    = STRING(256)
  159.             value   = "     "
  160.             description = "Short name for manufacturer of software product package unit"
  161.         end attribute
  162.  
  163.         start attribute
  164.             name    = "Revision"
  165.             id      = 5
  166.             access  = READ-ONLY
  167.             type    = STRING(256)
  168.             value   = "     "
  169.             description = "Major, Minor and Modification levels for software product package unit"
  170.         end attribute
  171.  
  172.         start attribute
  173.             name    = "ModificationLevel"
  174.             id      = 6
  175.             access  = READ-ONLY
  176.             type    = STRING(256)
  177.             value   = "     "
  178.             description = "Current CSD level for software product package unit"
  179.         end attribute
  180.  
  181.         start attribute
  182.             name    = "SelectiveFixLevel"
  183.             id      = 7
  184.             access  = READ-ONLY
  185.             type    = STRING(256)
  186.             value   = "     "
  187.             description = "Selective Fix level for software product package unit"
  188.         end attribute
  189.  
  190.         start attribute
  191.             name    = "Description"
  192.             id      = 8
  193.             access  = READ-ONLY
  194.             type    = STRING(256)
  195.             value   = "     "
  196.             description = "String that describes the software product package unit"
  197.         end attribute
  198.  
  199.         start attribute
  200.             name    = "ParentTag"
  201.             id      = 9
  202.             access  = READ-ONLY
  203.             type    = STRING(256)
  204.             value   = "     "
  205.             description = "Short name for the parent package unit of this software product package unit"
  206.         end attribute
  207.  
  208.         start attribute
  209.             name    = "ParentVendorTag"
  210.             id      = 10
  211.             access  = READ-ONLY
  212.             type    = STRING(256)
  213.             value   = "     "
  214.             description = "Short manufacturer name for the parent package unit of this software product package unit"
  215.         end attribute
  216.  
  217.         start attribute
  218.             name    = "ParentRevision"
  219.             id      = 11
  220.             access  = READ-ONLY
  221.             type    = STRING(256)
  222.             value   = "     "
  223.             description = "Short revision string for the parent package unit of this software product package unit"
  224.         end attribute
  225.  
  226.         start attribute
  227.             name    = "Error Record Template File"
  228.             id      = 12
  229.             access  = READ-ONLY
  230.             type    = STRING(508)
  231.             value   = "     "
  232.             description = "Name of the Error Record Template file for this software product package unit"
  233.         end attribute
  234.  
  235.     end group
  236.  
  237. //
  238. //  Software product group table with actual values
  239. //
  240. //      This is the group that contains the software Vital Product
  241. //      Data attributes that identify the software product that is
  242. //      represented by this DMI component
  243. //
  244. //      There are two sample rows defined for the table, however the table can
  245. //       have one or more rows, what ever is correct for your component
  246. //
  247. //       Note each of the fields which are positionally assigned values below are defined
  248. //       in the sections abobe. 
  249. //
  250. //       THIS IS THE ONLY SECTION YOU NEED TO DEAL WITH FOR THE PURPOSE OF 
  251. //       BUILDING YOUR OWN EXAMPLE
  252. //
  253.     start table
  254.         name = "Software components and their VPD"
  255.         id = 2
  256.         class   = "IBM_OS/2 Warp|SoftwareProduct|1.0"
  257.  
  258.         {"",
  259.          "FFSTProbe Sample",  //Tag - Part of the triplet, Identifies your product 
  260.          "",
  261.          "IBM",                    // Vendor Tag - Part of the triplet, Identifies your company    
  262.          "1.00",                   //  Revision - Part of Triplet                                             
  263.          "000000",               // Modification Level - Specified in your code if not looked up  
  264.     "010101",               // Selective Fix Level - Specified in your code if not looked up
  265.          "FFSTProbe Example Program", // Description 
  266.          "",
  267.          "",
  268.          "",
  269.          "PROBE.REP"}        //Repository (Template File) Name. Should be on your DPATH 
  270.                 // Other wise full path would be specified. This field is the prime
  271.                                     // reason FFSTProbe uses DMI. The triplet above forms the key 
  272.                 // to retrieve the repository file name so that the probe can be 
  273.                 // formatted by SYSLOG
  274.  
  275.     end table
  276.  
  277. end component
  278.