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

approach adopted by the Directory Server Console, to prevent identical browsing indexes
from being created. The entry is a member of the vlvSearch object class.
The vlvbase attribute value specifies the entry on which you want to create the browsing
index; in this example, the ou=People,dc=example,dc=com entry (the browsing
index identifier).
The vlvscope attribute is 1, indicating that the scope for the search you want to
accelerate is 1. A search scope of 1 means that only the immediate children of the entry
specified in the cn attribute, and not the entry itself, will be searched.
The vlvfilter specifies the filter to be used for the search; in this example,
(|(objectclass=*)(objectclass=ldapsubentry)).
3. Add the second entry, to specify the sorting order for the returned attributes:
dn: cn=by MCC ou=People dc=example dc=com,cn=MCC ou=People
dc=example dc=com, cn=userRoot, cn=ldbm database, cn=plugins,
cn=config
objectClass: top
objectClass: vlvIndex
cn: by MCC ou=People dc=example dc=com
vlvSort: cn givenName o ou sn
The cn contains the browsing index sort identifier. The above cn is the type created by
the Console by default, which has the sorting order as being set by the browsing index
base. The entry is a member of the vlvIndex object class.
The vlvsort attribute value specifies the order in which you want your attributes to be
sorted; in this example, cn, givenName, o, ou, and sn.
NOTE:
This first browsing index entry must be added to the cn=database_name,cn=ldbm
database,cn=plugins,cn=config directory tree node, and the second entry must be a child
of the first entry.
11.2.5.2 Running the vlvindex script
After creating the two browsing indexing entries or added additional attribute types to an existing
indexing browsing entries, run the vlvindex script to generate the new set of browsing indexes
to be maintained by the Directory Server. After running the script, the new set of browsing indexes
is active for any new data added to the directory and any existing data in the directory.
To run the vlvindex script:
1. Stop the server.
/opt/dirsrv/slapd-instance_name/stop-slapd
For more information about the command to stop the Directory Server, see“Starting and
Stopping Servers” (page 19).
2. Run the vlvindex script.
/opt/dirsrv/slapd-instance_name/vlvindex -n Example1 \
-T "by MCC ou=people dc=example dc=com"
For more information about using this script, see the HP-UX Directory Server configuration,
command, and file reference.
3. Restart the server.
/opt/dirsrv/slapd-instance_name/start-slapd
Table 53 (page 460) describes the vlvindex options used in the examples:
11.2 Creating indexes 459