5.5.1 Data collection tool
The data collection tool is a tool used to collect data when troubleshooting an issue that has occurred in JP1/Script.
- Organization of this subsection
(1) Executing the data collection tool
Execute the data collection tool as follows:
C:\>"C:\Program Files (x86)\HITACHI\Script\tools\sptlog.bat" -o C:\temp
In this case, the execution results of the data collection tool are output to C:\temp\jp1script. Collect the information in this folder. If a file containing the execution results of the data collection tool already exists, a message asking you whether you want to overwrite the information appears. Enter y in response to the message.
For details on the data collection tool, see 5.5.1(2) Data collection tool details.
- Important
-
Before you execute the batch file of the data collection tool, use Script Viewer to confirm that no script file is being executed. In addition, do not execute any scripts until the data collection tool terminates.
(2) Data collection tool details
- Purpose
-
This tool is used for data collection when troubleshooting an issue that has occurred in JP1/Script. The data collected includes JP1/Script maintenance data, OS system information, and other pertinent data.
This tool is a batch file. It cannot be customized by the user.
- Syntax
sptlog.bat [-o output-destination-folder]
- Execute permission
-
Administrative privileges
- Storage directory
-
JP1/Script-installation-folder\tools
- Arguments
-
- -o output-destination-folder
-
Specify the full output folder path to within 190 bytes. Enclose any spaces in the path with double quotations ("").
Data collection tool execution results are output to the output-destination-folder\jp1script folder.
If the output destination folder is omitted, data collection tool execution results will be output to the %TEMP%\jp1script folder. Check the %TEMP% value by executing echo %TEMP% from the Command Prompt.
- Notes
-
-
Do not run multiple instances of the data collection tool.
-
Run the Command Prompt as administrator to execute the data collection tool.
-
- Return values
-
Return value
Meaning of return value
0
Operation completed successfully.
8
One of the following events occurred:
-
The tool was executed by a user without administrative privileges.
-
The output destination folder could not be created.
-
The user responded with NO to the question prompt asking whether the output-destination-folder\jp1script folder could be deleted.
-
- Example
-
Output collected data to C:\temp\jp1script.
"C:\Program Files (x86)\HITACHI\Script\tools\sptlog.bat" -o C:\temp
(3) Information acquired by the data collection tool
The following table shows the information acquired by the data collection tool.
Information type |
Collected data |
---|---|
hosts file |
system-folder\system32\drivers\etc\hosts |
services file |
system-folder\system32\drivers\etc\services |
OS version |
Execution result of ver |
Windows environment variable |
Execution result of set |
IP configuration data |
Execution result of ipconfig /all Execution result of netstat -a -e -n -s -r Execution result of arp -a |
List of startup services |
Execution result of net start |
Machine system information |
Execution result of msinfo32 /report file-name |
Assignment of user permissions |
Execution result of secedit /export /cfg file-name /areas USER_RIGHTS /quiet |
UAC settings information |
Information under the following registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System |
JP1/Script registry information |
Information under the following registry key: HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Hitachi\JP1/Script |
List of files under the JP1/Script installation folder and data folder#1 |
Execution result of dir JP1/Script-installation-folder /a /s Execution result of dir JP1/Script-data-folder /a /s |
Access permissions under the JP1/Script installation folder and data folder#1 |
Execution result of icacls JP1/Script-installation-folder /T Execution result of icacls JP1/Script-data-folder /T |
Files under the JP1/Script installation folder |
JP1/Script-installation-folder\Conf\* The following files under the JP1/Script-installation-folder:
|
Files under the script execution environment folder |
system-drive\ProgramData\Hitachi\Script\Data\*#2 |
Files under the script log folder |
system-drive\ProgramData\Hitachi\Script\Log\* |
NetExec error log file |
system-drive\ProgramData\Hitachi\Script\Log\STXNetExec_Client\* system-drive\ProgramData\Hitachi\Script\Log\STXNetExec_Server\*#3 |
Maintenance log file |
system-drive\ProgramData\Hitachi\Script\Log\Maintenance\*#4 |
Product information file |
system-drive\Program File (x86)\Hitachi\jp1common\JP1SCRIPT\jp1script.dat |