Hitachi

Job Management Partner 1 Version 10 Job Management Partner 1/Automatic Job Management System 3 Command Reference 1


jajs_log.bat or _04.bat (Windows only)

Organization of this page

Format

jajs_log.bat | _04.bat
     [-h logical-host-name]
     [-f storage-directory]
     [-s]
     [-t]
     [-u]
     [-e]
     [-b]

Description

The data collection tool obtains maintenance information, such as the JP1/AJS3 logs and information about the OS.

_04.bat is the data collection tool for JP1/AJS3 10-10 or earlier. For JP1/AJS3 10-50 or later, you can also use jajs_log.bat as the data collection tool.

Both data collection tools have the same basic functionality. Use either tool depending on the purpose of use and whether customization is required.

The following table describes the purpose of jajs_log.bat and _04.bat, and whether they can be customized.

Table 2‒23: Purpose of data collection tools and whether they can be customized

Data collection tool

Purpose

Customization

jajs_log.bat

Use this tool if the log output destinations have not been changed from the defaults, or if you need to collect data by default only.

N

_04.bat

Customize this tool before using it if you have changed log output destinations from the defaults, or if you need to collect data other than the default data.#1, #2

Y

Legend:

Y: The tool can be customized.

N: The tool cannot be customized.

#1

For details about the customization method, see 7.1.1 Setting up the data collection tools in the Job Management Partner 1/Automatic Job Management System 3 Configuration Guide 1.

#2

If you have changed the installation destination folder from the default, use jajs_log.bat unless output destinations for log files were changed after installation.

By default, the results of executing the data collection tool are output to the following folders under %TEMP%\jp1ajs2\backlog.

For physical hosts:
  1. JP1_DEFAULT\JP1_DEFAULT_1st

    The data for the first reports is output.

  2. JP1_DEFAULT\JP1_DEFAULT_2nd

    The data for the second reports is output.

  3. JP1_DEFAULT\JP1_DEFAULT_3rd

    All other data is output.

For logical hosts:
  1. logical-host-name\logical-host-name_1st

    The data for the first reports is output.

  2. logical-host-name\logical-host-name_2nd

    The data for the second reports is output.

  3. logical-host-name\logical-host-name_3rd

    All other data is output.

Execution privileges

Administrators privileges

Storage directory

For jajs_log.bat:

JP1/AJS3-installation-folder\tools

For _04.bat:

JP1/AJS3-installation-folder\tools

Arguments

-h logical-host-name

Specify the name of the target logical host.

The data collection tool collects the data on the physical host in addition to the data on the specified logical host.

If you do not specify a name, the data collection tool obtains the physical host logs.

-f storage-directory

Use the absolute path to the folder to which collected data is output. You can also use a relative path from the location in which the command is executed. However, you cannot specify the root directory.

