HP-UX Directory Server Administrator Guide HP-UX Directory Server Version 8.1 (5900-3098, May 2013)

Table 55 (page 463) describes the db2index.pl options:
Table 52 db2index.pl options
DescriptionOption
Specifies the DN of the administrative user.-D
Specifies the password of the administrative user.-w
Specifies the name of the database being indexed.-n
Specifies the name of the attribute contained by the index.-t
11.2.3 Using a cn=tasks entry to create an index
The cn=tasks, cn=config entry in the Directory Server configuration is a container entry for
temporary entries that the server uses to manage tasks. Several common directory tasks have
container entries under cn=tasks, cn=config. Temporary task entries can be created under
cn=index, cn=tasks, cn=config to initiate an indexing operation.
This task entry requires a unique name (cn) and a defintion for the attribute and type of index, set
in nsIndexAttribute in the format attribute:index_type.
For example:
ldapmodify -a -D "cn=directory manager" -w secret -p 389 -h server.example.com
dn: cn=example presence index, cn=index, cn=tasks, cn=config
objectClass: top
objectClass: extensibleObject
cn: example presence index
nsIndexAttribute: "cn:pres"
There are three possible index_types:
pres for presence indexes
eq for equality indexes
sub for substring indexes
As soon as the task is completed, the entry is removed from the directory configuration.
The HP-UX Directory Server configuration, command, and file reference has more information on
running Directory Server tasks under the cn=tasks entries.
11.2.4 Creating browsing indexes from the server console
A virtual list view (VLV) index is a way of creating a truncated list for faster searching while
enhancing server performance. The VLV index itself can be resource-intensive to maintain, but it
can be beneficial in large directories (over 1000 entries).
A browsing index is a type of VLV index that organizes the entries listed into alphabetical order,
making it easier to find entries. To create a browsing index using the Directory Server Console:
1. Select the Directory tab.
2. In the left navigation tree, select the entry, such as People, for which to create the index.
3. From the Object menu, select Create Browsing Index.
The Create Browsing Index dialog box appears displaying the status of the index creation.
Click the Status Logs box to view the status of the indexes created.
4. Click Close.
The new index is immediately active for any new data that is added to the directory. You do not
have to restart your server.
11.2 Creating indexes 457