Controlling Oracle VM Server for SPARC Logging Operations

Use the ldm set-logctl command to specify the fine-grained logging characteristics that control the messages written to the log. Note that you cannot disable the logging of fatal or warning messages. See the ldm(8) man page.

Example 18-6 Controlling Event Logging Operations

The following examples show ways in which to use the ldm set-logctl command:

  • Enable logging for notice messages, which indicate that an event requires user attention.

    primary# ldm set-logctl notice=on
  • Specify the number of messages that the ldm list-history command outputs.

    The following command sets the number to 20.

    primary# ldm set-logctl history=20
  • Reset logging properties to the default values.

    primary# ldm set-logctl defaults

Example 18-7 Logging Output

Use the ldm set-logctl command to specify the logging characteristics for Oracle VM Server for SPARC events to be written to the log.

  • The following command logs ldm commands:

    primary# ldm set-logctl cmd=on

    When you configure command logging, the following types of information are logged:

    • The following entry is logged for an ldm list command:

      cmd: ldm list
      cmd: OK
    • The following entry is logged for a badly formed ldm list command:

      cmd: ldm list -x
      cmd: USAGE
    • The following entry is logged for an ldm list command that specifies a non-existent domain:

      cmd: ldm list non-existent-domain-name
      cmd: ERROR:
      cmd: LDom "non-existent-domain-name" was not found
  • The following command logs ldm commands and command responses:

    primary# ldm set-logctl cmd=resp

    For example, when you issue the ldm list command, the following command information is logged:

    cmd: ldm list
    cmd: OK:
    cmd: NAME             STATE      FLAGS   CONS    VCPU  MEMORY   UTIL  NORM  UPTIME
    cmd: primary          active     -n-cv-  SP      16    9248M    0.8%  118d 3h
    cmd: ldg1             active     -t----  5000    16    4G       6.2     %  2d 22h 24m