Custom ZENworks Asset Management Inventory Attributes
Novell Cool Solutions: Feature
By Jared Jennings
Digg 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.
- Create ZENworks Desktop Management application object.
- Select the desired container in ConsoleOne to hold the object.
- Select New.
- Select Application Object.
- Specify "Simple Application Object" (Default).
- Finish the wizard by selecting Next until the end.
- View properties of the application object.
- Add registry key information to the application object.
- Distribution Options -> Registry Settings
- Select Local Machine
- Select Add -> Key, Specify "Software"
- Select Add -> Key, Specify <Your Desired Key>, IE "jaredjennings.org
- Select Add -> String, Specify "Department" as the name, value = "%OU"
- Associate the application object and specify force run.
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.
Detailed information can be found here
Configure a ZAM "OPTION SET" to inventory for the registry key. (Note, in this example, we will be working with the default option set.)
- Launch ZENworks Asset Manager.
- Expand "Public Collection Option Sets".
- Select "Default Option Set" -> Right click and select "Open".
- Specify the "Collection Editor to Run Always" under the General Tab.
- Select "Collection Editor Tab".
- Select "Department".
- 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\jaredjennings.org\Department
- Specify "Auto Fill" = always.
- Specify if the value will be "Editable" by the user or not.
- 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"
- Select "General Tab".
- Set the "Collection Editor" to run "Never" or whatever the preferred setting is.
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. www.webwiseone.com