Solaris 7 System Administration Supplement

Improved System Boot and Error Message Format

This functionality was new in the Solaris 7 3/99 software release.

This supplements information on system boot and error messages found in "Viewing System Messages" in System Administration Guide, Volume II, and referenced in the Solaris Transition Guide.

The Solaris 7 3/99 release improves the system boot and error message format by providing a numeric identifier, module name, and time stamp to messages generated by the syslog logging facility. In addition, messages that were previously lost after a system panic and reboot are now saved.

The new message format can be enabled or disabled by setting the msgid property in the log.conf file. The new message format is not enabled by default. See the man page, log(7D), and the procedure below for more information.

For general information about system error logging, see the System Administration Guide, Volume II.

System Boot and Error Message Format Changes

If msgid is set to 0 in the log.conf file, there are no changes in the message format. If msgid is set to 1, there are two changes in the message format:

  1. The text of the message is preceded by a message ID that looks like this:

    [ID msgid facility.priority]

    For example:

    [ID 123456 kern.notice]

    The msgid identifier is described in the man page msgid(1M). The facility and priority identifiers are described in the man page, syslog.conf(4).

  2. If the message originated in the kernel, the kernel module name is displayed instead of just 'unix.'

    Previous message format:

    Oct 1 14:07:24 mars unix: alloc: /: file system full

    New message format:

    Oct 1 14:07:24 mars ufs: [ID 845546 kern.notice] alloc: /: file system full

How to Enable System Message IDs

  1. Become superuser.

  2. Enable system message IDs by adding the following line to the /platform/`uname -i`/kernel/drv/log.conf file, if it exists. Otherwise, add the msgid property to the /kernel/drv/log.conf file.


    msgid=1
  3. Save and close the file.

  4. Reboot the system by using the following command.


    # init 6
    

    Note -

    To enable system message IDs without rebooting the system, use the following adb command:


    # echo log_msgid/W1 | adb -kw
    

How to Disable System Message IDs

  1. Become superuser.

  2. Disable system message IDs by changing the msgid line in the /platform/`uname -i`/kernel/drv/log.conf file to the following, if it exists. Otherwise, change the msgid property to the /kernel/drv/log.conf file.


    msgid=0
  3. Save and close the file.

  4. Reboot the system by using the following command.


    # init 6
    

    Note -

    To disable system message IDs without rebooting the system, use the following adb command:


    # echo log_msgid/W0 | adb -kw