Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Updated the talk macro with the following parameter(s): []

...

Sv translation
languageen

To manage daily tablespaces via the command line, use the console utility that calls the iw_space_manager service. The service is available for the iwtm user and is enabled by default

Talk
idtalk-16132
.

Commands and parameters of the service:

CommandDescription
tbs:archive [options]  [--] <id>Starts archiving a daily tablespace with its ID specified. An example on how to archive a daily tablespace with ID=123:
iw_space_manager tbs:archive 123
tbs:create <type> <capture>

Creates a daily tablespace with the following data specified:

  • type: 0 – no violation, 1 – violation, 2 – screenshots
  • creation date in the YYYY-MM-DD format

An example on how to create a new daily tablespace with violations on September 1, 2023:
iw_space_manager tbs:create 1 2023-09-01

tbs:delete [options]  [--] <id>Deletes a daily tablespace with its ID specified. You can delete only an archived daily tablespace.
tbs:get [options]

Gets the list of existing daily tablespaces. Additional parameters:

  • --limit=LIMIT – sets the maximal number of items to display on the screen
  • --offset=OFFSET – hides the first N items (N=0 by default)
  • --order=ORDER – sorts the daily tablespace list by its name and creation time: ASC – ascending, DESC – descending

An example on how to get a list of 20 daily tablespaces sorted by name and descending date:
iw_space_manager tbs:get --limit=20 --order="TBS_NAME:ASC,PART_DATE:DESC"

tbs:restore [options] [--] <id>Restores an archived daily tablespace with its ID specified. An example on how to restore a daily tablespace with ID=123 from an archive:
iw_space_manager tbs:restore 123

With all the commands listed above, you can use the following common parameters: 

  • -f, --force – runs the command without the validation check in case of a database emergency
  • --used-configs – runs the command with the parameters from the configuration file
  • -p, --configpath [=CONFIGPATH] – displays the configuration file path. By default, it is opt/iw/tm5/etc
  • --force-config-load – force loads the configuration file even if the query parameters are specified

  To get logs and debug messages, run the service with the parameters below:

  • -v – displays usual logs;
  • -vv – displays logs with extended detalization;
  • -vvv – displays logs with full detalization. 

To get a list of available commands, run the command:

iw_space_manager list