How to use Command Prompt to execute commands
This section describes how to use Command Prompt to execute some of JP1/Service Support commands.
If you want to use Command Prompt to execute the JP1/Service Support commands, you need to create a batch file beforehand.
- Organization of this page
Format
@set IMSSPATH=JP1/SS-path @set IMSSDRIVE=system-drive-in-JP1/SS-path @%IMSSDRIVE% @CD %IMSSPATH%\tools command-to-be-executed
Description
@set IMSSPATH=JP1/SS-path
Specifies the JP1/SS path.
@set IMSSDRIVE=system-drive-in-JP1/SS-path
Specifies the system drive in the JP1/SS path.
command-to-be-executed
Specifies the JP1/Service Support command to be executed from a batch file. You can execute the following commands from a batch file:
-
jssdbrorg.bat command (reorganizes the Item management database)
-
jssdbbackup.bat command (makes a backup of data in the Item management database)
-
jssdbreclaim.bat command (releases the free space in the Item management database)
Example
The following example shows how to write a batch file for executing the jssdbbackup.bat command when the JP1/SS path is D:\Hitachi\JP1SS (drive D is the system drive).
@set IMSSPATH=D:\Hitachi\JP1SS @set IMSSDRIVE=D: @%IMSSDRIVE% @CD %IMSSPATH%\tools jssdbbackup -f D:\tmp\DB_Backup.bak -maint
Remarks
-
You can execute only one JP1/Service Support command from a batch file. If you want to batch-execute multiple commands, create a batch file for each command and then create a batch file to call all the created batch files.
-
To execute a command from a batch file, use either of the following methods:
-
When the Windows UAC feature is enabled and your user account has Administrator permissions, but is not the Administrator account itself, re-log in to Windows Server 2016, Windows Server 2012 R2 or Windows Server 2012 as an Administrator and execute the commands.
-
Change the settings to run as an Administrator and then execute the commands.
For details about how to change the settings to always run as an Administrator, see List of commands.
-