Hitachi

JP1 Version 12 JP1/Performance Management Reference


Notes on commands that are executed in PFM - Web Console

This section describes the prerequisites, input format, and output format of the following commands that are executed in PFM - Web Console:

Organization of this page

Prerequisites for command execution

The following prerequisites apply to command execution:

#

For an example of a config.xml file, see Initialization file (config.xml).

Command input method

This subsection explains how to describe a parameter file that is specified in a command.

How to describe a parameter file

The following explains how to describe a parameter file that is specified in a command argument:

The following table lists the DTD files supported by the commands:

Table 3‒3: DTD files supported by commands

Command name

DTD file name

jpcrdef create

rdef_create_params.dtd

rdef_params.dtd

jpcrdef delete

rdef_create_params.dtd

rdef_delete_params.dtd

rdef_output_params.dtd

rdef_params.dtd

jpcrdef output

rdef_create_params.dtd

rdef_output_params.dtd

rdef_params.dtd

jpcasrec update

asrec_params.dtd

jpcasrec output

asrec_params.dtd

jpcaspsv update

aspsv_params.dtd

jpcaspsv output

aspsv_params.dtd

jpcrpt

rpt_params.dtd

jpcprocdef create

processmonitoring_params.dtd

jpcprocdef output

processmonitoring_params.dtd

The following table describes pr-cli-parameters:

Table 3‒4: Description of pr-cli-parameters

Type

Description

Description

Root tag for PFM - Web Console command input

Specifiable value

None

Omissible

No

Attribute

ver

DTD file version. If the value is outside the supported range, a parameter file error results. If the specification is omitted, an error results. For details about the supported range, see each DTD file.

Parent element

None

Child element

report-definitions

Root tag for report definition

agent-store-db-record-definition

Root tag for Store database recording method change definition information

agent-store-db-preserve-definition

Root tag for the Store database storage condition change definition information

launch-report

Root tag for the report output definition information

launch-registration-report

Root tag for the registered report output definition information

launch-combination-bookmark

Root tag for the combination bookmark output definition information

application-definition

Root tag for the application definition information

An example of the coding for a parameter file is shown below. Specify the report definition in the portion that is between the sections shown in bold type.

Coding example of parameter file

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pr-cli-parameters SYSTEM "rdef_params.dtd">
<pr-cli-parameters ver="0110">
<report-definitions>
<report-definition> ....report-definition....</report-definition>
<report-definition> ....report-definition....</report-definition>
</report-definitions>
</pr-cli-parameters >

Command output method

Detailed information about a command's processing is output to the standard output, standard error output, and trace log file. The following table describes the output destinations for this detailed information:

Table 3‒5: Output of detailed information

Item

Output destination

Execution results

Standard output

Messages

Standard error output

Trace log

command-name_processing-type_log#.log (where # is the log file number [from 1 to the number of generated log files]) is output under the log output directory specified in the initialization file. For example, the log name is jpcrdef_create_log1.log for the report creation command.

For the jpcrpt command, command-name_process-ID_log#.log (where # is the log file number [from 1 to the number of generated log files]) is output under the log output directory specified in the initialization file. When the process ID is 100, the log name is jpcrpt_100_log1.log.

Each time the command is executed, the total size of the log files is calculated. When the upper limit is exceeded, the file with the oldest update date is deleted. Note, however, that only those files updated previous to the number of days specified for logFileRetention in the initialization file after the command is started are deleted. The upper limit for size is determined by multiplying logFileSize by logFileNumber in config.xml.

For the jpcmkkey command, jpcmkkey_log#.log (where # is the log file number [from 1 to the number of generated log files]) is output under the log output directory specified in the initialization file.

Example of standard output

The command name, host name/IP address of PFM - Manager for the connection destination, PFM - Manager connection time, and PFM - Manager disconnection time are added as title and end rows common to all commands.

The example shown below shows the standard output when three reports are defined with the jpcrdef create command, two reports definitions are created, and one report definition result in an error.

Example of execution results output

jpcrdef create connected to hostname at yyyy MM dd HH:MM:SS.mmm
create result OK  : report-definition-directory-path-1/report-definition-name-1
create result OK  : report-definition-directory-path-2/report-definition-name-2
create result ERR : report-definition-directory-path-3/report-definition-name-3
cause-of-error
jpcrdef create disconnected at yyyy MM dd HH:MM:SS.mmm
Legend:
yyyy MM dd

Year, month, and day.

