jajs_log.bat (Windows only)
- Organization of this page
Format
jajs_log.bat [-h logical-host-name] [-f storage-directory] [-s] [-t] [-u] [-b]
Description
This command collects maintenance information, such as the JP1/AJS3 for Cloud Service Applications definitions, operating information, and information about the OS.
By default, the results of executing the data collection tool are output to the following files under %TEMP%\jp1ajs2\backlog.
- For physical host
-
-
JP1_DEFAULT\JP1_DEFAULT_1st
The data for the first reports are output.
-
JP1_DEFAULT\JP1_DEFAULT_2nd
The data for the second reports are output.
-
JP1_DEFAULT\JP1_DEFAULT_3rd
All the other data are output.
-
- For logical host
-
-
logical-host-name\logical-host-name_1st
The data for the first report are output.
-
logical-host-name\logical-host-name_2nd
The data for the second report are output.
-
logical-host-name\logical-host-name_3rd
All the other data are output.
-
Execution privileges
Administrators privileges
Storage directory
JP1/AJS3 for Cloud Service Applications-installation-folder\tools\
Arguments
-h logical-host-name
Specify the name of the target logical host. Data of JP1/Base is collected from the specified logical host.
In addition, 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 physical host logs are collected.
-f storage-directory
Use the absolute path to the folder to which collected data are 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 have already been collected in the specified storage folder, a message asking whether you want to overwrite the files is displayed.
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 collection data.
If you omit this option, the collected data are 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.
If you do not specify this option, the data collection tool collects information about the database.
-t
Specify this option if you do not want to obtain the hosts, services, and password files.
-u
Specify this option if you do not want to obtain dump files.
-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 directory.
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 JP1/Base User's Guide.
additional-file
Use the full path without space characters to specify the file that is not usually obtained by using the data collection tool, such as the core file of the JP1/AJS3 commands. If the specified file name contains a space character, the system assumes that the character string before the space is an additional file name and treats the characters after the space as other arguments. Using this argument, you can collect information that is not automatically collected by the data collection tool.
If the core file is specified as an additional file, the core file is collected even if you specify the -u option.
You can specify a directory name for additional-file. If you specify a directory, all the data in the specified directory are collected.
Notes
-
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.
-
To collect data about a logical host in a cluster configuration, execute the data collection tool on the logical host on which the logical host runs.
-
The data collection tool does not compress the data if collects. To compress the data, use a data compression tool.
-
If you have already created a file containing the results of batch files, JP1/AJS3 outputs a message asking for permission to overwrite the file. To override the file, specify y. If you do not want to overwrite the file, specify n.
-
While a batch file is being executed, JP1/AJS3 might display an error message stating that a sharing violation has occurred for a file in the JP1/Cloud Service Linkage-installation-folder\sys folder. This is not a problem.
-
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 be displayed. This message is displayed because a process that collects OS information internally is still being executed despite termination of the tool. If this message is displayed, wait a while and then retry the operation.
-
If you execute the data collection tool while using Outlook, the following message might be displayed:
The program is attempting to access email addresses in Outlook. Is this all right?
This message is displayed because of the machine configuration collection program (msinfo32) that is 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 is displayed, click the No button.
-
When you execute the data collection tool, you must open the Command Prompt window as an administrator. If you are not an administrator, UAC will frequently open a confirmation dialog box while the data collection tool is running. If you turn UAC off, you will not need to open the Command Prompt window as an administrator.
-
Do not execute more than one data collection tool at the same time.
-
When you specify options, do not specify characters or symbols that have special meanings in the batch file. If you specify such characters and symbols, an unexpected error might occur.
-
When the ajscsasetup command was used with the -d option specified for system setup, you need to manually obtain the directory specified for the -d option.
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 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. |
Example 1
The following command collects data about a physical host.
jajs_log.bat
Example 2
The following command collects physical host data while the JP1/AJS3 service is running.
jajs_log.bat -s
Example 3
The following command collects data about a logical host (cluster).
jajs_log.bat -h cluster
Data that can be collected
The data collection tool collects the data about JP1/AJS3 for Cloud Service Applications in addition to the data about JP1/AJS3 - Manager. The data additionally collected from JP1/AJS3 for Cloud Service Applications are shown below. For details on data collected from JP1/AJS3 - Manager, see jajs_log.bat or _04.bat (Windows only) in 3. Commands Used for Normal Operations in the manual JP1/Automatic Job Management System 3 Command Reference.
- The data for the first reports (%TEMP%\jp1ajs2\backlog\JP1_DEFAULT\JP1_DEFAULT_1st"1)
-
Name of folder or file containing collected data
Description
\JP1AJS3CSA_INFO\ALLUSERSPROFILE
Storage destination of user data
\JP1AJS3CSA_INFO\ALLUSERSPROFILE\conf
Storage destination of configuration files excluding the root certificate
\JP1AJS3CSA_INFO\ALLUSERSPROFILE\database
Storage destination of database information
\JP1AJS3CSA_INFO\ALLUSERSPROFILE\database\jp1ajscsadbdef.dat
Database definition file output result file (authentication information excluded)
\JP1AJS3CSA_INFO\ALLUSERSPROFILE\database\jp1ajscsadbexe.dat
History information output result file of the database
\JP1AJS3CSA_INFO\ALLUSERSPROFILE\log
Storage destination of log files
\JP1AJS3CSA_INFO\ALLUSERSPROFILE\tmp
Storage destination of temporary files
\JP1AJS3CSA_INFO\conf
Storage destination of configuration files excluding the root certificate
\JP1AJS3CSA_INFO\database#2
Storage destination of database information
\JP1AJS3CSA_INFO\database\jp1ajscsadbdef.dat#2
Definition information output result file
\JP1AJS3CSA_INFO\database\jp1ajscsadbexe.dat#2
History information output result file
\JP1AJS3CSA_INFO\HNTRLib2
Storage destination of log files
\JP1AJS3CSA_INFO\jp1common_ajs2
Storage destination of product information files
\JP1AJS3CSA_INFO\jp1common_ajs3csa
Storage destination of log files
\JP1AJS3CSA_INFO\log#2
Storage destination of log files
\JP1AJS3CSA_INFO\SHARED#3
Storage destination of shared folder information
\JP1AJS3CSA_INFO\SHARED\conf#3
Storage destination of configuration files excluding the root certificate
\JP1AJS3CSA_INFO\SHARED\database#3
Storage destination of database information
\JP1AJS3CSA_INFO\SHARED\database\jp1ajscsadbdef.dat#3
Definition information output result file
\JP1AJS3CSA_INFO\SHARED\database\jp1ajscsadbexe.dat#3
History information output result file
\JP1AJS3CSA_INFO\SHARED\log#3
Storage destination of log files
\JP1AJS3CSA_INFO\SHARED\tmp#3
Storage destination of temporary files
\JP1AJS3CSA_INFO\srvdata
Data of the HTTP server and application server
\JP1AJS3CSA_INFO\srvdata\snapshot.zip
Data of the HTTP server and application server
\JP1AJS3CSA_INFO\sys
Storage destination of system files
\JP1AJS3CSA_INFO\tmp#2
Storage destination of temporary files
\JP1AJS3CSA_INFO\Version\ProductInfo.txt
Product information file
\JP1AJS3CSA_INFO\Version\Version.txt
Product information file
\JP1AJS3CSA_INFO\FILELIST.txt
File list output file
\JP1AJS3CSA_INFO\GETERROR.log
Error log file
\JP1AJS3CSA_INFO\JP1AJS3CSA.DAT
Registry information
\JP1AJS3CSA_INFO\PERMISSIONINFO.TXT
Folder permissions output file
- #1
-
When the -f option is omitted, data are output here.
- #2
-
Collection is performed only if the relevant folders and files are deployed in the installation destination folder.
- #3
-
\JP1AJS3CSA_INFO\SHARED and the files and directories under it are collected only when setup is executed by using the ajscsasetup command with the -d option specified and when the directories and files exist.