Hitachi

JP1 Version 12 JP1/Automatic Operation Command and API Reference 


1.7.6 restoresystem (restoring the JP1/AO system)

Description

This command restores the backup data, such as the configuration and database information of JP1/AO, obtained by the backupsystem command.

The following list shows the data restored when the command is executed:

#

The status of restored tasks and debug tasks is changed after restoration as follows.

Table 1‒18: Status of tasks and debug tasks at backup time and after restoration

Status of tasks and debug tasks at backup time

Status of tasks and debug tasks after restoration

Waiting

Canceled (The end date and time of the tasks and debug tasks are set to the date and time of restoration.)

Holding

In Progress

Failed

Waiting for Response

Abnormal Detection

Terminated

Completed

Completed

Failed

Failed

Canceled

Canceled

Syntax

restoresystem
     /dir backup-data-path
     [/auto]

Arguments

/dir backup-data-path

This option specifies the absolute or relative path to the backup folder that stores the backup data specified in the backupsystem command.

/auto

This option causes the command to automatically start and stop the services and databases of JP1/AO, JP1/OA, and the Hitachi Command Suite products. If this option is omitted, the services and databases of JP1/AO, JP1/OA, and the Hitachi Command Suite products are not automatically started and stopped.

If you want to use this option in a cluster environment, services registered with the cluster software must be offline.

Located in

In Windows:

JP1/AO-installation-folder\bin

In Linux:

/opt/jp1ao/bin

Execute permission

Execute the command as a user with Administrator or root permissions. If a user without Administrator or root permissions executes the command, a message appears asking the user to elevate the permission level.

Remarks

Return code

The following table lists the return codes from the command.

Return code

Description

0

The command succeeded.

1

The argument is invalid.

2

The command execution has been interrupted.

3

The service status is invalid.

4

One of the other commands is running.

7

An invalid path is specified.

9

The specified path does not exist.

10

The specified path is not accessible.

14

You do not have permission to execute the command.

110

Performing the restoration failed.

111

Starting or stopping the service failed.

113

The backup file is invalid.

114

An access to the scheduler database failed.

255

The command execution has been interrupted due to an error other than the above.

Example

The following example shows how to use the command to restore, in Windows, data in the specified backup folder (C:\Users\Backup):

restoresystem /dir C:\Users\Backup /auto