Example 6-7 Dumping the entry file

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

Example 6-8 Displaying VLV index file contents

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

Example 6-9 Displaying the index keys in cn.db4

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

Example 6-10 Displaying the index keys and the count of entries with the key in mail.db4

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

Example 6-11 Displaying the index keys and all the IDs with more than 20 IDs in sn.db4

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

Example 6-12 Displaying the summary of objectclass.db4

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

Example 6-13 Displaying the changelog file contents

#dbscan -f /var/opt/dirsrv/slapd-instance_name/changelogdb/\ c1a2fc02-1d11b2-8018afa7-fdce000_424c8a000f00.db4

Example 6-14 Dumping the index file uid.db4 with raw mode

#dbscan -R -f /var/opt/dirsrv/slapd-instance_name/db/userRoot/uid.db4

Example 6-15 Displaying the entryID with the common name key "=hr managers"

In this example, the common name key is =hr managers, and the equals sign (=) means the key is an equality index.

#dbscan -k "=hr managers" -r \

-f /var/opt/dirsrv/slapd-instance_name/db/userRoot/cn.db4 =hr%20managers 7

Example 6-16 Displaying an entry with the entry ID of 7

#dbscan -K 7 -f id2entry.db4 id 7 dn: cn=HR Managers,ou=groups,dc=example,dc=com objectClass: top

objectClass: groupOfUniqueNames

cn: HR Manager

ou: groups

description: People who can manage HR entries

creatorsName: cn=directory manager

modifiersName: cn=directory manager

createTimestamp: 20050408230424Z

modifyTimestamp: 20050408230424Z

nsUniqueId: 8b465f73-1dd211b2-807fd340-d7f40000 parentid: 3

entryid: 7

entrydn: cn=hr managers,ou=groups,dc=example,dc=com

214 Command-line utilities