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

Example 1 Case 1:
nsslapd-entryusn-import-initval: 123
ldif2db -n backend -i /path/to/ldif
The entryusn value for the imported entries will be set to 123.
ldapsearch -b "dc=example,dc=com" "(objectclass=*)" entryusn
dn: dc=example,dc=com
entryusn: 123
dn: ou=Accounting,dc=example,dc=com
entryusn: 123
dn: ou=Product Development,dc=example,dc=com
entryusn: 123
...
entryusn: 123
Example 2 Case 2:
nsslapd-entryusn-import-initval: next
The last entryusn value is 9.
ldif2db -n backend -i /path/to/ldif
The entryusn value for the imported entries will be set to 9+1.
ldapsearch -b "dc=example,dc=com" "(objectclass=*)" entryusn
dn: dc=example,dc=com
entryusn: 10
dn: ou=Accounting,dc=example,dc=com
entryusn: 10
dn: ou=Product Development,dc=example,dc=com
entryusn: 10
...
entryusn: 10
Cleaning up USN Tombstone Entries:
When an entry is deleted, USN plug-in converts the entry into tombstone. HP recommends you to
use the usn-tombstone-cleanup.pl command to delete USN tombstone entries before
configuring a server as a master or replica.
/opt/dirsrv/slapd-tracy/usn-tombstone-cleanup.pl \
-D "cn=directory manager" -w secret -s "dc=example,dc=com" -m 1100
Either backend or suffix must be specified using n or s option. If both are specified, the suffix
option is used.
Table 13 usn-tombstone-cleanup.pl Options:
DescriptionOptions
Specifies the DN of the administrative user, such as
Directory Manager.
-D rootdn
USN tombstone entries are deleted up to the entry with
maxusn_to_delete.
-m maxusn_to_delete
Suffix where USN tombstone entries are cleaned up.-s suffix
3.3 Tracking Modifications to Directory Entries 117