cprflevel (display or change the PRF trace collection level)
- Organization of this page
Format
cprflevel [-PRFID prf-identifier] [-h] [-PrfChangeLevel prf-trace-collection-level[,[prf-trace collection-level]...]] [-PrfLevelIndex index-number] [-PrfLevelAll]
Function
This command displays or changes the PRF trace collection level.
When the -PrfChangeLevel option is omitted, the PRF trace collection level set for the specified PRF identifier is displayed. When the -PrfChangeLevel option is specified, the PRF trace collection level set for the specified PRF identifier is changed to the value specified here.
When the -PrfLevelIndex option is specified, a list of PRF trace collection levels for the specified index is displayed. When the -PrfLevelAll option is specified, the PRF trace collection levels for all indexes are displayed.
Arguments
- -PRFID prf-identifier
-
Specify the PRF identifier by using a character string that is 1 to 31 characters long. You can specify alphanumeric characters and underscores (_). Do not specify a character string that begins with TSC or tsc or with CTM or ctm. If this argument is omitted, the character string PRF_ID is assumed.
- -h
-
Displays the command's usage.
- -PrfChangeLevel prf-trace-collection-level[,[prf-trace-collection-level]...]
-
Specifies PRF trace collection levels, each as a 4-byte hexadecimal number (8-digit value). Here, you can add 0x at the beginning of the 4 byte hexadecimal number; however, 0x is ignored. You can specify multiple trace collection level values, corresponding to the index numbers (left to right), delimited by a comma (,). If the level value for an index is not to be changed, do not specify any value. To omit specification of level values for all index numbers beginning after a specific index number, omit all the subsequent comma delimiters. To set the PRF trace collection level for index No. 1 to (1) and the PRF trace collection level for index No. 2 to (2), specify the arguments as (1),(2),....
The table below shows examples of PRF trace collection level specifications.
Table 4‒3: PRF trace collection level specification examples (cprflevel command) PRF trace collection level specification example
Option specification
Specify a PRF trace collection level for index No. 1
-PrfChangeLevel 0x44445555
Specify PRF trace collection levels for index Nos. 1 and 2
-PrfChangeLevel 0x44445555,0x55554444
Specify a PRF trace collection level for index No. 2
-PrfChangeLevel,0x55554444
Assignment of PRF trace collection levels at each functionality layer is explained here.
A PRF trace collection level is specified as an eight-digit hexadecimal number for each index. Each digit is allocated two functionality layers. When a hexadecimal number is expressed as a decimal number, the functionality layer allocated to the upper 2 bits is called the upper layer, and the functionality layer allocated to the lower 2 bits is called the lower layer.
The table below shows the functionality layers that are allocated to the upper and lower layers for each digit.
Table 4‒4: Specification values for collecting detail-level trace information (cprflevel command) Index
Digits
Upper layer
Lower layer
Index 1
Digit 1
Redirector
Web container
Digit 2
EJB container
JNDI
Digit 3
JTA
JCA container
Digit 4
DB Connector
RMI
Digit 5
SOAP Communication Infrastructure
uCosminexus TP1 Connector,
TP1/Client/J
Digit 6
TP1/Message Queue - Access
Cosminexus RM
Digit 7
OTS
(None)
Digit 8
CTM
(None)
Index 2
Digit 1
HCSC server
Standard output, standard error output, and user log
Digit 2
DI
uCosminexus Service Coordinator Interactive Workflow
Digit 3
HCSC server (Object Access Adapter)
HCSC server (File Adapter)
Digit 4
HCSC server (Message Queue Adapter)
Cosminexus JPA
Digit 5
JAX-WS engine
JPA container
Digit 6
Cosminexus JMS Provider functionality
TP1 inbound adapter
Digit 7
HCSC server (FTP Adapter)
JavaMail
Digit 8
Java VM
JSF and JSTL
Index 3
Digit 1
Batch Application Execution Base
(None)
Index 4
Digit 1
CDI
(None)
Digit 3
(None)
Websocket
Index 5
Digit 1
JSF 2.2
(None)
Digit 2
JAX-RS 2.0
JavaBatch 1.0
Digit 3
Concurrency Utilities 1.0
(None)
Index 9
Digit 1
Elastic Application Data store
(None)
To specify a PRF trace collection level, decide whether to specify Standard, Detail, or Maintenance for the PRF trace collection level of the upper and lower layers for each digit, and specify it as a hexadecimal number. The table below shows the correspondence between combinations of PRF trace collection levels for the upper and lower layers with specification values.
Note that because the Maintenance level is used for collecting maintenance information when an error occurs, it should not be specified during normal operation.
Table 4‒5: Specification values for collecting detail-level or maintenance-level trace information (cprflevel command) Upper layer
Lower layer
Specification value
Standard
Standard
0
Standard
Detail
1
Standard
Maintenance
2
Detail
Standard
4
Detail
Detail
5
Detail
Maintenance
6
Maintenance
Standard
8
Maintenance
Detail
9
Maintenance
Maintenance
a
Specification examples are shown below.
Table 4‒6: PRF trace collection level specification examples (cprflevel command) Index
Specification example
Explanation
Index 1
00000000
Acquires Standard-level trace information from each functionality layer of index 1.
00000004
Acquires Detail-level trace information only from CTM, and acquires Standard-level trace information from other functionality layers.
55555544
Acquires Detail-level trace information from each functionality layer of index 1.
a5565544
Acquires maintenance information from the redirector, Web container, and RMI, and acquires Detail-level trace information from other functionality layers.
Index 2
00000000
Acquires Standard-level trace information from each functionality layer of index 2.
40000000
Acquires Detail-level trace information only from HCSC server.
You can specify the control-level for RMI.
Specify the following values as the specification value (fourth digit of index one) of trace collection level to specify the control-level for RMI.
Table 4‒7: Specification value of the RMI control-level Upper layer
(DB Connector)
Lower layer
(RMI)
Specification value
Standard
Control
3
Detail
Control
7
Maintenance
Control
b
- -PrfLevelIndex index-number
-
Specifies the index number of the PRF trace collection level to be changed or referenced, as an integer in the range 1 to 16. The default value is 1. When this argument is specified together with -PrfChangeLevel, the PRF trace collection level for the specified index number is changed to the value specified in -PrfChangeLevel.
When this argument is specified but -PrfChangeLevel is not specified, the PRF trace collection level for the specified index number is displayed. When you specify this argument together with -PrfChangeLevel, be sure to specify only a single value in -PrfChangeLevel.
Example: Change the value for the second index number to 0x55554444
cprflevel -PrfChangeLevel 0x55554444 -PrfLevelIndex 2
If multiple values are specified in -PrfChangeLevel, an option error occurs.
Example: Specify multiple values in -PrfChangeLevel
cprflevel -PrfChangeLevel,0x55554444,0x55554444 -PrfLevelIndex 2
This is because multiple values are specified in -PrfChangeLevel even though 2 is specified in -PrfLevelIndex. If the specification of -PrfLevelIndex is omitted, 1 is assumed.
- -PrfLevelAll
-
Displays all level values. This option cannot be specified together with -PrfChangeLevel or -PrfLevelIndex. The table below shows the combinations of this option and -PrfLevelIndex.
Table 4‒8: -PrfLevelAll and -PrfLevelIndex combinations cprflevel current level value display method
-PrfLevelIndex
Specified
Not specified
-PrfLevelAll
Specified
Option error
Displays all level values
Not specified
Displays the level value of only the specified index
Displays the level value of index 1 only
The table below shows the command option combinations that can be specified.
Command option |
-h |
-PRFID |
-PrfChange Level |
-PrfLevel Index |
-PrfLevel All |
---|---|---|---|---|---|
-h |
-- |
Δ-h |
Δ-h |
Δ-h |
Δ-h |
-PRFID |
Δ-h |
-- |
Y |
Y |
Y |
-PrfChangeLevel |
Δ-h |
Y |
-- |
Y |
N |
-PrfLevelIndex |
Δ-h |
Y |
Y |
-- |
N |
-PrfLevelAll |
Δ-h |
Y |
N |
N |
-- |
Return values
- 0:
-
The command terminated normally.
- 1:
-
The PRF daemon is not active. Either the PRFSPOOL environment variable is different from the one assumed for the PRF daemon or the value of -PRFID is invalid.
- 2:
-
The PRFSPOOL environment variable has not been set up.
- Other than the above:
-
An error occurred during command processing. Take the corrective action indicated in the output message, and then re-execute the command. The error message is output to the standard error output and a log file. For acquiring data, see 2.4.3 Correspondence Between Acquisition Methods and Investigation Methods in the uCosminexus Application Server Maintenance and Migration Guide.
Input/output examples
-
Input example 1
cprflevel
-
Output example 1
KFCT73415-I 2661 1: prf trace level is 0x12345678
-
Input example 2
cprflevel -PrfLevelAll
-
Output example 2
KFCT73418-I 2661 1: all prf trace levels are: [ 1]=0x12345678 [ 2]=0x00000000 [ 3]=0x00000000 [ 4]=0x00000000 [ 5]=0x00000000 [ 6]=0x00000000 [ 7]=0x00000000 [ 8]=0x00000000 [ 9]=0x00000000 [10]=0x00000000 [11]=0x00000000 [12]=0x00000000 [13]=0x00000000 [14]=0x00000000 [15]=0x00000000 [16]=0x00000000
-
Input example 3
cprflevel -PrfLevelIndex 5
-
Output example 3
KFCT73419-I 2661 1: prf trace level of [5] is 0x00000000.
-
Input example 4
cprflevel -PrfChangeLevel 000000001
-
Output example 4
KFCT73416-I 2661 1: prf trace level was changed from 0x00000000 to 0x00000001.
-
Input example 5
cprflevel -PrfChangeLevel 0x00000055,0x55554444
-
Output example 5
KFCT73420-I 2661 1: prf trace level was changed: [ 1]=0x00000000 -> [ 1]=0x00000055 [ 2]=0x00000000 -> [ 2]=0x55554444
-
Input example 6
cprflevel -PrfChangeLevel 0x44445555 -PrfLevelIndex 2
-
Output example 6
KFCT73420-I 2661 1: prf trace level was changed: [ 2]=0x00000000 -> [ 2]=0x44445555
Notes
-
When the current PRF trace collection level is to be displayed, the message that is output is KFCT73415-I, KFCT73418-I, or KFCT73419-I depending on the combination of the -PrfLevelIndex and -PrfLevelAll specifications The following shows the message that is output:
Message output for displaying PRF trace collection level
-PrfLevelAll
Specified
Not specified
-PrfLevelIndex
Specified
--
KFCT73419-I
Not specified
KFCT73418-I
KFCT73415-I
-
When changing the PRF trace collection level, the message that is output by the -PrfChangeLevel specification is either KFCT73416-I or KFCT73420-I. When both of the conditions listed below are satisfied, KFCT73416-I is output; otherwise, KFCT73420-I is output:
-
Only a single value is specified, as in -PrfChangeLevel 0x44445555, and no comma (,) is used.
-
-PrfLevelIndex is not specified.
-
-
You must execute this command while the PRF daemon is active. If this command is executed while the PRF daemon is not active, an error message is output.
-
The same PRFSPOOL environment variable as the one assumed by the request destination PRF daemon must be set.
-
When you use this command to change levels, the changes will be applied from the next request onwards.