db2index.8 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. .\" Hey, EMACS: -*- nroff -*-
  2. .\" First parameter, NAME, should be all caps
  3. .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
  4. .\" other parameters are allowed: see man(7), man(1)
  5. .TH DB2INDEX 8 "Mar 5, 2013"
  6. .\" Please adjust this date whenever revising the manpage.
  7. .\"
  8. .\" Some roff macros, for reference:
  9. .\" .nh disable hyphenation
  10. .\" .hy enable hyphenation
  11. .\" .ad l left justify
  12. .\" .ad b justify to both left and right margins
  13. .\" .nf disable filling
  14. .\" .fi enable filling
  15. .\" .br insert line break
  16. .\" .sp <n> insert n+1 empty lines
  17. .\" for manpage-specific macros, see man(7)
  18. .SH NAME
  19. db2index - Directory Server script for indexing attributes
  20. .SH SYNOPSIS
  21. db2index [\-Z serverID] [\-n backend | {\-s includeSuffix}* \-t attribute[:indextypes[:matchingrules]] \-T vlvTag] [\-h]
  22. .SH DESCRIPTION
  23. Reindexes the database index files. The Directory Server must be stopped prior to running this script.
  24. .SH OPTIONS
  25. A summary of options is included below:
  26. .TP
  27. .B \fB\-Z\fR \fIServer Identifier\fR
  28. The server ID of the Directory Server instance. If there is only
  29. one instance on the system, this option can be skipped.
  30. .TP
  31. .B \fB\-n\fR \fIBackend Name\fR
  32. The name of the LDBM database to reindex. Example: userRoot
  33. .TP
  34. .B \fB\-s\fR \fIincludeSuffix\fR
  35. Specifies suffixes to be included or the subtrees to be included
  36. .TP
  37. .B \fB\-t\fR \fIattributeName[:indextypes[:matchingrules]]\fR
  38. The attribute to index. Optionally you can specify a comma separated list of index types: eq, sub, pres, and approx.
  39. An optional matching rule OID can also be set.
  40. .TP
  41. .B \fB\-T\fR \fIvlvTag\fR
  42. This is the name of the vlv index entry under cn=config.
  43. .TP
  44. .B \fB\-h\fR
  45. .br
  46. Display the usage.
  47. .SH EXAMPLE
  48. .TP
  49. db2index \-n userRoot \-t uid:eq,sub:1.3.6.1.4.1.42.2.27.9.4.76.1 \-t cn:eq,pres
  50. .TP
  51. db2index \-Z instance2 \-s 'dc=example,dc=com' \-t uid:eq:pres:sub \-t sn
  52. .TP
  53. db2index \-Z instance3
  54. .SH DIAGNOSTICS
  55. Exit status is zero if no errors occur. Errors result in a
  56. non-zero exit status and a diagnostic message being written
  57. to standard error.
  58. .SH AUTHOR
  59. db2index was written by the 389 Project.
  60. .SH "REPORTING BUGS"
  61. Report bugs to https://fedorahosted.org/389/newticket.
  62. .SH COPYRIGHT
  63. Copyright \(co 2013 Red Hat, Inc.