Keyturn docsHow-to guides
Keep databases healthy
Find the databases that need work with db select, then act on them. A server task's own walk (--all) runs one console command, waits until it's done, and reports the total.
keyturn db select mail --live --where "freeMB > 20" --context-group domain
keyturn db compact mail/ --reduce-size --servers mail1,mail2 --fan-out-changes --yes --otp-cmd 'otp $SERVER'

| Job | Command |
|---|---|
| Compact a whole server | db compact --all |
| Fixup / Updall | db fixup --all, db updall --all --rebuild-views |
| Full-text indexes | db fti update --all; create missing ones: db fti create --where '!fti' |
| Refresh design | db refresh-design --all --template StdR14Mail |
| ODS upgrade | db ods report --all-servers, then db compact --where 'ods < 55' --copy-style |
| Quotas | db quota set --folder mail --limit 2048 --warning 1800 (undoable) |
| Sign design | db sign --template StdR14Mail --design-only |
| What fills a database | db size names.nsf, db info, db activity |
| Agents | agent list apps/sales.nsf, agent run apps/sales.nsf "Nightly Cleanup" --wait 90s |
| Stale databases | db select --where 'modifiedDays > 365' --paths > stale.txt, then a reviewed plan of db delete … --yes lines |
HCL, HCL Domino, Domino, Notes, HCL Traveler, HCL Verse and HCL Nomad are trademarks or registered trademarks of HCL Technologies Limited. Microsoft, Windows, Excel, Power Query and Power BI are trademarks of the Microsoft group of companies. macOS is a trademark of Apple Inc. Linux is the registered trademark of Linus Torvalds. Let's Encrypt is a trademark of the Internet Security Research Group. Claude and Claude Code are trademarks of Anthropic, PBC. Other names may be trademarks of their respective owners. KernalWorks is not affiliated with, sponsored by, or endorsed by any of them.