Novell is now a part of Micro Focus

Custom ZENworks Asset Management Inventory Attributes

Novell Cool Solutions: Feature
By Jared Jennings

Digg This - Slashdot This

Posted: 18 Dec 2006

Purpose: Customize existing inventory attributes with custom information. Wouldn't it be nice to auto-populate the department attribute to represent information in eDirectory? Here's how you do it.

  • Phase 1: Configure a ZENworks application object to create a registry string on the local workstation and populate the string with information from eDirectory.
  • Phase 2: Edit the inventory option set in ZAM Manager to inventory for the specified registry key and add the information to the workstation's inventory.

Let's begin...

Phase 1

  1. Create ZENworks Desktop Management application object.
    1. Select the desired container in ConsoleOne to hold the object.
    2. Select New.
    3. Select Application Object.
    4. Specify "Simple Application Object" (Default).
    5. Finish the wizard by selecting Next until the end.
    6. View properties of the application object.
  2. Add registry key information to the application object.
    1. Distribution Options -> Registry Settings
    2. Select Local Machine
    3. Select Add -> Key, Specify "Software"
    4. Select Add -> Key, Specify <Your Desired Key>, IE "
    5. Select Add -> String, Specify "Department" as the name, value = "%OU"
    6. For the values of the strings use the special NDS macros provided by NAL to read the information from an eDirectory attribute. For instance, for the value of Phone, use %TELEPHONE_NUMBER%.

      To determine the value that should be enclosed in the %, simply find the name of the attribute. The easiest way to do this is to use either DSBROWSE.NLM or Novell iMonitor to browse a sample object. Be aware that the name is not always as it appears in ConsoleOne, for instance the Department attribute in ConsoleOne is really called OU in the schema. As such, the value would be %OU% if you wanted to retrieve the Department attribute.

    7. Associate the application object and specify force run.

Detailed information can be found here

Phase 2

Configure a ZAM "OPTION SET" to inventory for the registry key. (Note, in this example, we will be working with the default option set.)

  1. Launch ZENworks Asset Manager.
  2. Expand "Public Collection Option Sets".
  3. Select "Default Option Set" -> Right click and select "Open".
    1. Specify the "Collection Editor to Run Always" under the General Tab.
    2. Select "Collection Editor Tab".
    3. Select "Department".
    4. Specify in the "Default Value" column, the registry path for the registry key that the ZENworks Application Object will be creating. IE <%HKEY:HKEY_LOCAL_MACHINE\Software\\Department
    5. Specify "Auto Fill" = always.
    6. Specify if the value will be "Editable" by the user or not.
    7. Specify the "Edit Mask" of the attribute. If the registry string will only contain alphanumeric values, then specify "A".
      Note: When specifying the "Edit Mask", you are also specifying the allowable amount of characters to be stored in the database. So if the location name will be 10 characters long, then you should specify 10 "A"'s in the "Edit Mask" IE "AAAAAAAAAA"
    8. Select "General Tab".
    9. Set the "Collection Editor" to run "Never" or whatever the preferred setting is.
  4. Save and close the "Default Option Set" preferences.

The system will begin querying and auto-populating the department attribute from the Windows Registry key.

You can use other values instead of "%OU" for the registry key information -- anything that can be pulled from the local system or eDirectory.

ZAM also has the ability to pull from the Windows environment variables. Meaning, you do not have to use a registry key to pull the information. The ZAM administrators PDF does talk about these variables that you can use and the correct syntax.

For more info, see:

Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions.

© Copyright Micro Focus or one of its affiliates