Hitachi

Job Management Partner 1 Version 10 Job Management Partner 1/Automatic Operation GUI, Command, and API Reference


8.6.3 hcmdssrv (starting and stopping JP1/AO, and displaying the status of JP1/AO)

Description

This command starts and stops the services and databases of JP1/AO. This command can also display the status of the JP1/AO services or change how to start the services.

Note that if you execute this command by specifying AutomationWebService for the /server option, you can start, stop, or display the status of, the services listed in the table below. Note that this command can also be used to start JP1/Base services JP1/Base and JP1/Base Event.

Table 8‒5: List of services that can be targets of this command

Service display name and process

Starting

Stopping

Displaying status

HAutomation Engine Web Service

Y

Y

Y

HBase Storage Mgmt Common Service

Y

Y #1

Y

HBase Storage Mgmt Web Service

Y

Y #1

Y

HBase Storage Mgmt Web SSO Service

Y

Y #1

Y

HAutomation Engine

Y

Y

N

HAutomation Engine Database _JF0

Y

Y

N

JP1/Base

Y

N

N

JP1/Base Event

Y

N

N

Database process#2

Y

Y #1

Y

Legend:

Y: The command works. N: The command does not work.

#1:

The service does not stop while a service from the Hitachi Command Suite products is running.

#2:

These are the JP1/AO internal processes. The hcmdssrv command does not start and stop HiRDB/EmbeddedEdition _HD0 that represents the database service.

Syntax

hcmdssrv
     {/start | /stop | /check| /status}
     [/server service-name]
To see the status of services from JP1/AO and all the Hitachi Command Suite products:
hcmdssrv
     /statusall
To change how to start a service or services:
hcmdssrv
     /starttype {auto | manual}
     {/server service-name | /all}

Arguments

/start

This option causes the command to start the service and database specified in the /server option.

/stop

This option causes the command to stop the service and database specified in the /server option.

/check

This option causes the command to display the status of the service and database specified in the /server option.

/status

This option causes the command to display the status of the service and database specified in the /server option.

/server service-name

If you want to start and stop only the service, or display its status, of the JP1/AO product, specify AutomationWebService for service-name. If this option is omitted, the command has an effect on the services from JP1/AO and all Hitachi Command Suite products that are installed.

/statusall

This option causes the command to display the status of the services and databases, and of the services from the Hitachi Command Suite products that are registered with Common Component.

/starttype {auto | manual}

This option specifies the start type of the service specified in the /server option.

To start the service automatically, use auto. To start the service manually, use manual.

/all

If this option is specified, the command has an effect on the services from JP1/AO and all Hitachi Command Suite products that are installed.

Located in

Common-Component-installation-folder\bin

Execute permission

Execute the command as a user with Administrator permissions.

Remarks

Return code

The following table lists the return codes from the command with the /start or /stop option.

Return code

Description

0

The command succeeded.

1

The service has already started (with the /start option).

The service has already stopped (with the /stop option).

255

The command execution failed.

The following table lists the return codes from the command with the /check, /status, or /statusall option.

Return code

Description

0

The service is not running.

1

The service is running.

255

The command execution failed.

The following table lists the return codes from the command with the /starttype option.

Return code

Description

0

The command succeeded.

255

The command execution failed.

Example

The following commands show examples of how to use the command for each case.

Related topic