Hitachi

Job Management Partner 1 Version 10 Job Management Partner 1/Performance Management Reference


jpcconf port define

Organization of this page

Format

Format 1

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

Format 2

jpcconf port define    -key service-key
                      [-lhost logical-host-name]
                      [-inst instance-name]
                       -template definition-file-name
                      [-noquery]

Function

The jpcconf port define command sets the port numbers that are used with Performance Management.

Because port numbers are assigned automatically to the programs and services of the Performance Management products each time the services are restarted, the current port numbers may not be the same as the ones assigned in the previous session, except for the port numbers listed below, which are always used when port numbers are set automatically:

Service name#

Parameter

Port number

Usage

Name Server

jp1pcnsvr

22285

Used when each service communicates with the Name Server service.

OpenView (between NNM and NNM Object Manager)

jp1pcovsvr

22292

Used to link to NNM.

Status Server

jp1pcstatsvr

22350

Used to check the service status.

View (between PFM - Web Console and View Server)

jp1pcvsvr

22286

Used to log into PFM - Manager or operate PFM - Manager via PFM - Web Console.

#: The command sometimes displays names that are different from the actual service names. For these services, the displayed names are indicated in the above table.

You use this command to indicate that you will set different port numbers from the ones listed above.

A specifiable port number is any integer in the range from 1024 to 65535 that is not in use as a port number in the system. If you do not specify a port number, the system uses the port number assigned by Performance Management. If you press the return key without specifying a port number, the system uses the displayed port number.

You should use the port number assigned by Performance Management unless that port number is already in use in the system. For details about the port numbers assigned by Performance Management, see C. Port Numbers.

Each number that is specified must be unique on the same device.

If a service of a Performance Management series program exists on both the logical host and the physical host of the same device, a unique port number must be assigned to the service on each host.

To indicate that you are not specifying a port number (so that the port number will be assigned automatically each time the service is restarted), enter the value 0. For the following services, the following port numbers are set:

Service name#

Parameter

Port number

Name Server

jp1pcnsvr

22285

OpenView (between NNM and NNM Object Manager)

jp1pcovsvr

22292

Status Server

jp1pcstatsvr

22350

View (between PFM - Web Console and View Server)

jp1pcvsvr

22286

#: The command sometimes displays names that are different from the actual service names. For these services, the displayed names are indicated in the above table.

To penetrate a firewall between PFM - Manager and PFM - Web Console, PFM - Manager and PFM - Agent, or between PFM - Manager and PFM - RM, you must set the port number to a fixed value. For details about the settings for penetrating these firewalls, see C. Port Numbers.

Hosts that can execute the command

Execution permission

In Windows:

User with Administrators permissions (executed from the administrator console when Windows UAC functionality is enabled)

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 service whose port numbers are to be the subject of this execution of the command. You can also specify the following in service-key:

  • all: Specifies the port numbers of all programs of the Performance Management products.

  • Manager or mgr: Specifies the port numbers that are used with the PFM - Manager services (excluding the Status Server and Action Handler services), the NNM Object Manager service, and between PFM - Web Console and the View Server service.

  • Product name or agtX: Specifies the port numbers that are used with the specified PFM - Agent or PFM - RM service, and the Name Server service.

  • AH or act: Specifies the port numbers that are used with the Action Handler service and the Name Server service.

  • View or view: Specifies the port numbers that are used between the PFM - Web Console and View Server services.

  • StatSvr or stat: Specifies the port numbers that are used with the Status Server service and the Name Server service.

Product name or agtX indicates the service key for the particular PFM - Agent or PFM - RM. For details about the service key of the PFM - Agent or PFM - RM service, see the naming rules described in the appendix of the Job Management Partner 1/Performance Management Planning and Configuration Guide.

-lhost logical-host-name

When the command targets a logical environment, specify the host name of a logical host.

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 of the instance whose port numbers are to be the subject of this execution of the command. For instance-name, specify a string of 1 to 32 bytes, consisting of alphanumeric characters. This option is applicable only to a PFM - Agent or PFM - RM that has an instance environment.

-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 there are Performance Management services that are running:

    The command execution is interrupted with a KAVE05143-E message. Stop the services, and then re-execute the command.

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

    A KAVE05399-I message is output and the file is updated.

-input definition-file-name

Specifies the path name of the definition file from which port numbers will be loaded. For definition-file-name, specify a string of 1 to 250 bytes. The port numbers set in the specified file will be set.

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 the path name of the definition file to which port numbers that are set will be output. For definition-file-name, specify a string of 1 to 245 bytes. The labels of all services indicated by the specified service key will be output to the definition file. Note that in [component-name] sections, the port numbers that are set or 0 will be output as the label values.

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 port define 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. Invalid section and label names are ignored.

[Common Definitions] section

Specifies the basic information in the definition file. This section and all labels in this section are required.

Definition File Version label

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

[component-name] section

Use this section to specify the port numbers that you want to set.

For component-name, specify the name of a component that contains the services for which you want to set port numbers. You can specify multiple [component-name] sections (with different component-name values).

If you specify multiple [component-name] sections with the same component-name value, only the section specified first takes effect.

The values that can be specified for component-name are as follows:

  • Common

    Specify Common when you want to set the port numbers that will be used by the Name Server, Status Server, Action Handler, and NNM Object Manager services.

  • Manager

    Specify Manager when you want to set the port numbers that will be used by PFM - Manager services.

  • PFM - Agent or PFM - RM product name

    Specify the name of a PFM - Agent or PFM - RM product when you want to set the port number that will be used by a PFM - Agent or PFM - RM product. For product names that can be specified, see the chapter on the Performance Management functionality in the Job Management Partner 1/Performance Management Planning and Configuration Guide.

Subsection with an instance name

To specify port numbers that will be used in a PFM - Agent or PFM - RM instance environment, specify them in this subsection. You can specify this subsection only if the specified component is a PFM - Agent or PFM - RM that has multiple instances.

If you specify multiple subsections with the same name in a [component-name] section, the subsection specified first takes effect.

Label with a service name

Specify a label with the name of a service for which you want to set a port number.

If you specify multiple labels with the same name in a section or subsection, the label specified first takes effect.

  • If you want a port number to be dynamically assigned each time the service is restarted, specify 0 as the value.

    However, for the Name Server, OpenView (between NNM and NNM Object Manager), Status Server, and View (between PFM - Web Console and View Server) services, fixed port numbers will be assigned even if you specify 0.

  • To use the default port numbers that are assigned by Performance Management, specify auto as the values. However, if the default port numbers are already in use, available port numbers will be assigned automatically.

    Note that there are services for which you must not specify auto and must specify fixed port numbers. These services are listed in the following table.

    Service name#

    Port number

    Name Server

    22285

    OpenView (between NNM and NNM Object Manager)

    22292

    Status Server

    22350

    View (between PFM - Web Console and View Server)

    22286

    #: The command sometimes displays names that are different from the actual service names. For these services, the displayed names are indicated in the above table.

  • When you specify port numbers, select port numbers that are in the range from 1024 through 65535 and are not currently used within the system.

  • If you do not change port numbers, specify nothing for these values.

If you specify a value that is outside the range from 1024 through 65535 or specify a value that includes non-numeric characters (except auto), the processing for the relevant services will be skipped.

The following table lists and describes component names, service names, and values that can be specified for [component-name] sections and service-name labels.

Component name

Service name

Value

Common

Name Server

Name Server port number

Status Server

Status Server port number

Action Handler

Action Handler port number

OpenView

NNM Object Manager port number (for linkage with NNM)

Manager

Master Manager

Master Manager port number

Master Store

Master Store port number

Correlator

Correlator port number

Trap Generator

Trap Generator port number

View Server

View Server port number

View

View Server port number (between PFM - Web Console and View Server services)

PFM - Agent or PFM - RM product name

Collector

Port number to be used by PFM - Agent Collector or Remote Monitor Collector

Store

Port number to be used by Agent Store or Remote Monitor Store

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

[Common Definitions]
Definition File Version=0001
 
[Common]
Name Server=22285
Status Server=22350
Open View=22292
[Manager]
Master Manager=auto
Master Store=auto
Correlator=auto
 ...
[Windows]
Collector=0
Store=0
 ...
[Oracle]
[[oracle1]]
Collector=0
Store=0

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 key was not found.

6

The definition file contains errors.

7

The specified service key was not found at the logical host.

10

The command is executing.

11

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

13

Setting was skipped for one or more services because values could not be set as specified in the definition file.

100

The Performance Management environment is invalid.

101

Acquisition of a port number failed.

102

The specified instance was not found.

106

Port number has not been registered in the services file.

200

A memory shortage occurred.

210

A disk space shortage occurred.

211

File cannot be accessed.

222

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

224

There is no available port number to set in the services file.

230

Execution of an internal command failed.

255

An unexpected error occurred.

Usage example

This example specifies that the port numbers for all services of Performance Management programs will be set to fixed values:

jpcconf port define -key all

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 generates the files AgentPort01.txt and AgentPort02.txt. The AgentPort01.txt file is the template file for the file that defines the port numbers that must be set in PFM - Agent for Platform (Windows). The AgentPort02.txt file is the template file for the file that defines the port numbers that must be set in PFM - Agent for Oracle.

# jpcconf port define -key Windows -template AgentPort01.txt
# jpcconf port define -key Oracle -template AgentPort02.txt

Example 2

This example sets port numbers that are used in PFM - Agent for Platform (Windows) and PFM - Agent for Oracle.

This example assumes that the user has prepared the definition files AgentPort01.txt and AgentPort02.txt by editing the template files generated in Example 1.

# jpcconf port define -key Windows -input AgentPort01.txt -noquery
# jpcconf port define -key Oracle -input AgentPort02.txt -noquery