Modifying the log level of the Likewise agent in VMware vCenter Server Appliance
search cancel

Modifying the log level of the Likewise agent in VMware vCenter Server Appliance

book

Article ID: 314366

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

This article provides steps to modify the log level of the Likewise agent in VMware vCenter Server Appliance.
 
Likewise agents are used in vCenter Server Appliance to facilitate joining the host to an Active Directory domain and subsequent user authentication attempts.

Logs for Likewise agents are helpful during advanced troubleshooting of Active Directory integration.


Environment

VMware vCenter Server Appliance 6.7.x
VMware vCenter Server Appliance 5.5.x
VMware vCenter Server Appliance 6.5.x
VMware vCenter Server Appliance 6.0.x
VMware vCenter Server Appliance 5.0.x
VMware vCenter Server Appliance 5.1.x
VMware vCenter Server 7.0.x

Resolution

To modify the log level of the Likewise agent in VMware vCenter Server Appliance:

Note: By default, Likewise agents on the appliance log to /var/log/messages with INFO log level.The messages in /var/log/messages are tagged with lwsmd.

  1. Run this command to identify the current log level and location:

    # /opt/likewise/bin/lwsm get-log
    syslog: LOG_DAEMON
    # /opt/likewise/bin/lwsm get-log-level
    INFO
     
  • Run this command to modify the log level:
 
# /opt/likewise/bin/lwsm set-log-level loglevel

Where loglevel can be always, error, warning, info, verbose, debug, trace.

Note: In VCSA 6.5 and 6.7 the log levels must be set by individual service.

Example:

 /opt/likewise/bin/lwio-set-log-info trace
 /opt/likewise/bin/lw-set-log-level trace
 /opt/likewise/bin/lwnet-set-log-level trace