Installs messages in the error logging message sets.
errinstall [ -c ] [ -f ] [ -q ] [ -z FileName ] File
The errinstall command is an installation aid that adds or replaces messages in the Error Description, Probable Cause, User Cause, Install Cause, Failure Cause, Recommended Action, and Detailed Data data id message sets of the error log message catalog.
The File parameter specifies an input file containing messages to be added or replaced. If you do not specify the File parameter or if you specify it as the - (minus sign), the errinstall command reads from standard input.
Note: Program products and in-house applications should use predefined messages from the error logging message sets. List the predefined messages using the errmsg -w command. To add new messages, third-party software vendors should contact IBM to register new messages. During the development of in-house applications, the errmsg command can be used to add new messages, but the new messages must not conflict with the messages added for other in-house applications.
The errinstall command creates an undo file in the current directory named the File.undo file. (If the errinstall command is reading from standard input, the undo file information is written to standard output.) The File.undo file can be used as input to the errinstall command to undo the changes the errinstall command has just made. To undo changes, run the errinstall command with the -f flag and specify the File.undo file for the File parameter.
Two separate lines of information are required to add or replace a single message in the error log message catalog. You can include multiple additions or replacements in a single file. The first line is required to identify the message set to which the message is to be added or replaced. Use the following format:
SET MessageSetID
where the MessageSetID parameter is one of the following single characters:
E | Identifies Error Description |
P | Identifies Probable Cause |
U | Identifies User Cause |
I | Identifies Install Cause |
F | Identifies Failure Cause |
R | Identifies Recommended Action |
D | Identifies Detailed Data |
The second line lists the message ID with the message to be added or replaced. At least one line is required, and multiple lines can be included, following a single line that identifies a message set. As described earlier, users should contact their service representative to obtain the message ID, unless it is required for an in-house application only (in which case, use the errmsg command to install the error message without a predetermined error message ID).
You must put a space between the message ID and the message text, and enclose the text of the message in double quotes as follows:
message ID "message text"
In addition to the two required lines of information, you can also include lines of comments. A comment line must have a $ (dollar sign) or an * (asterisk) operator in the first column. The asterisk is the preferred choice.
Note: Messages added to the Error Description, Probable Cause, and Detailed Data ID message sets must not exceed 40 characters in length. Messages added to the User Cause, Install Cause, Failure Cause, and Recommended Action message sets must not exceed 128 characters in length. If messages exceed these lengths, the errinstall command displays a warning message, but adds the messages to the codepoint catalogue. These messages will be truncated when displayed by the summary errpt command.
Access Control: Only the root user can run this command.
errinstall -f /tmp/lpp.desc
errinstall -f /tmp/lpp.desc.undo
errinstall * Add a probable cause for widget failure: SET P E100 "widget adapter"
errinstall -f * Replace the message associated with ID E100 in the * Recommended Action message set SET R E100 "Replace disk drive"
errinstall in_file
errinstall -f in_file
* * Add these error messages to the Detailed Data message set: * SET D 8105 "Logical channel number" 8106 "Timer reference stamp" * * Add these error messages to the Probable Cause message set: * SET P E861 "Bad memory card" E865 "Unexpected System Halt" E876 "Fiber Optic Cable" * * Add this message to the Recommended Action message set: * SET R E850 "Install updated driver code"
/usr/lib/nls/msg/$LANG/codepoint.cat | Contains the error log message catalog. In the United States, the value of the $LANG environment variable is En_US. |
The errclear command, errdead command, errlogger command, errmsg command, errpt command, errstop command, errupdate command.
The errdemon daemon.
The errsave kernel service.
The errlog subroutine.
The error logging special files.
The Error Logging Overview in AIX Version 4.3 Problem Solving Guide and Reference.