User's Manual

Table Of Contents
Importing Inventory
Inventory Management 5-43
Creating Location Generator Files
To create a location generator file, perform the following steps:
1. Create the following directory structure (within the lux/inventoryimport/plugindata
directory) for the location generator files:
a. Create a subdirectory for each resource manufacturer.
b. Create a subdirectory within each resource manufacturer subdirectory for each model that is defined
for each manufacturer.
c. Create a resource location generator file for each model. This file specifies how the resource
interfaces are addressed.
2. Copy each file to its associated subdirectory file location.
You use the location generator files to input information with the locations retrieved from Tool Command
Language (Tcl) scripts. The following three Tcl scripts can be used to generate locations:
Component location generator—The Tcl file for generating locations for a component. This can be
changed as per component manufacturer/model information. Table 5-11 lists the component location
generator file properties.
Resource
Interface
Parameters
Field: 0 to 80 chars
Value: 0 to 50 chars
" \ ' < > & | {inventory, invParamName, invParamVal,
INTERFACE, TYPE, LOCATION}
inventory—A keyword; always present.
invParamName—Name of the inventory parameter.
invParamVal—Value of the inventory parameter.
INTERFACE—It will be always INTERFACE (no other type is
supported in the CSV import).
TYPE—Optional. Interface type. If TYPE is specified, then this
inventory parameter will be applicable for that interface type
and if not specified, then this parameter will be applied to all
interface types.
LOCATION: Optional (Location): If not specified then it will be
applicable for all the interface location of the TYPE interface. If
specified, then it will be applicable to a particular location.
There are two option available as of now: You can specify a
sequence (1,2.. etc) or specific location:
Sequence tells the sequence (on which this parameter will
be applicable) generated by the location generator (for
example, if 2 means that this parameter will be applicable on
the 2nd location generated by the location generator).
Specific Location means that the user must specify
the exact interface location on which this parameter will be
applicable.
For example:
For a sequence type location:
{inventory,paramname,paramval,INTERFACE,
Fibre Channel LW,2}
For a specific location:
{inventory,paramname,paramval,INTERFACE,
Fibre Channel LW,(Fibre_Channel_LW_00)}
Table 5-10 CSV Input Field Definitions (continued)
Field Name Field Length Illegal Characters Description