Specifying whether to output CLI command-execution logs

Business Continuity Manager Installation and Configuration Guide

Version
9.8.8
File Size
1.2 MB
Audience
anonymous
Part Number
MK-95HC104-42
The following specification examples show how to specify whether to output CLI command-execution logs to SYSLOG or the console.

Using the YKSETENV command

The following shows an example of defining a symbol when you do not want to output the CLI command-execution logs:

START YKSETENV,PARM='SYSLOG=NO'

The following shows an example of defining a symbol when you do want to output the CLI command-execution logs to SYSLOG:

START YKSETENV,PARM='SYSLOG=YES'

The following shows an example of defining a symbol when you do want to output the CLI command-execution logs to the console:

START YKSETENV,PARM='SYSLOG=CONSOLE'
Note: The SYSLOG environment variable is shared by Business Continuity Manager and Tiered Storage Manager for Mainframe. Therefore, you need to be careful when setting the SYSLOG environment variable in an environment in which Tiered Storage Manager for Mainframe is installed. For details, see Notes on setting environment variables or system symbols.

Defining a system symbol in the IEASYMxx parmlib member

The following shows an example of defining a symbol when you do not want to output the CLI command-execution logs:

SYMDEF(&YKSYSLG='NO')

The following shows an example of defining a symbol when you do want to output the CLI command-execution logs to SYSLOG:

SYMDEF(&YKSYSLG='YES')

The following shows an example of defining a symbol when you do want to output the CLI command-execution logs to the console:

SYMDEF(&YKSYSLG='CONSOLE')

If &YKSYSLG is omitted, or if an incorrect value is specified, YES is assumed.

If you output a CLI command-execution log to the console, the log is output to the console by using ROUTCODE=11 (output as the YKZ910I message and the YKZ911I message). Therefore, include 11 in the ROUTCODE parameter of the CONSOLE statement or in the ROUTCODE parameter of the HARDCOPY statement in the CONSOLxx parmlib member.

Perform either of the following operations to change the ROUTCODE value for the CLI command-execution log (the YKZ910I message and the YKZ911I message) to a value other than 11:

  • In MPFLSTxx, register USEREXIT that targets the YKZ910I message and the YKZ911I message. In the USEREXIT to be registered, change the ROUTCODE value for the YKZ910I message and the YKZ911I message from 11 to a different value (the value included in the ROUTCODE parameter in the CONSOLxx parmlib member).
  • Use WTO/WTOR Message Processing Facility Installation Exit (IEAVMXIT) to change the ROUTCODE value for the YKZ910I message and the YKZ911I message from 11 to a different value (the value included in the ROUTCODE parameter in the CONSOLxx parmlib member).

For a sample exit routine (YKUSRXIT) that changes the ROUTCODE value of the YKZ910I message and the YKZ911I message, see the sample library provided by Business Continuity Manager.

Note: The &YKSYSLG system symbol is shared by Business Continuity Manager and Tiered Storage Manager for Mainframe. Therefore, you need to be careful when setting the &YKSYSLG system symbol in an environment in which Tiered Storage Manager for Mainframe is installed. For details, see Notes on setting environment variables or system symbols.
Note: For the output of CLI command-execution logs in an environment where multiple versions of Business Continuity Manager exist, see Specifying whether to output the CLI command-execution logs (SYSLOG).