This section describes how to customize the inventory information.
ZENworks for Desktops 4.x allows you to collect information that is not part of the default hardware inventory from the inventoried workstations.
To collect information that is not part of the default inventory from the inventoried workstations, you must define attributes and their corresponding values for an Inventory class. By default, each Inventory class has its own attributes called as regular attributes and the values corresponding to the regular attributes are called as regular attribute values. The Inventory Scanner stores the user-defined attributes (called as custom attributes) and the corresponding values along with the regular attributes' values. of the class in the Inventory database. This process is called custom hardware inventory scanning.
For example, you can add a custom attribute named Rate to the Processor table. The Inventory Scanner scans for the regular attribute values such as the processor type and stores the values of the Rate and the Processor Type in the Inventory database.
The following table lists the Inventory class and the regular attributes.
NOTE: The * in the table given below indicates that you need to specify the values in bytes. The + in the table given below indicates that you need to specify the enumerated values for these attributes. For more information on enumerated values, see Understanding ZENworks for Desktops Inventory Attributes.
The following sections give information on the tasks you need to perform to do custom scanning:
To add custom attributes to an Inventory class:
In the Workstation Inventory policy, click the Hardware Scan tab.
Select Enable Custom Scanning.
Click the Custom Attribute Editor.
In the Custom Attribute Editor dialog box, click Add.
From the Class Name drop-down list, select the class where you want to add the custom attribute. For example: Processor
Enter the custom attribute name in the Attribute Name field. For example: Rate.
Click OK.
You can add more than one custom attribute for a class.
Click OK > Apply > OK.
To add values to the custom attributes, you must create the custom.ini file. The administrator must communicate the list of Inventory classes to which the custom attributes can be added. The Inventory Scanner uses the custom.ini file to get information about custom attributes and their corresponding values.
The contents of a custom.ini file are as follows:
[START_CIM_OBJECT]
Class = Inventory_Class_Name_as_displayed_in_the_Custom_Attribute_Editor_dialogbox or Inventory_Class_Name_in_Inventory_database
RegularAttrs = regular_attribute_name1, regular_attribute_name2, ..., regular_attribute_nameN
RegularVals = regular_attribute_value1, regular_attribute_value2, ..., regular_attribute_valueN
Action = A/D
custom_attribute = custom_attribute_value
custom_attribute = custom_attribute_value
...
...
custom_attribute = custom_attribute_value
[END_CIM_OBJECT]
where Class is a pre-defined Inventory class name (for the list of the pre-defined Inventory class name, refer to the Inventory Class Name and Regular Attributes table), RegularAttrs indicates the list of regular attribute names, RegularVals indicates the corresponding regular attribute values, the Action value A indicates the specified custom attributes to be added to the database table, and the Action value D indicates the specified custom attributes to be deleted from the database table.
You can enter comments after the semicolon (;). The data after the semicolon will be ignored by the Scanner.
In the custom.ini file, the content between [START_CIM_OBJECT] and [END_CIM_OBJECT] is called as a "section". The first three lines within the section is called as a query.
A sample custom.ini file that has one regular attribute, one regular attribute value, and one custom attribute and value is as follows:
[START_CIM_OBJECT]
Class = Computer System Information ;Inventory class name
RegularAttrs = Name ;Regular attribute name
RegularVals = John ;Regular attribute value
Action = A
Employee Number=BLR_5000234 ;Custom attribute and its value
[END_CIM_OBJECT]
In the above query, the employee number will be added to the CIM.UnitaryComputerSystem table if the value of the Name attribute is John.
You can create a custom.ini file using either of the following methods:
After developing the application, go to the Workstation Inventory policy's Hardware Scan tab, select the Enable Custom Scanning option, and specify the name of the application. For more information, see Configuring the Workstation Inventory Policy.
This application will be launched by the Scanner.
Follow these guidelines as you work with the custom.ini file:
If multiple instances of the Inventory class exist, you must specify a minimum set of regular attributes and their corresponding values to distinguish the instances.
For example, if the regular attribute value is "Novell, Ltd.", the regular attribute value should be written as follows in the custom.ini file:
Novell\, Ltd.
A sample custom.ini file with two sections is as follows:
[START_CIM_OBJECT]
Class = Computer System Information
RegularAttrs = Name, PrimaryOwnerContactID
RegularVals = John, 56
Action = D
EmployeeName= Tom
EmployeeId=568
[END_CIM_OBJECT]
[START_CIM_OBJECT]
Class = Diskette Drive
RegularAttrs = DisketteDeviceID
RegularVals = A:
Action = A
Manufacturer = Sony
[END_CIM_OBJECT]
For example, a workstation has two floppy drives, one mapped to A: and the other to B:, and the storage capacity of both the drives is 1440 KB. If you want to add "Rate" as the custom attribute, you cannot write a query using only the DisketteCapacity regular attribute as follows:
[START_CIM_OBJECT]
Class = Diskette Drive
RegularAttrs = DisketteCapacity
RegularVals = 1440
Action = A
Rate = $100
[END_CIM_OBJECT]
The above query returns two instances. One is the floppy drive mapped to a: and the other is the floppy drive mapped to b:. The custom attribute and its value will not be added to the Inventory database.
You could rewrite the custom.ini file as follows:
[START_CIM_OBJECT]
Class = Diskette Drive
RegularAttrs = DisketteDeviceID
RegularVals = A:
Action = A
Rate = $100
[END_CIM_OBJECT]
[START_CIM_OBJECT]
Class = Diskette Drive
RegularAttrs = DisketteDeviceID
RegularVals = B:
Action = A
Rate = $100
[END_CIM_OBJECT]
You can view the custom attributes and the values of all the inventoried workstations in the Workstation Inventory. For more information, see Viewing the Workstation Inventory of an Inventoried Workstation.
Example 1: Adds the custom attributes Employee Name and Employee Code with values of XYZ and BLR_TERCH_5000234 respectively to CIM.UnitaryComputerSystem.
Using the Custom Attribute Editor dialog box, add Employee Name and Employee Code to Computer System Information.
Create the custom.ini file with the following contents:
[START_CIM_OBJECT]
Employee Name = XYZ
Employee Code = BLR_TERCH_5000234
[END_CIM_OBJECT]
After creating the custom.ini file, run the Novell Desktop Management Scheduler to start the scan.
Example 2: Adds the custom attributes Price and Value $4.00 to ZENworks.ExtendedDisketteDrive if the value of the regular attribute DisketteDeviceID is A:. Also adds custom attribute Price with a Value $8.00 to ZENworks.ExtendedDisketteDrive if the value of the regular attribute DisketteDeviceID is B:
Using the Custom Attribute Editor dialog box, add Price to Diskette Drive.
Create the custom.ini file with the following contents:
[START_CIM_OBJECT]
Class =Diskette Drive
RegularAttr = DisketteDeviceID
RegularVals = A:
Price = $4.00
[END_CIM_OBJECT]
[START_CIM_OBJECT]
Class = Diskette Drive
RegularAttr = DisketteDeviceID
RegularVals = B:
Price = $ 8.00
[END_CIM_OBJECT]
After creating the custom.ini file, run the Novell Desktop Management Scheduler to start the scan.
Example 3: Deletes the custom attribute Employee Name from CIM.UnitaryComputerSystem.
Create the custom.ini with the following contents:
[START_CIM_OBJECT]
Action = D
Employee Name = XYZ
[END_CIM_OBJECT]
After creating the custom.ini file, run the Novell Desktop Management Scheduler to start the scan.
Example 4: To reset the value of Employee Code from BLR_TERCH_5000234 to BLR_TEST_1200012 in CIM.UnitaryComputerSystem
Create the custom.ini file with the following contents:
[START_CIM_OBJECT]
Action = A
Employee Code = BLR_TEST_1200012
[END_CIM_OBJECT]
After creating the custom.ini file, run the Novell Desktop Management Scheduler to start the scan.
Example 5: Adds the custom attributes Price with value $100.00 to CIM.Processor if the values of the regular attributes Family and MaxClockSpeed are 178 and 1500 respectively. Also adds the custom attributes Price with its value $250.00 to CIM.Processsor if the values of the regular attributes Family and MaxClockSpeed are 178 and 2000 respectively.
Using the Custom Attribute Editor dialog box, add Price to Processor.
Create the custom.ini file with the following contents:
[START_CIM_OBJECT]
Class = Processor
RegularAttr = Family, MaxClockSpeed
RegularVals = 178, 1500 ; Pentium 4 with MaxClockSpeed = 1500 MHz
Price = $ 100.00
[END_CIM_OBJECT]
[START_CIM_OBJECT]
Class = Processor
RegularAttr = Family, MaxClockSpeed
RegularVals = 178, 2000 ; Pentium 4 with MaxClockSpeed = 2000 MHz
Price = $ 2500.00
[END_CIM_OBJECT]
After creating the custom.ini file, run the Novell Desktop Management Scheduler to start the scan.
You can customize the list of software applications that you want to scan for at the inventoried workstations. You specify the software scan settings in the Workstation Inventory policy page. The software scan settings are saved in eDirectory.
By default, the Scanner will not scan for software applications at the inventoried workstation. You must enable the Software Scan option in the Workstation Inventory policy. For more information, see Configuring the Workstation Inventory Policy.
To specify the applications you want to scan for, you add the list of applications or import files that contain the list of applications. You can also export the list of applications as a file and then modify the file.
If you have a large number of software applications that you want to specify, you can create a Custom Scan file following the conventions explained in this section and later import the file.
To specify software scan settings that you specified at a different location, you export the file at that location and import the file at the location you want to use the list.
The following sections contain more information to help you customize workstation scanning:
To add a new application, you must provide the details of the application.
In ConsoleOne, open the Workstation Inventory policy.
For more information, see Configuring the Workstation Inventory Policy.
Ensure that the Enable Software Scan option is checked.
Click the Custom Scan Editor button.
Click Add to specify the details of the application.
Fill in the details of the application:
Vendor name, Product name, Product version, File name, File Size (in Bytes)
Click OK.
To save the application entry in eDirectory, click OK in the Custom Scan Editor dialog box.
You can also add application entries to the Custom Scan table by importing a file with the list of application entries. You create this file by following the format of the Custom Scan file conventions. For more information, see Format of the Custom Scan File.
To add a list of new applications:
Open a text editor.
Create a file with the format specified in Format of the Custom Scan File.
Save the application as a text file with any extension you prefer.
In ConsoleOne, open the Workstation Inventory policy.
For more information, see Configuring the Workstation Inventory Policy.
Ensure that the Enable Software Scan option is checked.
Click Custom Scan Editor.
Click Import.
To save the application entry in eDirectory, click OK in the Custom Scan Editor dialog box.
The contents of the Custom Scan file are as follows:
total_number_of_application_entries_in_Custom_Scan_file; total_number_of_columns_in_the_application_entry
vendor_name;product_name;product_version;file_name;file_size (in Bytes)
vendor_name;product_name;product_version;file_name;file_size (in Bytes)
vendor_name;product_name;product_version;file_name;file_size (in Bytes)
Keep in mind the following guidelines as you work with the Custom Scan file:
The following is a sample Custom Scan file:
2;5
Novell;GroupWise;5.5;grpwise.exe;4025856
Novell;client32nlm;3.03;client32.nlm;524168
You can export the Custom Scan file to use at a different location. You export the Custom Scan file at one location and then import it at the other location.
To export the list of applications:
In ConsoleOne, open the Workstation Inventory policy.
For more information, see Configuring the Workstation Inventory Policy.
Ensure that the Enable Software Scan option is checked.
Click Custom Scan Editor.
Click Export.
Type the filename with any extension for the text file.
The export file is a text file.
Click OK.
The exported file will contain the list of applications that are displayed in the Custom Scan table. If you have not saved the list of applications before exporting, the entries in the exported file and the saved application entries in eDirectory will differ.
You can customize the list of software applications that you want to scan for at the inventoried workstations by using the Custom Scan Editor. To scan for the only such applications that are selected in the Custom Scan Editor, you must enable the Perform Only Custom Scanning option in the Workstation Inventory policy. For more information, see Configuring the Workstation Inventory Policy.
The Scanner (winscan.exe) uses the IBMNAMES data (configured using the Configuration Editor > the IBMNAMES option in the Workstation Inventory policy) to get information about IBM inventoried workstations running under Windows 98. The Scanner reads the model name using the machine type and model number information specified in the Configuration Editor option of the Workstation Inventory policy.
Using the IBMNAMES data is an IBM-specific method of scanning model names of IBM inventoried workstations defined by the Scanner. If you have a new IBM inventoried workstation that is not listed in the Configuration Editor, the model number of the inventoried workstation will not be scanned. To add the machine type, model number, and model description of the new IBM inventoried workstation, you must edit the IBMNAMES data in the Configuration Editor using the Workstation Inventory policy. By adding this entry, you enable the Scanner to identify the new model name.
To add the IBM computer models:
In the Workstation Inventory policy, click the Configuration Editor tab.
For more information, see Configuring the Workstation Inventory Policy.
Click the IBMNAMES suboption > click Set Defaults.
The default values are displayed.
[Product Names]
6260-??? = IBM PC 140
6272-??? = IBM PC 300GL
6282-??? = IBM PC 300GL
6284-??? = IBM PC 300GL
...
Add or modify the entries.
The format of each entry in the section is as follows:
4_bytes_machine_type-3_byte_model_number=model_description
For example, if the model is IBM PC 140 and the machine type is 6260, specify the model description as IBM PC 140. The entry in the ibmnames.ini is 6260-79T = IBM PC 140.
If you want the Scanner to scan for all IBM computer models of a particular machine type with the same model description, the 3_byte_model_number is specified with three question marks (???) as wildcard characters.
For example, to scan all models of a 6282 machine type with same model description, the entry is as follows:
6282-???=IBM PC 300GL
The machine type and model number are printed at the rear of the laptop or on the back side of the desktop workstation. For example, the 760E Thinkpad* model has the following label: TYPE 9546-A98.
If you specify incorrect values for the device ID entry, the device will not be displayed in the Inventory windows.
Click OK.
The scan information of the vendors for devices such as backup and floppy devices is usually unavailable on the inventoried workstation. Also, if the information is available, the vendor information does not usually contain the details. You can customize and update information about the vendors of these devices in Workstation Inventory policy > Configuration Editor > Zipped Names. The Scanners read this data during the hardware scanning process for these devices.
To customize and update the vendor information for display:
In the Workstation Inventory policy, click the Configuration Editor tab.
For more information, see Configuring the Workstation Inventory Policy.
Click the ZIPPED NAMES suboption > click Set Defaults.
The default values are displayed.
[Identifier]
iomega ZIP 100=Iomega 100MB Backup Device
iomega jaz 1GB=Iomega 1GB Backup Device
IOMEGA ZIP 100 D.13=Iomega Corporation
IOMEGA ZIP 1GB D.13=Iomega Corporation
...
Add or modify the entries.
The format of each entry in the section is as follows:
[Identifier]
device_id=vendor_display_name_you_specify
where device_id is the unique ID generated and updated in the registry by the vendor during the installation of the device on the inventoried workstation.
For example, the contents of the section are as follows:
[Identifier]
iomega ZIP 100=Iomega 100MB Backup Device
This entry is for a 100 MB Zip drive installed on the inventoried workstation.
If you specify incorrect values for the device ID entry, the device will not be displayed in the Inventory windows.
Click OK.
In the Workstation Inventory policy, click the Configuration Editor tab.
For more information, see Configuring the Workstation Inventory Policy.
Click the Asset Information suboption > click Set Defaults.
The following entries will be populated.
[ASSETTAG]
DMI1_CLASSNAME=
DMI1_ATTRIBUTEID=
DMI2_CLASSNAME=
DMI2_ATTRIBUTEID=
[SERIALNUMBER]
DMI1_CLASSNAME=
DMI1_ATTRIBUTEID=
DMI2_CLASSNAME=
DMI2_ATTRIBUTEID=
[MODEL]
DMI1_CLASSNAME=
DMI1_ATTRIBUTEID=
DMI2_CLASSNAME=
DMI2_ATTRIBUTEID=
[COMPUTERTYPE]DMI1_CLASSNAME=DMI1_ATTRIBUTEID=
[MODELNUMBER]DMI1_CLASSNAME=DMI1_ATTRIBUTEID=
Specify the values.
The Asset Information contains the following sections:
Each section contains the particular DMI Class name and DMI Class Attribute ID.
The format of Asset Information is as follows:
[ASSETTAG]
DMI1_CLASSNAME=DMI_class_pathname_for_asset_tag
DMI1_ATTRIBUTEID=DMI_attribute_ID_for_asset_tag
[SERIALNUMBER]
DMI1_CLASSNAME=DMI_class_pathname_for_serial_number
DMI1_ATTRIBUTEID=DMI_attribute_ID_for_serial_number
[MODEL]
DMI1_CLASSNAME=DMI_class_pathname_for_computer_model
DMI1_ATTRIBUTEID=DMI_attribute_ID_for_computer_model
The value of the Asset Information sections can have a maximum string length of 64 characters.
A DMI Class name can be any DMI class other than DMTF|COMPONENTID|00x.
If there is more than one DMI vendor implementing different custom DMI classes, you can specify multiple DMI classes. A maximum of five classes can be specified in these sections. For example, the asset information for five classes is as follows:
[ASSETTAG]
DMI1_CLASSNAME=DMI_class_pathname_for_asset_tag
DMI1_ATTRIBUTEID=DMI_attribute_ID_for_asset_tag
DMI2_CLASSNAME=DMI_class_pathname_for_asset_tag
DMI2_ATTRIBUTEID=DMI_attribute_ID_for_asset_tag
DMI3_CLASSNAME=DMI_class_pathname_for_asset_tag
DMI3_ATTRIBUTEID=DMI_attribute_ID_for_asset_tag
DMI4_CLASSNAME=DMI_class_pathname_for_asset_tag
DMI4_ATTRIBUTEID=DMI_attribute_ID_for_asset_tag
DMI5_CLASSNAME=DMI_class_pathname_for_asset_tag
DMI5_ATTRIBUTEID=DMI_attribute_ID_for_asset_tag
The Scanner will processes DMI1 and if the values of DMI1 are valid, the Scanner will not process the remaining DMI classes.
Click OK.
Run the scans on the inventoried workstations.
Verify that the inventory information is in eDirectory Minimal Information and the Workstation Summary window.
The software information of the same vendor might sometimes have different vendor names or product names. For example, if the software scan data contains information of more than one product for the same vendor, and if the vendor name differs, the inventory display windows will display the software information under different vendor names.
By default, the software information is displayed for each unique vendor name in the Inventory Query window, Inventory Summary window, and the Inventory reports. If the vendor or product names differ, you can merge the software information.You can also prevent the display of specific vendors and products in the inventory windows. You customize these settings in the Software Rules.
To customize the vendor and product names for display:
In the Workstation Inventory policy, click the Configuration Editor tab.
For more information, see Configuring the Workstation Inventory Policy.
Click the SWRules suboption > click Set Defaults.
The default values are displayed.
[vendor]
Novell=Novell Incorporated
Novell Inc=Novell Incorporated
Novell Corporation=Novell Incorporated
Novell Corp=Novell Incorporated
Microsoft=Microsoft Corporation
..
[PRODUCT]
Microsoft(R) Windows Operating System=NULL
Microsoft (R) Windows(TM) Operating System=NULL
Microsoft(R) Windows NT(R) Operating System=NULL
Microsoft(R) Windows (R) 2000 Operating System=NULL
..
Add or modify the entries.
The format of SWRules is as follows:
[vendor]
scanned_vendor_name_reported_by_scanner= vendor_display_name_you_specify
scanned_vendor_name_reported_by_scanner= vendor_display_name_you_specify
[product]
scanned_product_name_reported_by_scanner= product_display_name_you_specify
scanned_product_name_reported_by_scanner= product_display_name_you_specify
You should follow these guidelines while editing SWRules:
If you specify incorrect entries, the entries preceding the incorrect entry will be used and the other entries will be ignored.
For example, to display the software vendor information for Novell, Novell Inc., Novell Corp, and Novell Inc as Novell Inc., edit the following section:
[vendor]
Novell=Novell Inc.
NOVELL INC=Novell Inc.
NOVELL CORP=Novell Inc.
NOVELL Inc=Novell Inc.
For example, to display the product information: Novell NetWare (TM) Operating System, Novell NetWare®, Novell NetWare (R) Operating System as Novell NetWare®, edit the following section.
[product]
Novell NetWare (TM) Operating System=Novell NetWare(R)
Novell NetWare=Novell NetWare(R)
Novell NetWare (R) Operating System=Novell NetWare(R)
[vendor]
others=null
Click OK.