z/OS UNIX System Services Planning
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


System console files

z/OS UNIX System Services Planning
GA32-0884-00

The following are system console files:
  • /dev/console (major 9, minor 0). Data written to the /dev/console file is sent to the console and is displayed in message BPXF024I by means of a write-to-operator function. This message also contains the user ID of the process that wrote to the console. It is automatically created the first time the system is IPLed and is created with minor number 0.
  • /dev/operlog (major 9, minor 1). This device file is intended for the syslog daemon. Data written to the /dev/operlog file is sent directly to the sysplex message log, OPERLOG, which must be active, and is displayed in message BPXF060I. For each write operation to /dev/operlog, the first character is removed from the message and used as a message indicator code with the following values:
    '00'x
    The message originated on a remote system.
    '80'x
    The message originated on the local system.
    Messages written to /dev/operlog that are not properly formatted results in an error return code with EINVAL as the errno.

    Using /dev/operlog is a quick way of logging messages.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014