dbmon.sh.8 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 DBMON.SH 8 "Jul 25, 2014"
  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. dbmon.sh - Directory Server script for monitoring database and entry cache usage
  20. .SH SYNOPSIS
  21. [INCR=num] [HOST=hostname] [PORT=num] [BINDDN=binddn] [BINDPW=password] [DBLIST=databases] [INDEXLIST=indexes] [VERBOSE=num] dbmon.sh
  22. .SH DESCRIPTION
  23. dbmon.sh is a tool used to monitor database and entry cache usage. It is especially useful for database cache and entry/dn cache tuning - how much space is left, is the cache full, how much space on average do I need per entry/dn.
  24. .SH OPTIONS
  25. It doesn't take any command line arguments, so all options must be passed in as environment variables.
  26. dbmon.sh will loop repeatedly showing the db information until it is killed or Ctrl-C
  27. All arguments are optional, but you will most likely have to provide BINDPW
  28. .TP
  29. .B \fBINCR\fR - show results every INCR seconds - default is 1 second
  30. .TP
  31. .B \fBHOST\fR - name of host or IP address - default is "localhost"
  32. .TP
  33. .B \fBPORT\fR - port number (LDAP not LDAPS) - default is 389
  34. .TP
  35. .B \fBBINDDN\fR - DN to use to bind - must have permission to read everything under cn=config - default is cn=Directory Manager
  36. .TP
  37. .B \fBBINDPW\fR - password for BINDDN - default is secret
  38. .TP
  39. .B \fBDBLIST\fR - a list of databases you want to check - default is "all"; for more than one, delimit with spaces e.g. DBLIST="one two three"
  40. .TP
  41. .B \fBINDEXLIST\fR - a list of indexes to show for each named database - default is none; specify "all" for all indexes, or named e.g. INDEXLIST="id2entry entryrdn"
  42. .TP
  43. .B \fBVERBOSE\fR - output level - 0 == suitable for parsing by a script - 1 == has column headings - 2 == provides detailed descriptions of the data - default is 0
  44. .SH EXAMPLE
  45. INCR=1 HOST=ldap.example.com BINDDN="cn=directory manager" BINDPW="secret" VERBOSE=2 dbmon.sh
  46. .SH AUTHOR
  47. dbmon.sh was written by the 389 Project.
  48. .SH "REPORTING BUGS"
  49. Report bugs to https://fedorahosted.org/389/newticket.
  50. .SH COPYRIGHT
  51. Copyright \(co 2014 Red Hat, Inc.