Administration tool for Db2 Text Search
The administration tool is a command-line tool that provides a convenient way to do several administrative tasks that are related to Db2 Text Search.
You can use the administration tool to complete the following tasks:
- Check the status and properties of text search collections
- Optimize text search collections
- Delete orphaned text search collections
- Report the version of the server
Tool syntax
Parameters
-
status
- Provides the status of a text search collection, including the index size, the number of documents present, and the progress of index updates. version
- Displays the version of the server in the following format:
version.release.modification.fixpack-protocol-build- The version.release.modification.fixpack is the standard version number convention that is used by IBM products.
- The protocol is the number that is used to serialize request arguments and data between the server and client.
- The build is the number that indicates the server build.
The following example indicates server version 1, protocol 1.1, and build 290.1.0.0.0-1.1-290
supportedClientVersions
- Prints the list of supported client versions. configureTrace
- Enables or disables tracing. printTrace
- Prints the current trace setting. configPath absolute-path-to-config-folder
- Specifies the absolute path to the text search configuration folder. locale five-char-locale-string
- Specifies the five character locale for writing any error messages that are returned during the use of the tool. If you do not specify this parameter, the server locale is used. help
- Prints the Administration Tool command usage. The usage information is also printed if you run the Administration Tool without a required argument. collectionNamecollection-name
- You must use this option only with orphaned collections. Ensure that the collection is not associated with a valid text index. Also do not delete a collection while documents are being indexed. collectionPath collection-path
- Specifies the full path to the directory where collections are stored. delete
- Deletes the text search collection specified by collectionName optimizeIndex
- Optimizes the specified collection for faster indexing and searching.Note: You cannot optimize an index when the indexing server is processing documents.
optimizeIndexStatus
- Prints the optimization status.
Examples
To delete
a collection:
adminTool delete -configPath /opt/ibm/search/config -collectionName db2inst1_SAMPLE_TS242320_0000To
print the status of all of the collections that use the French locale,
issue the following command:
adminTool status -configPath "c:\Program Files\IBM\Search\config" -locale fr_FR
To turn on tracing, issue the following command:
adminTool configureTrace -configPath /opt/ibm/search/config -trace onUsage notes
The error or trace log is, by default, written to AdminTool.0.log in the default log directory. You can format the log by using the Log Formatter tool.
Run the administration tool from the <ECMTS_HOME>\bin directory
on the ECM Text Search server.
- On Linux® or UNIX systems: adminTool.sh
- On Windows systems: adminTool.bat
