Hitachi

JP1 Version 12 JP1/Base User's Guide


jbs_log.bat (Windows only)

Organization of this page

Function

The jbs_log.bat command is a tool for collecting data if an error occurs in JP1/Base. The command collects data such as JP1/Base maintenance information, system information output by the OS, and integrated trace logs.

This tool is a batch file. It cannot be customized.

Executing this tool creates a jp1_default folder in the specified data folder. If you specify the -h option, in addition to the jp1_default folder, a folder with the name of the logical host is created. Two further folders, base_1st and base_2nd are created in each of these folders, and the data collected by jbs_log.bat is copied under them. If necessary, you can compress the collected data by using an archiving tool. The following table shows the folder organization and the files stored in each directory.

Command folder

Collected data

data-folder\jp1_default\base_1st\conf\

Settings and definition files

data-folder\jp1_default\base_1st\log\

Log file

data-folder\jp1_default\base_1st\allusers\jp1_default\JP1Base\log

Log file

data-folder\jp1_default\base_1st\allusers\logical-host-name\JP1Base\log

Log file

data-folder\jp1_default\base_1st\sys\

OS system information

data-folder\jp1_default\base_1st\sys\tmp\event\

Event server settings

data-folder\jp1_default\base_1st\sys\OPI

Information on the operation of services

data-folder\jp1_default\base_1st\default\

Common definition information

data-folder\jp1_default\base_1st\plugin\conf\

Plug-in service settings file

data-folder\jp1_default\base_1st\spool\

Integrated trace logs (32bit)

data-folder\jp1_default\base_1st\spoolx64\

Integrated trace logs (64bit)

data-folder\jp1_default\base_2nd\log\Command\

Command execution log files

data-folder\jp1_default\base_2nd\sys\

Event database

data-folder\logical-host-name\base_1st\conf\

Settings and definition files for the logical host (if applicable)

data-folder\logical-host-name\base_1st\log\

Log data for the logical host

(if applicable)

data-folder\logical-host-name\base_1st\event\

Event server settings for the logical host (if applicable)

data-folder\logical-host-name\base_1st\sys\OPI

Information on the operation of services for the logical host

data-folder\logical-host-name\base_2nd\sys\

Command execution log files for the logical host (if applicable)

data-folder\logical-host-name\base_2nd\event\

Event database for the logical host (if applicable)

For details on the types of data that you can collect with this tool, see 18.3 Data that must be collected when a problem occurs.

Format

jbs_log.bat [-h logical-host-name]
            [data-folder]
            [-r]
            [-t]
            [-u]
            [-p]
            [-q]

Required execution permission

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

Command directory

installation-folder\tools\

Arguments

-h logical-host-name

Specify the logical host if you are using JP1/Base in a cluster system. When this option is specified, the command collects information about the physical hosts and logical host. If you omit this option, the command collects information about the physical hosts only. There is no need to specify this argument unless you are running a cluster system.

You must specify the logical host name in this option if you use JP1/Base on a cluster system. You cannot use the environment variable JP1_HOSTNAME.

data-folder

Specify the folder to which you want to output the collected data, by full path or by relative path from the current directory in which you are executing the command. If the path contains a space, enclose the space in double quotation marks (").

If you specify a non-existing folder, a new folder will be created with that name.

If the specified folder already exists, it will be deleted and recreated. Do not specify the name of a folder containing files you want to keep. Furthermore, do not specify a folder on a network drive.

If you omit this option, the jp1log folder under the folder specified in the environment variable TEMP is assumed. As the TEMP setting differs according to the OS and user, check the setting by clicking System in the Control Panel.

-r

Specify this option if you do not want to collect command execution logs (ISAM).

-t

Specify this option if you do not want to collect data in the hosts and services files.

-u

Specify this option if you do not want to collect crash dumps.

-p

Specify this option if you do not want to collect data in the event database.

-q

Specify this option if you do not want the system to wait for your response about whether a data collection process will continue.

When the -q option is omitted, a confirmation message appears and your response is waited.

Notes

Return values

0

Normal end

8

Abnormal end

  • Invalid argument

  • Unable to find the folder containing data to be collected.