deleterestoreddata CLI command

Use this command to delete data restored from archives for a selected period.

Related topic

Syntax

Note

Before you run the command, note the following points:

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:

ParameterDescription
-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:

  • English
  • Simplified Chinese
  • German
  • French

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:

  • English: en
  • Simplified Chinese: chs
  • German: de
  • French: fr

Example: If you want to set the locale as Simplified Chinese, you need to specify, l=chs.

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
Was this page helpful? Yes No Submitting... Thank you

Comments