Hitachi

JP1 Version 13 JP1/Integrated Management 3 - Manager Command, Definition File and API Reference


jpc_service

Organization of this page

Function

This command turns Setup Enable and disable of add-on program of JP1/IM - Agent.

Format

jpc_service {-on | -off} service-key
                    [-h logical-hostname]

Execution permission

In Windows: Administrator permissions (if the Windows UAC feature is enabled, the command is executed from the administrator console)

In Linux: Superuser permissions

Storage directory

In Windows:

Agent-path\tools\

In Linuix:

/opt/jp1ima/tools/

Arguments

-on service-key#

Enable add-on program specified in service-key.

-off service-key#

Disable add-on program specified in service-key.

-h logical-hostname

Specifies logical-hostname when operating on a cluster system.

#

For the value specified in service-key, see 10.1 Service of JP1/IM - Agent in the JP1/Integrated Management 3 - Manager Administration Guide.

Notes

Return values

0

Service Enable activated/deactivated successfully

1

The service is already Enable or disabled.

10

Invalid argument

11

You do not have Execution permissions.

12

Service is running

13

Other commands are executing

251

Invalid service-key

252

Mandatory-services (imagent, imagentproxy, imagentaction) are specified

254

Service definition file not found

255

Failed to activate/deactivate serviced Enable

Log output

Example

jpc_service -on jpc_prometheus