tw_query utility enables you to extract data using a query. The information can be output in CSV or XML format using one of the available arguments.
To use the utility, type the following command at the
- query is the data you want to extract from the Search service.
- options are any of the options described in the following table and the common command line options described in Using command line utilities.
Command Line Option
The output of the query is saved in .CSV format
Specifies the delimiter character used in .CSV files
|Marks all of the nodes returned by the query as deleted.|
Specifies the name of the .CSV output file
Dump to files specified in first column
Do not output column headings
Specifies the name of the search service
Reports the time taken to perform the query
Specifies that the output of the query will be saved in .XML format
tw_query utility provides the capability of marking the results of a query as destroyed. This does not delete the nodes returned, it simply marks them as deleted. Where nodes must be completely removed, such as to comply with a request for personal information to be deleted, this is possible in BMC Discovery 11.3 patch 1 and later. For details of removing personal information, see Addressing data privacy requests.
The following user examples show basic usage, marking a named host as destroyed, and results written to a CSV file. The commands are entered on a single line, but broken here to help readability.