Note, Table 6.25. index file options, Examples – Red Hat 8.1 User Manual

Page 205: Example 6.7. dumping the entry file, Example 6.8. displaying the index keys in cn.db4, Example 6.12. displaying vlv index file contents

Advertising
background image

NOTE

The index file options, listed in

Table 6.25, “Index File Options ”

, are meaningful only when the

database file is the secondary index file.

Table 6.25. Index File Options

Option

Parameter

Description

-k

key

Specifies the key to look up in
the secondary index file.

-l

size

Sets the maximum length of the
dumped ID list. The valid range
is from 40 to 1048576 bytes.
The default value is 4096.

-G

n

Sets only to display those index
entries with ID lists exceeding
the specified length.

-n

Sets only to display the length of
the ID list.

-r

Sets to display the contents of
the ID list.

-s

Gives the summary of index
counts.

Examples

The following are command-line examples of different situations using dbscan to examine the Directory
Server databases.

Example 6.7. Dumping the Entry File

dbscan -f /var/lib/dirsrv/slapd-instance_name/db/userRoot/id2entry.db4

Example 6.8. Displaying the Index Keys in cn.db4

dbscan -f /var/lib/dirsrv/slapd-instance_name/db/userRoot/cn.db4

Example 6.9. Displaying the Index Keys and the Count of Entries with the Key in mail.db4

dbscan -r -f /var/lib/dirsrv/slapd-instance_name/db/userRoot/mail.db4

Example 6.10. Displaying the Index Keys and the All IDs with More Than 20 IDs in sn.db4

dbscan -r -G 20 -f /var/lib/dirsrv/slapd-instance_name/db/userRoot/sn.db4

Example 6.11. Displaying the Summary of objectclass.db4

dbscan -s -f /var/lib/dirsrv/slapd-instance_name/db/userRoot/objectclass.db4

Example 6.12. Displaying VLV Index File Contents

dbscan -r -f
/var/lib/dirsrv/slapd-instance_name/db/userRoot/vlv#bymccoupeopledcpeopledccom.
db4

Red Hat Directory Server 8.1 Configuration and Command Reference

205

Advertising