The display format changes according to the locale. For details, see the chapter on installation and setup in the JP1/Performance Management Planning and Configuration Guide.

HH:MM:SS.mmm

Hour, minute, second, and millisecond.

report-definition-directory-path-1 through report-definition-directory-path-3

Names of the directories containing the report definitions set in the parent-folder attribute of the report-definition parameter.

report-definition-name-1 through report-definition-name-3

Names of the report definitions set in the name attribute of the report-definition parameter.

For details about the log specifications, see Chapter 6. Log Information Output by Performance Management.

Help reference option

Specifying the -h option in a command displays a Help for the command. For example, to view the Help for the jpcrdef command, enter the following:

jpcrdef   -h

The following shows the Help that is provided for the jpcrdef command:

Usage: jpcrdef <subcmd> [ <option>... ] {<parameter file>|<parameter option>... }
    <subcmd> Mandatory. Specify one of subcommands listed below:
        create          Creates report definition(s)
        delete          Deletes report definition(s)
        output          Outputs report definition(s)
    <option> Specify optionals after each extension listed below.
        -o <outputfile> Output file is required only if <subcmd>
                        is 'output'
        -mx             Specify maximum heap size from 1 to
                        2048 MB
                        Example: -mx 128. Default for both is 128MB.
        -ms             Specify minimum heap size from 1 to
                        2048 MB
                        Example: -ms 32. Default for both is 32MB.
        -y              Only used 'delete' <subcmd>. Assume a
                        yes response to
                        all questions asked by jpcrdef.
        -dateformat <pattern>
                        Specifiable when <subcmd> is 'create' or
                        'output'.
                        The specified <pattern> entry determines
                        the date format
                        for I/O in the <expression> tag.
                        Specifiable <pattern> entries are
                        'pattern-ddMMyyyy', 'pattern-MMddyyyy',
                        or 'pattern-yyyyMMdd'.
        -dateseparator <pattern>
                        Specifiable when <subcmd> is 'create' or
                        'output'.
                        The specified <pattern> entry determines
                        the date separator
                        for I/O in the <expression> tag.
                        Specifiable <pattern> entries are
                        'space', 'slash', 'hyphen', or 'period'.
    <parameter file>
                        If <subcmd> is "create", "delete", or
                        "output", specify a parameter file name.
                        This is required when <subcmd> is
                        "create", or "delete".
    <parameter option>
                        This can be specified when <subcmd> is
                        "output".
        -parent <parent directory>
                        Specify the directory path of the report
                        definition you want to output.
                        This is required when <parameter option>
                        is specified.
        -name <report name>
                        Specify the report definition name you
                        want to output.
                        If this is omitted, all report
                        definitions in the report definition
                        directory specified for the
                        parent-folder attribute, including
                        those in lower-level directories, are
                        output to a single file.

If a command's first argument is the -h option, the system ignores the remainder of the specification and displays the command's Help. A command's Help is also displayed when the command line includes an invalid specification.

Concurrent command execution

The following commands (that is, commands other than the jpcrpt command) cannot be executed at the same time as another instance of the same command or as other commands:

Performance Management user permissions required for command execution

To use the GUI to change report definitions and collection items, you must first log into PFM - Manager (authenticated). This authentication is also required to execute commands. This authentication is also required to execute commands. Authentication determines whether the user has permissions to execute commands in the Performance Management system.

For command authentication, you must have created an authentication key file in advance and the key file is read during command execution; you do not enter a user name or password during command execution. You use the jpcmkkey command to create the key file. One key file is created for each host. Command execution from the host is permitted on the basis of the user names/passwords set in the key file. One key file is used by all commands executed from the host.

The following table shows the Performance Management user permissions required for command execution:

Table 3‒6: Performance Management user permissions required for command execution

Command

Required Performance Management user permissions#

jpcrdef create

General user permission or administrator user permission

jpcrdef delete

General user permission or administrator user permission

jpcrdef output

General user permission or administrator user permission

jpcasrec update

Administrator user permission

jpcasrec output

Administrator user permission

jpcaspsv update

Administrator user permission

jpcaspsv output

Administrator user permission

jpcrpt

General user permission or administrator user permission

jpcmkkey

None

jpcprocdef create

Administrator user permission

jpcprocdef delete

Administrator user permission

jpcprocdef list

Administrator user permission

jpcprocdef output

Administrator user permission

#

Execution permissions for Performance Management that are required for a Performance Management user or JP1 user.