Hitachi

Job Management Partner 1 Version 10 Job Management Partner 1/IT Desktop Management Configuration Guide


8.6  recreatelogdb (recreating an operation log index on the site server)

This section describes the recreatelogdb command, which re-creates indexes to view the operation logs stored on the site server.

Functionality

This command re-creates indexes to be used for referring to the operation logs stored on the site server. It also reports the list of agent-operated logs managed by the site server up onto the management server.

Indexes are created on each site server and reported to the management server. When viewing the distributed operation logs from the operation window, the operation logs are searched through using the index information and thus the logs on the site server can be reached.

Operation logs stored on the site server cannot be viewed correctly if an inconsistency is introduced between the operation log data and the indexes on the site server due to the operation log data being manually added or removed, or if index information is corrupted due to a system failure. In such cases, you can use the recreatelogdb command. An operation log index will be re-created and the operation logs on the site server will be properly referred to.

Execute the recreatelogdb command in cases like the following:

This command must be executed on the site server.

Format

recreatelogdb{ -all| -add| -node}

Argument

-all

Re-creates indexes of the operation logs stored in the site server. Indexes are recreated after the command is completed, when the site server is started. Specify this argument to re-create indexes in such cases as when operation log data is moved or the database on the site server is corrupted.

If this command is executed with this argument when the site server is started, the server stops during command execution. The site server starts again when the command is completed. If this command is executed when the site server is stopped, the server remains stopped after the command is completed.

-add

Creates additional operation log indexes. Indexes are created after the command is completed, when the site server is started. Specify this argument when additional operation logs are added to the site server. For example, specify when operation log data is moved from another site server.

If the command is executed with this argument when the site server is started, the server stops during command execution. The site server starts again when the command is completed. If this command is executed when the site server is stopped, the server remains stopped after the command is completed.

-node

Reports the list of agent-operated logs managed by the site server up onto the management server. An index is not recreated. Specify this argument in the following cases:

  • There is no defect in the database on the site server, but database on the management server is corrupted. The operation logs cannot be searched correctly.

  • When the site server connection destination is changed to a management server in another system

  • When the database is rebuilt (the updatesupportinfo command is executed) on the management server

Storage location

site-server-installation-folder\mgr\bin\

Notes

Return value

The following table shows the return values of the recreatelogdb command.

Return value

Description

0

The command finished normally.

1

A warning was raised during command execution. The command stopped.

11

The specified format for the argument is incorrect.

31

Another command is being executed.

51

You do not have the permissions to execute this command.

54

The site server has not been set up.

58

Failed to connect to the management server.

62

A file access error occurred.

67

A job status recording file for the deletelog command exists.

101

Command execution failed because there is not enough memory, or due to some other reason.

102

Failed to automatically stop the site server.

120

A database access error occurred.

Example

The following example shows use of this command to re-create indexes of the operation logs, in case the database on the site server has been corrupted.

recreatelogdb -all

Related Topics: