Hitachi

JP1 Version 12 JP1/Performance Management Reference


jpcconf inst setup

Organization of this page

Format

Format 1

jpcconf inst setup    -key service-key
                     [-lhost logical-host-name]
                      -inst instance-name
                     [-input definition-file-name]
                     [-noquery]

Format 2

jpcconf inst setup    -key service-key
                      -template definition-file-name
                     [-noquery]

Function

The jpcconf inst setup command creates or updates an instance environment for a PFM - Agent or PFM - RM that can start multiple services on a single host. In the case of a PFM - Agent or PFM - RM that can start an instance, execution of this command is required.

Executing this command creates or updates the following directories that contain, among other items, the setup file for the instance environment:

#

xxxx denotes the service key of a PFM - Agent or PFM - RM. For details about the service key, see the naming rules described in the appendix of the JP1/Performance Management Planning and Configuration Guide.

Hosts that can execute the command

Execution permission

In Windows:

User with Administrators permissions

In UNIX:

User with root user permissions

Installation directory

In Windows:
installation-folder\tools\
In UNIX:
/opt/jp1pc/tools/

Arguments

-key service-key

Specifies the service key of the PFM - Agent or PFM - RM service for which you want to create or update the execution environment. A product name can also be specified when the product name display functionality is enabled. Only the service keys of PFM - Agents or PFM - RMs that have instance environments can be specified. For details about the service key of the PFM - Agent or PFM - RM service, see the naming rules described in the appendix of the JP1/Performance Management Planning and Configuration Guide.

-lhost logical-host-name

Specifies the host name of the logical host whose instance environment is to be added.

For logical-host-name, specify a string of 1 to 32 bytes, consisting of alphanumeric characters with no space characters and no periods (.).

For logical-host-name, you cannot specify localhost, an IP address, or a host name beginning with a hyphen (-).

-inst instance-name

Specifies the instance name for which an execution environment is to be created or updated. For instance-name, specify a string of 1 to 32 bytes, consisting of alphanumeric characters.

-noquery

If this option is specified, the command does not output any query messages that interrupt command execution, making it unnecessary for the user to respond.

To execute this command in non-interactive mode, specify this option and the -input option together.

The command behavior changes in various situations, as described below:

  • If the target PFM - Agent or PFM - RM service is active:

    A KAVE05143-E message is output. The command terminates without stopping the service. Stop the service, and then re-execute the command.

  • If an existing instance environment is specified:

    A KAVE05407-I message is output. The command updates the instance environment.

  • If a file with the same name as the file specified for the -template option already exists:

    A KAVE05399-I message is output. The command updates the file.

-input definition-file-name

Specifies the name of a definition file from which the instance environment settings will be loaded. For definition-file-name, specify a string of 1 to 250 bytes. The instance environment will be automatically set up or updated with the settings in the specified definition file.

If the string that you want to specify contains spaces, enclose the entire string in double quotation marks (").

To execute this command in non-interactive mode, specify this option and the -noquery option together.

-template definition-file-name

Specifies a path name of the definition file for which the template file will be generated. For definition-file-name, specify a string of 1 to 245 bytes. In the generated template file, sections and labels will be output according to the setting items for the target PFM - Agent or PFM - RM instance. Note that the values for the labels in the [Instance Definitions] section will be blank.

The generated file can be edited according to the environment requirements, and the edited file can be specified as an input file for the -input option.

If the string that you want to specify contains spaces, enclose the entire string in double quotation marks (").

Format of the definition file (for the jpcconf inst setup command)

The definition file is a text file consisting of sections and labels described below. The label names and values are specified in name=value format.

All the described sections and labels are required. If values are not specified, the command will assume that they are omitted. Invalid section and label names are ignored.

[Common Definitions] section

Specifies the basic information in the definition file.

Definition File Version label

Specifies the version of the definition file. Specify the constant 0001.

[Product Information] section

Specifies the information about the target product (PFM - Agent or PFM - RM).

Product ID label

Specifies the product ID of the target product (PFM - Agent or PFM - RM). For the product ID to be specified, see the Appendix that describes file name extensions in any manual of the relevant PFM - Agent or PFM - RM product.

[Instance Definitions] section

Specifies the settings of the instance environment.

Store Version label

Specifies the Store version of the instance environment. Specify either 1.0 or 2.0.

If the version of the target PFM - Agent product is 07-00 or earlier or if the target product is PFM - RM, you do not need to specify this label. If this label is specified, it is ignored in this case.

Product-specific labels

In addition to the labels described above, you can specify instance setting items that are specific to the target product (PFM - Agent or PFM - RM). For the labels that can be specified, see the chapter on installation and setup in any manual for the relevant PFM - Agent or PFM - RM product. Note that when you specify settings such as the password in interactive mode, you might be prompted to enter the same values again for confirmation. However, you only have to specify these values once in the definition file.

The following shows an example of specifying settings in the definition file.

[Common Definitions]
Definition File Version=0001
 
[Product Information]
Product ID=O
 
[Instance Definitions]
Store Version=2.0
oracle_sid=ORCL
oracle_home=/home/oracle
 ...

Notes

Return values

0

The command terminated normally.

1

An argument specification is invalid.

2

The user does not have execution permission for the command.

4

The specified service has not been stopped.

5

The specified service has not been installed.

6

The definition file contains errors.

10

The command is executing in another session.

11

The user canceled the processing (by entering N at the prompt).

100

The Performance Management environment is invalid.

101

Acquisition of a port number failed.

102

The specified logical host name has not been set up.

200

A memory shortage occurred.

210

A disk space shortage occurred.

211

A file or directory cannot be accessed.

222

A communication error occurred (IP address could not be acquired).

230

Execution of an internal command failed.

231

Registration of Windows service failed (applicable to the Windows versions only).

255

An unexpected error occurred.

Usage example

This example creates an execution environment for the instance named SDC:

jpcconf inst setup -key Oracle -inst SDC

Example of executing the command in non-interactive mode

If the -noquery, -input, and -template options are specified, setup can be performed without any queries output from Performance Management. The following shows usage examples.

Example 1

This example outputs the OracleTemplate01.txt file as the template file for the PFM - Agent for Oracle definition file.

# jpcconf inst setup -key Oracle -template OracleTemplate01.txt

Example 2

This example automatically generates inst01 through inst03 as new PFM - Agent for Oracle instance environments.

This example assumes that the user has prepared definition files OracleInst01.txt, OracleInst02.txt, and OracleInst03.txt by editing the OracleTemplate01.txt template file output in Example 1 according to the individual instance environments.

# jpcconf inst setup -key Oracle -inst inst01 -input OracleInst01.txt -noquery
# jpcconf inst setup -key Oracle -inst inst02 -input OracleInst02.txt -noquery
# jpcconf inst setup -key Oracle -inst inst03 -input OracleInst03.txt -noquery