Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Add Problem Selection Entry (ADDPRBSLTE) command allows you to define selection criteria that categorize a group of problem log entries. You can add a problem log selection entry to a problem log filter that was created using the Create Filter (CRTFTR) command.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
FILTER | Filter | Qualified object name | Required, Positional 1 |
Qualifier 1: Filter | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
SELECT | Selection data | Single values: *ANY Other values (up to 10 repetitions): Element list |
Required, Positional 2 |
Element 1: Relationship | *IF, *AND, *OR | ||
Element 2: Attribute | *EVENT, *ORIGIN, *ORGNETID, *ORGCPNAM, *RCVNETID, *RCVCPNAM, *PROBTYPE, *SEV, *MSGID, *ORGHDW, *RSCHDW, *RSCSFW | ||
Element 3: Relational operator | *EQ, *GT, *LT, *NE, *GE, *LE, *CT | ||
Element 4: Value | Character value | ||
SEQNBR | Sequence number | 1-9999, *GEN | Optional |
GROUP | Group | Name, *DEFAULT | Optional |
Top |
Specifies the name of the filter.
This is a required parameter.
The possible library values are:
Top |
Specifies that a problem log entry is selected or not selected based on whether information in the problem log entry satisfies a specified relationship.
You can specify a single value (*ANY) or all four elements that define a relationship. When you specify the four elements, the attribute and attribute value are compared for the relationship specified by the relational operator.
This is a required parameter.
The possible Logical Operator values are:
The possible Attribute values are:
'nnnnnnnnnn'
'cccccccccc'
'nnnnnnnnnn'
'cccccccccc'
Note: User-Detected Remote Hardware problems are grouped with number 2 User-Detected problems.
Note: Problems do not have a severity level when locally created.
'tttt mmm ss-sssssss' 'tttt mmm ss-sssss' 'tttt mmm sssssss' 'tttt mmm sssss'
where tttt is the machine type, mmm is the model number and sssssssss is the serial number. Use this exact format to match a particular hardware resource exactly, or use a part of the hardware value with the Contains (*CT) relation to provide a partial match.
'tttt mmm ss-sssssss' 'tttt mmm ss-sssss' 'tttt mmm sssssss' 'tttt mmm sssss'
where tttt is the machine type, mmm is the model number and sssssssss is the serial number. Use this exact format to match a particular hardware resource exactly, or use a part of the hardware value with the Contains (*CT) relation to provide a partial match.
'ppppppp vv rr mm'
where ppppppp is the licensed program ID, vv is the version number, rr is the release number, and mm is the modification level. Use this exact format to match a particular software resource exactly, or use a part of the software value with the Contains (*CT) relation to provide a partial match.
Relational Operator values. The value specified for Attribute value must have the following relationship to the Attribute Values:
The possible Attribute Value values are:
Top |
Specifies the sequence number of the problem log selection entry. Selection entries in a filter are numbered by sequence number. When a filter is applied, the selection entries are tested in order of ascending sequence number.
Top |
Specifies the group to which a problem log entry is assigned if it matches the criteria specified on the SELECT parameter.
Top |
Example 1: Adding a Selection Entry
ADDPRBSLTE FILTER(PROBLIB/PROBFILTER) SELECT((*IF *EVENT *EQ 1) (*AND *SEV *EQ 1)) SEQNBR(*GEN) GROUP(HIGHPROB)
This command adds an entry to the filter PROBFILTER in library PROBLIB. Any problems that have been created and are of severity 1 are assigned to group HIGHPROB.
Example 2: Assigning Entries by Origin System Network ID
ADDPRBSLTE FILTER(PROBLIB/PROBFILTER) SELECT((*IF *ORGNETID *EQ 'IOWA')) SEQNBR(*GEN) GROUP(IOWA)
This command assigns any problems with a origin system network ID of IOWA to group IOWA.
Example 3: Assigning Entries by Problems for Messages
ADDPRBSLTE FILTER(PROBLIB/PROBFILTER) SELECT((*IF *MSGID *EQ 'CPF89*')) SEQNBR(*GEN) GROUP(MSGCPF89)
This command assigns any problems for message CPF8901, CPF8902, and so on, to group MSGCPF89.
Example 4: Assigning Entries by Hardware Problems
ADDPRBSLTE FILTER(PROBLIB/PROBFILTER) SELECT((*IF *RSCHDW *CT 9404) (*OR *RSCHDW *CT 9406) (*OR *RSCHDW *CT 9402)) SEQNBR(*GEN) GROUP(AS400USER)
All problems for iSeries hardware (the hardware resource information containing machine type 9402, 9404 or 9406) are assigned to group AS400USER.
Caution must be taken when using the contains operation. In this example if the sending machine had a serial number containing 9402, 9404, or 9406 it would also match this selection entry even if the machine type was not 9402, 9404, or 9406. A better example follows.
Example 5: Assigning Entries by Hardware Problems
ADDPRBSLTE FILTER(PROBLIB/PROBFILTER) SELECT((*IF *RSCHDW *EQ 9404*) (*OR *RSCHDW *EQ 9406*) (*OR *RSCHDW *EQ 9402*)) SEQNBR(*GEN) GROUP(AS400USER)
This command assigns all problems for iSeries 400 hardware (the hardware resource information equals machine type 9402, 9404 or 9406) to group AS400USER.
This is a better way to select on the sending hardware machine type. Only those machines with types of 9402, 9404, or 9406 will result in a match.
Example 6: Assigning Entries by Machine-detected Problems
ADDPRBSLTE FILTER(PROBLIB/PROBFILTER) SELECT((*IF *PROBTYPE *EQ 1)) SEQNBR(*GEN) GROUP(MACHDETECT)
This command assigns any problems that are machine-detected to group MACHDETECT.
Example 7: Assigning Entries by Product-specific Problems
ADDPRBSLTE FILTER(PROBLIB/PROBFILTER) SELECT((*IF *RSCSFW *EQ '5716SS1 03 06 00')) SEQNBR(15) GROUP(OS400V3R6)
This command assigns any problems that are specifically for Operating System Version 3 Release 6 Modification 0 to group OS400V3R6. Notice that this entry is placed after entry number 10 in the filter, since 15 is specified as the sequence number.
Example 8: Assigning Entries by Matching Products
ADDPRBSLTE FILTER(PROBLIB/PROBFILTER) SELECT((*IF *RSCSFW *EQ '5716SS1*')) SEQNBR(25) GROUP(OS400)
This selection entry matches Version 3 Release 6 of the Operating System licensed program.
Notes:
((*IF *PROBTYPE *EQ 1) (*AND *SEV *EQ 1) (*OR *PROBTYPE *EQ 2) (*AND *SEV *EQ 1))
is equivalent to the following Boolean expression:
if ((*PROBTYPE = 1) and (*SEV = 1)) or ((*PROBTYPE = 2) and (*SEV = 1))
Top |
*ESCAPE Messages
Top |