Hitachi

JP1 Version 12 JP1/IT Desktop Management 2 Administration Guide


17.1 Executing commands

To execute JP1/IT Desktop Management 2 commands, you can use either the dedicated command prompt (JP1ITDM2 Utility Console) or the Windows command prompt.

JP1ITDM2 Utility Console is useful when you execute commands on the management server. JP1ITDM2 Utility Console allows you to skip specification of a storage folder for the command execution file when entering a command. By default, when JP1ITDM2 Utility Console starts, the storage folder used by the command is set to the current folder. You can also use the Windows command prompt to execute commands.

Execute commands other than the getinv.vbs command, setsecpolicy.vbs command, and upldoplog command as a user who has administrator permissions. In Windows Server 2019, Windows Server 2016, Windows 10, Windows 8.1, Windows 8, Windows Server 2012, Windows 7, or Windows Server 2008 R2, if User Account Control (UAC) is enabled, right-click and select Run as administrator to open JP1ITDM2 Utility Console or the Windows command prompt. Execute the getinv.vbs command, setsecpolicy.vbs, and upldoplog command command as a user who has full control permissions over the folder in which each command is stored.

To execute commands on an agent, use the Windows command prompt.

To execute commands on the management server:

  1. From the Windows Start menu, select All programs, JP1_IT Desktop Management 2 - Manager, and then Command.

  2. In the window that appears, enter the command that you want to execute.

The command is executed.

To execute commands on an agent:

  1. Open the Windows command prompt.

  2. In the window that appears, enter the command that you want to execute.

The command is executed.

Tip

JP1/IT Desktop Management 2 commands can be run as a scheduled task by registering them as a Windows task.

When backing up, restoring, and reorganizing the database with commands, services on the management server must be stopped. Make sure to check which day of the week or time of the day JP1/IT Desktop Management 2 is not running when you register these commands as a Windows scheduled task.

Note

Do not perform the operations listed below on a management server on which a command is executing. If you perform one of these operations while a command is executing, the command is forcibly terminated. Depending on the timing, the database and important data might be corrupted, the agent control service might be suspended, and the command might output incorrect return values.

If you perform one of these operations while a command is executing, check the messages in the log file. If a message indicating that the command finished successfully does not appear, re-execute the command as necessary. If a message indicating that the agent control service was suspended appears, restart the agent control service.

Note that the above notes do not apply to the following commands: