Hitachi

JP1 Version 12 JP1/Performance Management Reference


jpcras

Organization of this page

Format

jpcras     directory-name
           service-key
          [all|data|dump]
          [lhost=logical-host-name]
          [inst=instance-name]

Function

The jpcras command collects information about PFM - Manager, PFM - Agent, PFM - RM, or PFM - Base, as well as OS information. You use this command when a problem occurs in PFM - Manager, PFM - Agent, PFM - RM, or PFM - Base.

This command collects information about the host where this command executes or maintenance information for the logical host specified in the lhost option. The collected information is stored in a specified directory. In UNIX, the collected information is compressed by a combination of the tar and compress commands or a combination of the tar and gzip commands. In Windows, however, the collected information is stored in uncompressed format. If you want the collected information to be stored in compressed format, compress the information manually.

When a problem occurs, there is other information that is needed, in addition to the information that can be collected by this command. For details on the information to be collected when a problem occurs, see the chapter on troubleshooting in the JP1/Performance Management User's Guide.

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

directory-name

Specifies the name of the directory in which the collected information is to be stored. For directory-name, specify a string of 1 to 127 bytes, consisting of alphanumeric characters and symbols. A relative path cannot be used. The absolute path must be used. Note that the following symbols cannot be specified:

; , * ? ' " < > | & ^ `

If the directory name contains a space, enclose the entire name in double quotation marks ("). If you specify any of the following symbols, enclose it in double quotation marks (") in order to prevent it from being analyzed by the shell or the command prompt:

( )

Do not specify the Performance Management installation directory in directory-name.

A directory name for a removable medium, such as a floppy disk, cannot be specified in this option.

For this option, you cannot specify the directory name of a removable medium such as a floppy disk.

In UNIX, the collected information is saved as a file named jpcrasYYMMDD#.tar.Z (when compressed by the compress command) or jpcrasYYMMDD#.tar.gz (when compressed by the gzip command) in the specified directory.

In Windows, a file for the collected information is copied uncompressed to the folder specified by this option.

#

YYMMDD indicates the file creation date:

  • YY

    Last two digits of the year.

  • MM

    Month, in the range 01 to 12.

  • DD

    Date, in the range 01 to 31.

service-key

Specifies the service key of the service for which information is to be collected. Note that you cannot specify a product name even if the product name display functionality is enabled. You can also specify the following in service-key:

  • all: Specifies all services of Performance Management programs.

  • mgr: Specifies the PFM - Manager services (excluding the Action Handler and Status Server services).

  • act: Specifies the Action Handler service.

  • service-key-of-PFM - Agent or PFM - RM service: Collects information for each PFM - Agent or PFM - RM service (including the Action Handler service)

  • stat: Specifies the Status Server service.

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.

[all|data|dump]

Specifies the information that is to be collected. Different information is collected for each of these specifications; normally, all is specified.

The following tables show for both OSs the information that is collected depending on the specification of this option.

Table 3‒28: Information collected by the jpcras command (in Windows)

Information collected

Option

all

data

dump

Omitted

System log

Y

N

N

Y

Common message log

Y

N

N

Y

Service configuration information

Y

N

N

Y

Process information

Y

N

N

Y

Version information

Y

N

N

Y

System file

Y

N

N

Y

Database information

Y

Y

N

Y#1

OS information

System information

Y

N

N

Y

Network status

Y

N

N

Y

Host name

Y

N

N

Y

Firewall information

Y

N

N

Y

Dump information

Y#2

N

Y#2

N

Docker environment information

Y

N

N

Y

Legend:

Y: Information is collected.

N: Information is not collected.

#

View Server, Agent Store, and Remote Monitor Store service database information is not collected when specification of the option is omitted. In this case, collected is the database information for the Master Store, Master Manager, and Name Server services.

Table 3‒29: Information collected by the jpcras command (in UNIX)

Information collected

Option

all

data

dump

Omitted

System log

Y

N

N

Y

Common message log

Y

N

N

Y

Service configuration information

Y

N

N

Y

Process information

Y

N

N

Y

Version information

Y

N

N

Y

System file

Y

N

N

Y

Database information

Y

Y

N

Y#1

OS information

System information

Y

N

N

Y

Patch information

Y

N

N

Y

Kernel information

Y

N

N

Y

Version information

Y

N

N

Y

Network status

Y

N

N

Y

Environment variable

Y

N

N

Y

Host name

Y

N

N

Y

Firewall information (Linux)

Y

N

N

Y

Dump information

Y#2

N

Y#2

N

Docker environment information

Y

N

N

Y

Legend:

Y: Information is collected.

N: Information is not collected.

#1

View Server, Agent Store, and Remote Monitor Store service database information is not collected when specification of the option is omitted. In this case, collected is the database information for the Master Store, Master Manager, and Name Server services.

#2

Dump information is not collected if systemd-coredump is enabled in Linux.

See the chapter explaining Error Handling Procedures in the JP1/Performance Management User's Guide.

For details about the information that can be collected, see the chapter on troubleshooting in the JP1/Performance Management User's Guide.

lhost=logical-host-name

Specifies the host environment in which the command is to be executed. You use this argument when a logical host has been configured on the machine that is used to execute the command. For logical-host-name, specify a string of 1 to 32 bytes, consisting of alphanumeric characters with no space characters.

If this argument is omitted, maintenance information for all host environments is collected. Wildcard characters cannot be used.

inst=instance-name

Specifies an instance name in order to collect information about that instance. This option is applicable only when a PFM - Agent or PFM - RM with an instance environment is specified in service-key. For instance-name, specify a string of 1 to 32 bytes, consisting of alphanumeric characters.

If this option is omitted, information is collected for all instances.

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.

100

The Performance Management environment is invalid.

102

The specified logical host name or instance has not been set up.

210

A disk space shortage occurred.

211

Collection target directory cannot be accessed.

255

An unexpected error occurred.

Usage example 1

This example collects all information in a UNIX host and stores the collected information in the /tmp/jp1pc directory:

jpcras /tmp/jp1pc all all

Usage example 2

This example collects dump information for PFM - Agent for Platform (UNIX) in a UNIX host and stores the collected information in the /tmp/jp1pc directory:

jpcras /tmp/jp1pc agtu dump