How to use Command Prompt to execute commands
This section describes how to use Command Prompt to execute some of JP1/IM - Service Support commands.
If you want to use Command Prompt to execute the JP1/IM - Service Support commands, you need to create a batch file beforehand.
- Organization of this page
Format
@set IMSSPATH=IM-SS-path @set IMSSDRIVE=system-drive-in-IM-SS-path @%IMSSDRIVE% @CD %IMSSPATH%\tools command-to-be-executed
Description
@set IMSSPATH=IM-SS-path
Specifies the IM-SS path.
@set IMSSDRIVE=system-drive-in-IM-SS-path
Specifies the system drive in the IM-SS path.
command-to-be-executed
Specifies the JP1/IM - 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 IM-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/IM - 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.
-
When the OS is Windows Server 2012 or Windows Server 2008, use either of the following methods to execute commands.
-
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 2012 or Windows Server 2008 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.
-