dbscan.1 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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 DBSCAN 1 "March 31, 2017"
  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. dbscan \- scans a Directory Server database index file and dumps the contents
  20. .SH SYNOPSIS
  21. .B dbscan
  22. \fB-f <filename>\fR [\fI-R\fR] [\fI-t <size>\fR]
  23. [\fI-K <entry_id>\fR] [\fI-k <key>\fR] [\fI-l <size>\fR]
  24. [\fI-G <n>\fR] [\fI-n\fR] [\fI-r\fR] [\fI-s\fR]
  25. .PP
  26. .SH DESCRIPTION
  27. Scans a Directory Server database index file and dumps the contents.
  28. .PP
  29. .\" TeX users may be more comfortable with the \fB<whatever>\fP and
  30. .\" \fI<whatever>\fP escape sequences to invode bold face and italics,
  31. .\" respectively.
  32. .SH OPTIONS
  33. A summary of options is included below:
  34. .IP
  35. common options:
  36. .TP
  37. .B \fB\-A, \-\-ascii\fR
  38. dump as ascii data
  39. .TP
  40. .B \fB\-D, \-\-db\-type\fR <filename>
  41. specify db type: bdb or mdb
  42. .TP
  43. .B \fB\-f, \-\-dbi\fR <filename>
  44. specify db instance
  45. .TP
  46. .B \fB\-R, \-\-raw\fR
  47. dump as raw data
  48. .TP
  49. .B \fB\-t, \-\-truncate\-entry\fR <size>
  50. entry truncate size (bytes)
  51. .IP
  52. entry file options:
  53. .TP
  54. .B \fB\-K, \-\-entry\-id\fR <entry_id>
  55. lookup only a specific entry id
  56. .IP
  57. index file options:
  58. .TP
  59. .B \fB\-G, \-\-id\-list\-min\-size\fR <n>
  60. only display index entries with more than <n> ids
  61. .TP
  62. .B \fB\-I, \-\-import\fR <file>
  63. Import database instance from file. Requires \-\-do\-it parameter
  64. WARNING! Only the id2entry and replication_changelog database instances
  65. may be imported by dbscan.
  66. .TP
  67. .B \fB\-k, \-\-key\fR <key>
  68. lookup only a specific key
  69. .TP
  70. .B \fB\-l, \-\-id\-list\-max\-size\fR <size>
  71. max length of dumped id list
  72. (default 4096; 40 bytes <= size <= 1048576 bytes)
  73. .TP
  74. .B \fB\-n, \-\-show\-id\-list\-lenghts\fR
  75. display ID list lengths
  76. .TP
  77. .B \fB\-\-remove\fR
  78. remove a db instance. Requires \-\-do\-it parameter
  79. .TP
  80. .B \fB\-r, \-\-show\-id\-list\fR
  81. display the contents of ID list
  82. .TP
  83. .B \fB\-S, \-\-stats\fR
  84. display statistics
  85. .TP
  86. .B \fB\-X, \-\-export\fR <file>
  87. Export database instance to file
  88. .IP
  89. other options:
  90. .TP
  91. .B \fB\-s, \-\-summary\fR
  92. Summary of index counts
  93. .TP
  94. .B \fB\-L, \-\-list\fR
  95. List od database instances
  96. .TP
  97. .B \fB\-\-do\-it\fR
  98. confirmation required for actions that change the database contents
  99. .TP
  100. .B \fB\-h, \-\-help\-it\fR
  101. display the usage
  102. .IP
  103. .SH USAGE
  104. Sample usages:
  105. .TP
  106. List the database instances
  107. .B
  108. dbscan -L /var/lib/dirsrv/slapd-supplier1/db
  109. .TP
  110. Dump the entry file:
  111. .B
  112. dbscan \fB\-f\fR id2entry.db4
  113. .TP
  114. Display index keys in cn.db4:
  115. .B
  116. dbscan \fB\-f\fR cn.db4
  117. .TP
  118. Display index keys in cn on lmdb:
  119. .B
  120. dbscan \fB\-f\fR /var/lib/dirsrv/slapd\-supplier1/db/userroot/cn.db
  121. (Note: Use \fBdbscan \-L db_home_dir\R to get the db instance path)
  122. .TP
  123. Display index keys and the count of entries having the key in mail.db4:
  124. .B
  125. dbscan \fB\-r\fR \fB\-f\fR mail.db4
  126. .TP
  127. Display index keys and the IDs having more than 20 IDs in sn.db4:
  128. .B
  129. dbscan \fB\-r\fR \fB\-G\fR 20 \fB\-f\fR sn.db4
  130. .TP
  131. Display summary of objectclass.db4:
  132. .B
  133. dbscan \fB\-s \-f\fR objectclass.db4
  134. .br
  135. .SH AUTHOR
  136. dbscan was written by the 389 Project.
  137. .SH "REPORTING BUGS"
  138. Report bugs to https://github.com/389ds/389-ds-base/issues/new
  139. .SH COPYRIGHT
  140. Copyright \(co 2001 Sun Microsystems, Inc. Used by permission.
  141. .br
  142. Copyright \(co 2017 Red Hat, Inc.
  143. .br
  144. This manual page was written by Michele Baldessari <[email protected]>,
  145. for the Debian project (but may be used by others).
  146. .br
  147. This is free software. You may redistribute copies of it under the terms of
  148. the Directory Server license found in the LICENSE file of this
  149. software distribution. This license is essentially the GNU General Public
  150. License version 2 with an exception for plug-in distribution.