Analyzing error logs

The experienced user can search through this file with commands, such as grep and sed, but the iprconfig utility also offers a convenient menu for analyzing the error log.

About this task

Errors logged by the adapters and devices are stored in the /var/log/messages file. Options on the error log screen that are not mentioned here are used to gather certain information from the error log and present it in the default editor. This is used mostly during Maintenance Analysis Procedures to search for Unit Reference Codes.

Procedure

  1. Select Analyze Log from the main menu in iprconfig.
    A screen will display information similar to the following:
    +--------------------------------------------------------------------------------+
    |                        Kernel Messages Log                                     |
    |                                                                                |
    |Select one of the following:                                                    |
    |                                                                                |
    |     1. View most recent ipr error messages                                     |
    |     2. View ipr error messages                                                 |
    |     3. View all kernel error messages                                          |
    |     4. View iprconfig error messages                                           |
    |     5. Set root kernel message log directory                                   |
    |     6. Set default editor                                                      |
    |     7. Restore defaults                                                        |
    |     8. View IBM boot time messages                                             |
    |Selection:                                                                      |
    |                                                                                |
    |e=Exit  q=Cancel                                                                |
    +--------------------------------------------------------------------------------+
  2. To change the directory where the error log is stored, use the Set root kernel message log directory option.
    Normally, this does not need to be used. It can be useful when booting from an alternate root file system if you want to access /var/log/messages on another file system.
  3. To change the text editor used to view the error log from the default text editor, vi, choose the Set default editor option.
    Invoking iprconfig with the -e command line option will also change the default editor. Type the command iprconfig -h for more information.
  4. To return the location of the error log to /var/log/messages and set the default editor back to vi, choose the Restore defaults option.