For diagnosing collections and doing maintenance tasks, these tools are available:
The basic collection maintenance tool is called mkvdk. This is a command-line tool that can be used to index a collection, insert new documents, perform simple maintenance tasks like purge and delete a collection, and control indexing behavior/performance. The mkvdk tool is described in the Verity K2 Indexers Guide.