Hitachi

JP1 Version 12 JP1/Base User's Guide


jevdbswitch

Organization of this page

Function

The jevdbswitch command forcibly switches the event database in which events are actually registered from the active database to the standby database on the event server where the event service is running.

When the standby event database is swapped in, its existing contents are deleted. If you execute this command twice in succession, both event databases are initialized. If you want to preserve the JP1 events already registered in the event database, use the jevexport command to output the event database in CSV format before you initialize the database.

For details on initializing an event database by using the jevdbswitch command, see 10.2 Initializing the event database.

Format

jevdbswitch [-h event-server-name]
            [-f]

Required execution permission

In Windows: Administrators (If User Account Control (UAC) for Windows is enabled, you must execute the command from the administrator console.)

In UNIX: Superuser or JP1/Base administrator permission

Command directory

In Windows:

installation-folder\bin\

In UNIX:

/opt/jp1base/bin/

Arguments

-h event-server-name

Specify the event server on which to swap the event database in which events are actually registered from the active database to the standby database. If you omit this option, the logical host name set in the environment variable JP1_HOSTNAME is assumed as the event server name. If the environment variable JP1_HOSTNAME is not set, the event server name is assumed to be the same as the local host name. Specify the event server name as a character string of no more than 255 bytes.

-f

If you omit this option, a message asks if you are sure you want to execute the command. (The displayed message is Is This OK?[Y/N].) Specify this option if user confirmation is unnecessary.

Return values

0

Normal end

1

Invalid argument

2

Insufficient execution permission

3

I/O error

4

Insufficient memory

5

Undefined event server name

8

Unable to connect to the event service.

9

Unable to detect whether the event databases have been switched.

255

Other error