To specify a path that contains spaces, enclose the entire path in double quotation marks (").

If you specify a folder that does not exist, a new folder with that name is created.

If data has already been collected under the specified storage folder, a message asking whether you want to overwrite the files appears.

If you specify too long a path to the storage folder, data collection might fail. If data collection fails, specify a shorter path, and then retry collecting data.

If you omit this option, the collected data is output to %TEMP%\jp1ajs2\backlog. If you specify this option, the value of this option overrides the storage folder that was changed from the default by customizing the tool.

-s

Specify this option if you do not want to collect information about the database used by JP1/AJS3 or information about the database used by JP1/AJS3 Console.

If you do not specify this option, the data collection tool collects information about these databases.

-t

Specify this option if you do not want to obtain the hosts and services files.

-u

Specify this option if you do not want to obtain dump files.

You cannot obtain dump files for Windows 8.1, Windows 8, Windows Server 2012, Windows 7, Windows Server 2008, or Windows Vista.

-e

Specify this option if you do not want to collect detailed information about the embedded database.

The detailed information about the embedded database is the data for the second report, which is output to the embdbinfo folder.

If you do not specify this option, the data collection tool collects detailed information about the embedded database.

When this option is not specified, it is automatically determined whether to collect the information. Therefore, do not specify this option if you are unsure about whether detailed information about the embedded database needs to be collected.

Specify this option only when you want to suppress the collection of detailed information about the embedded database.

-b

Specify this option if you do not want to collect detailed information about JP1/Base.

The detailed information about JP1/Base is the data for the second report, which is output to the JP1BASE_INFO folder.

If you do not specify this option, the data collection tool collects detailed information about JP1/Base.

When this option is not specified, it is automatically determined whether to collect the information. Therefore, do not specify this option if you are unsure about whether detailed information about JP1/Base needs to be collected.

Specify this option only when you want to suppress the collection of detailed information about JP1/Base.

If free disk space at the output destination is insufficient, execute the data collection tool with the -b option specified, and then execute the data collection tool for JP1/Base (jbs_log) to collect detailed information about JP1/Base. For details about the data collection tool for JP1/Base (jbs_log), see the Job Management Partner 1/Base User's Guide.

Notes

  1. If you execute the data collection tool without the -s option specified during startup of the JP1/AJS3 service, the job might end abnormally. In such a case, JP1/AJS3 does not collect information about the ISAM database.

  2. To collect data about a logical host in a cluster system, execute the data collection tool on the host on which the logical host runs.

  3. The data collection tool does not compress the data if collects. To compress the data, use a data compression tool.

  4. If you have already created a file containing the execution results of batch files, JP1/AJS3 outputs a message asking for permission to overwrite the file. To overwrite the file, specify y. If you do not want to overwrite the file, specify n.

  5. While a batch file is being executed, JP1/AJS3 might display an error message reporting that a sharing violation has occurred for a file in the JP1/AJS3 - Manager-or-JP1/AJS3 - Agent-installation-folder\sys folder. This is not a problem.

  6. If you perform an operation on the collected data such as, moving it or deleting it immediately after the execution of the data collection tool has finished, a message reporting that the process cannot access a file because another process is currently using the file might appear. This message appears because a process that collects OS information internally is still being executed despite termination of the tool. If this message appears, wait a while and then retry the operation.

  7. If you execute the data collection tool while using Outlook, the following message might appear:

    The program is attempting to access email addresses in Outlook. Is this all right?

    The program indicated in this message is the machine configuration collection program (msinfo32) executed internally by the data collection tool. This program does not affect the operation of the data collection tool or Outlook.

    The data collection tool does not collect email addresses. If this message appears, click the No button.

  8. When you execute the data collection tool in Windows 8.1, Windows 8, Windows Server 2012, Windows 7, Windows Server 2008, or Windows Vista, you must open the Command Prompt window as an administrator. If you are not an administrator, UAC will frequently open a confirmation dialog box. If you turn UAC off, you will not need to open the Command Prompt window as an administrator.

  9. Do not execute more than one data collection tool at the same time. Do not execute jajs_log.bat and _04.bat at the same time.

  10. When you specify options, do not specify characters or symbols that have special meanings in the bat file. If you specify such characters and symbols, an unexpected error might occur.

Return values

0

Normal end

Value other than 0

Abnormal end

Messages

Message

Description

Action

Finished. Press any key.

The process ended normally. Press any key.

Wait for a user response.

Failed. Press any key.

The process did not end normally. Press any key.

See the output OS messages, remove the cause of the error, and then re-execute the process.

Wait for a user response.

File file-name is exist. Delete to continue? (y/n)

A file created the last time this process was executed exists. Press y to delete the file and continue processing, or press n to stop processing.

Wait for a user response.

Directory directory-name is exist. Delete to continue? (y/n)

A directory created the last time this process was executed exists. Press y to delete the directory and continue processing, or press n to stop processing.

Wait for a user response.

Error exist in option.

An option is specified incorrectly. Specify the option correctly, and then re-execute the process.

Complete the process.

The following logical hosts exist, other than the specified logical host. : logical-host-name

A logical host environment other than the one specified for the -h option exists. If necessary, re-execute the process.

After this message, the following message is output:

Finished. Press any key.

The collection of detailed information on EmbedDB _JF*# begins.

Collection of detailed information about the embedded database has started.

Continue processing.

The collection of detailed information on EmbedDB_JF*# ended.

Collection of detailed information about the embedded database has ended.

Continue processing.

The collection of detailed information on JP1/Base begins.

Collection of detailed information about JP1/Base has started.

Continue processing.

The collection of detailed information on JP1/Base ended.

Collection of detailed information about JP1/Base has ended.

Continue processing.

The collection of Event Log in text format begins.

Collection of event log data in text format has started.

Continue processing.

The collection of Event Log in text format ended.

Collection of event log data in text format has ended.

Continue processing.

#

_JF* indicates an embedded database identifier (_JF0, _JF1, _JF2, and so on). Detailed information is collected for each identifier.

Example 1

The following command collects physical host materials:

For jajs_log:
jajs_log.bat
If you use _04 customized to trouble.bat:
trouble.bat

Example 2

The following command collects physical host materials when the JP1/AJS3 service is running:

For jajs_log:
jajs_log.bat -s
If you use _04 customized to trouble.bat:
trouble.bat -s

Example 3

The following command collects data about a logical host (cluster):

For jajs_log:
jajs_log.bat -h cluster
If you use _04 customized to trouble.bat:
trouble.bat -h cluster

Data that can be collected

For physical hosts:

  • The data for first reports (%TEMP%\jp1ajs2\backlog\JP1_DEFAULT\JP1_DEFAULT_1st)

    Name of folder or file containing collected data

    Description

    \FILELIST.txt

    List of files under the JP1/AJS3 installation folder

    \GETERROR.log

    Log information that is output by the data collection tool (_04.bat)

    \HOSTS

    hosts file

    \services

    services file

    1. \JP1AJS2.DAT

    2. \JP1AJS2C.DAT

    3. \JP1AJS2CONSOLE.DAT

    4. \JP1AJS2DA.DAT

    5. \JP1AJS2SE.DAT

    6. \JP1AJS2V.DAT

    7. \JP1AJS2WOA.DAT

    8. \JP1BASE.DAT

    Registry information about each product

    \REGDATA.DAT

    JP1 registry information

    \WIN.DAT

    Windows registry information

    \ajsqlstatus.txt

    Execution result of ajsqlstatus.exe

    \ajsagtshow.txt

    Execution result of ajsagtshow.exe

    \ajsagtprint.txt

    Execution result of ajsagtprint.exe

    \jajs_status.txt

    Execution result of jajs_status.exe

    \ajsprof_scheduler-service-name_agent_stat.txt#1

    Execution result of ajsprofstatus.exe (-t agent -s option)

    \ajsprof_scheduler-service-name_agent_def.txt#1

    Execution result of ajsprofstatus.exe (-t agent -p option)

    \ajsprof_scheduler-service-name_unit_stat.txt#1

    Execution result of ajsprofstatus.exe (-t unit -s option)

    \ajsprof_scheduler-service-name_unit_def.txt#1

    Execution result of ajsprofstatus.exe (-t unit -p option)

    \jajs_pmtcon_m.txt

    Execution result of jajs_pmtcon.exe (-m -v option)

    \jajs_pmtcon_a.txt

    Execution result of jajs_pmtcon.exe (-a -v option)

    \OSINFO.txt

    OS version, Windows environment variables, IP configuration, network configuration, statistics

    \PERMISSIONINFO.TXT

    Access permissions for JP1/AJS3 folders

    \WINMSD.TXT

    Information, such as a system overview, collected by using the msinfo32 command and the tasks and services being executed.

    For Windows 8.1, Windows 8, Windows Server 2012, Windows 7, Windows Server 2008, or Windows Vista, all system information that is collected by using the msinfo32 command

    1. \ALLUSERSPROFILE\conf\JP1AJS2 (for Windows Server 2012 or Windows Server 2008)

    2. \conf\JP1AJS2 (for Windows Server 2003)

    3. \conf\jp1ajs2cm

    4. \conf\JP1AJS2DA

    5. \conf\JP1AJS2V (for Windows Server 2003 or Windows XP Professional)

    6. \ALLUSERSPROFILE\conf\JP1AJS2V (for Windows 8.1, Windows 8, Windows Server 2012, Windows 7, Windows Server 2008, or Windows Vista)

    7. \conf\JP1AJS2WOA

    Environment-settings file storage folder

    \drwtsn\Windows2003\drwtsn32.log (for Windows Server 2003)

    Dr. Watson logs#2

    \EMBDB\_JF*#3\conf

    Embedded database definition file

    \EMBDB\_JF*#3\spool

    Embedded database failure investigation file

    \EMBDB\_JF*#3\etc

    Other information related to the embedded database that is needed for investigation

    \HNTRLib2\spool

    Integrated trace log

    1. \ALLUSERSPROFILE\JP1AJS2 (for Windows Server 2012 or Windows Server 2008)

    2. \JP1AJS2 (for Windows Server 2003)

    3. \JP1AJS2C

    4. \jp1ajs2cm

    5. \JP1AJS2DA (for Windows Server 2003 or Windows XP Professional)

    6. \ALLUSERSPROFILE\JP1AJS2DA (for Windows 8.1, Windows 8, Windows Server 2012, Windows 7, Windows Server 2008, or Windows Vista)

    7. \JP1AJS2HC

    8. \JP1AJS2V (for Windows Server 2003 or Windows XP Professional)

    9. \ALLUSERSPROFILE\JP1AJS2V (for Windows 8.1, Windows 8, Windows Server 2012, Windows 7, Windows Server 2008, or Windows Vista)

    10. \JP1BASE

    Folders containing log files

    1. \PATCHLOG\JP1JAJS2\PATCHLOG.txt

    2. \PATCHLOG\JP1JAJS2C\PATCHLOG.txt

    3. \PATCHLOG\JP1JAJS2console\PATCHLOG.txt

    4. \PATCHLOG\JP1JAJS2DA\PATCHLOG.txt

    5. \PATCHLOG\JP1JAJS2V\PATCHLOG.txt

    6. \PATCHLOG\JP1JAJS2WOA\PATCHLOG.txt

    Patch log files

    \resource\JP1AJS2V

    Folder containing resource files

    1. \ALLUSERSPROFILE\sys\JP1AJS2 (for Windows Server 2012 or Windows Server 2008)

    2. \sys\JP1AJS2 (for Windows Server 2003)

    3. \sys\JP1AJS2WOA

    4. \sys\JP1AJS2V (for Windows Server 2003 or Windows XP Professional)

    5. \ALLUSERSPROFILE\sys\JP1AJS2V (for Windows 8.1, Windows 8, Windows Server 2012, Windows 7, Windows Server 2008, or Windows Vista)

    Folders containing the system files

    1. \ALLUSERSPROFILE\tmp\JP1AJS2DA (for Windows 8.1, Windows 8, Windows Server 2012, Windows 7, Windows Server 2008, or Windows Vista)

    2. \tmp\JP1AJS2DA (for Windows Server 2003 or Windows XP Professional)

    Folders containing temporary files for execution

    1. \ALLUSERSPROFILE\tmp\schedule\pd*.trc (for Windows Server 2012 or Windows Server 2008)

    2. \tmp\schedule\pd*.trc (for Windows Server 2003)

    Embedded database trace logs

    \user_acl

    Folder containing user mapping and authentication settings files

    \jp1common_ajs2

    Folder containing product information files

    \HCDINST#4

    Hitachi integrated installation log

    \jp1common

    JP1/Base installation log

    #1

    Information about all scheduler services on the host is collected.

    #2

    This data cannot be collected for Windows 8.1, Windows 8, Windows Server 2012, Windows 7, Windows Server 2008, or Windows Vista.

    #3

    _JF* indicates an embedded database identifier (_JF0, _JF1, _JF2, and so on). A folder is created for each identifier.

    #4

    With the exception of Windows Server 2003 (x64), this data cannot be collected for Windows Server 2003.

  • The data for second reports (%TEMP%\jp1ajs2\backlog\JP1_DEFAULT\JP1_DEFAULT_2nd)

    Name of folder or file containing collected data

    Description

    \ADD

    Folder for additional collected data

    1. \cmdatabase

    2. \database

    3. \embdatabase\_JF*#1

    Database storage folders

    1. \eventlog\AppEvent(Backup).evt

    2. \eventlog\AppEvent(Backup).txt

    Application event log

    1. \eventlog\SysEvent(Backup).evt

    2. \eventlog\SysEvent(Backup).txt

    System event log

    1. \SHMDUMP\coreinfo-ISAM.shmdump

    2. \SHMDUMP\coreinfo-Scheduler.shmdump

    3. \SHMDUMP\ProgMon.shmdump

    4. \SHMDUMP\coreinfo-host.shmdump

    5. \SHMDUMP\coreinfo-hostprof.shmdump

    6. \SHMDUMP\coreinfo-pmtcon_m.shmdump

    7. \SHMDUMP\coreinfo-pmtcon_a.shmdump

    Shared memory information

    1. \USERDUMP\*.dmp

    2. \WTSNDUMP\*.dmp

    Dump files#2

    \embdbinfo\_JF*#1

    Detailed information about the embedded database

    \JP1BASE_INFO#3

    Detailed information about JP1/Base

    #1

    _JF* indicates an embedded database identifier (_JF0, _JF1, _JF2, and so on). A folder is created for each identifier.

    #2

    The data collection tool cannot collect this data for Windows 8.1, Windows 8, Windows Server 2012, Windows 7, Windows Server 2008, or Windows Vista.

    #3

    The detailed information about JP1/Base is created as data for the second physical hosts report, regardless of the data for physical hosts or logical hosts.

  • The data for third reports (%TEMP%\jp1ajs2\backlog\JP1_DEFAULT\JP1_DEFAULT_3rd)

    Name of folder or file containing collected data

    Description

    1. \ALLUSERSPROFILE\jobinf (for Windows Server 2012 or Windows Server 2008)

    2. \jobinf (for Windows Server 2003)

    Folder containing information about jobs

For logical hosts:

  • The data for first reports (%TEMP%\jp1ajs2\backlog\logical-host-name\logical-host-name_1st)

    Name of folder or file containing collected data

    Description

    \jpomanevshow.txt

    Execution result of jpomanevshow.exe

    \ajsqlstatus.txt

    Execution result of ajsqlstatus.exe

    \ajsagtshow.txt

    Execution result of ajsagtshow.exe

    \jajs_status.txt

    Execution result of jajs_status.exe

    \ajsprof_scheduler-service-name_agent_stat.txt#1

    Execution result of ajsprofstatus.exe (-t agent -s option)

    \ajsprof_scheduler-service-name_agent_def.txt#1

    Execution result of ajsprofstatus.exe (-t agent -p option)

    \ajsprof_scheduler-service-name_unit_stat.txt#1

    Execution result of ajsprofstatus.exe (-t unit -s option)

    \ajsprof_scheduler-service-name_unit_def.txt#1

    Execution result of ajsprofstatus.exe (-t unit -p option)

    \jajs_pmtcon_m.txt

    Execution result of jajs_pmtcon.exe (-m -v option)

    \jajs_pmtcon_a.txt

    Execution result of jajs_pmtcon.exe (-a -v option)

    \JP1AJS2_LOGICAL

    Folder containing log files

    \JP1BASE

    Folder containing JP1/Base log files

    \EMBDB\_JF*#2\conf

    Embedded database definition file

    \EMBDB\_JF*#2\spool

    Embedded database failure investigation file

    \EMBDB\_JF*#2\etc

    Other information related to the embedded database that is needed for investigation

    \sys\JP1AJS2

    System folder

    \tmp\schedule\pd*.trc

    Embedded database trace log

    \user_acl

    Folder containing user mapping and authentication settings files

    #1

    Information about all scheduler services on the host is collected.

    #2

    _JF* indicates an embedded database identifier (_JF0, _JF1, _JF2, and so on). A folder is created for each identifier.

  • The data for second reports (%TEMP%\jp1ajs2\backlog\logical-host-name\logical-host-name_2nd)

    Name of folder or file containing collected data

    Description

    1. \cmdatabase

    2. \database

    3. \embdatabase\_JF*#

    Database storage folders

    \SHMDUMP\ProgMon.shmdump

    Information about the shared memory for monitoring processing status

    \SHMDUMP\coreinfo-host.shmdump

    Information about the shared memory for the system management function

    \SHMDUMP\coreinfo-hostprof.shmdump_logical-host-name

    Information about the shared memory for the operation profile

    1. \SHMDUMP\coreinfo-pmtcon_m.shmdump

    2. \SHMDUMP\coreinfo-pmtcon_a.shmdump

    Information about the shared memory for the connection source restriction function

    \embdbinfo\_JF*#

    Detailed information about the embedded database

    #

    _JF* indicates an embedded database identifier (_JF0, _JF1, _JF2, and so on). A folder is created for each identifier.

  • The data for third reports (%TEMP%\jp1ajs2\backlog\logical-host-name\logical-host-name_3rd)

    Name of folder or file containing collected data

    Description

    \jobinf

    Folder containing information about jobs