deleterestoreddata CLI command
Use this command to delete data restored from archives for a selected period.
Syntax
Note
Before you run the command, note the following points:
- Set up the CLI. For more information, see Managing the product from the command line interface.
- Prefix this command with the following, as appropriate:
- For Windows: itda.bat
- For Linux: ./itda.sh
deleterestoreddata -startDate <start date in yyyy-MM-dd format> -endDate <end date in yyyy-MM-dd format> -d <hostname> -p
<port>
-u <username>
-w <password> -l [locale] -s[Protocol to connect with IT Data Analytics]
Angle brackets (< >) indicate a variable value that needs to be user defined.
Square brackets ([ ]) indicate optional parameters.
The following table describes the parameters used in the syntax:
Parameter | Description |
---|---|
-startDate | The start date from which the restored data is to be deleted. The date format must be in yyyy-MM-dd format and the date must be from the GMT timezone. |
-endDate | The end date till which the restored data is to be deleted. The date format must be in yyyy-MM-dd format and the date must be from the GMT timezone. |
-d | Host name of the Console Server. |
-p | Port number of the Console Server. |
-u | Admin username of TrueSight IT Data Analytics. |
-w | Admin Password of TrueSight IT Data Analytics. |
-s | (Optional) Indicates an HTTPS connection. |
-l | (Optional) Indicates the locale in which you want to display messages when the command is run. You can set one of the following locales:
By default, the messages are displayed in the locale of the system on which the CLI is run. The value can be set to one of the following depending on the locale you choose:
Example: If you want to set the locale as Simplified Chinese, you need to specify, |
Example inputs
The following example provides the input for deleting restored data:
deleterestoreddata -startDate 2016-10-10 -endDate 2016-12-12 -d localhost -p 9797 -u admin -w admin12345
Comments