Parveen1988
Enthusiast
Enthusiast

Trace Level Logging for a Linux VDI

Hello Does any one what is the linux equivalent for "C:\Program Files\VMware\VMware View\Agent\DCT\support.bat loglevels"

I need to collect trace level logs for a Ubuntu VDI.

I see some parameters /etc/vmware/config and /etc/vmware/viewagent-custom.conf, but these seems to be too many changes to made.

Like Windows, do we have a single config file in linux where we can define trace level logging.

VMware Knowledge Base  and Setting Options in Configuration Files on a Linux Desktop

are really not of much help.

0 Kudos
5 Replies
Alex_Romeo
Leadership
Leadership

Hi,

View Agent logs for Linux

Horizon Agent installation directory /usr/lib/vmware/viewagent

Logs /var/log/vmware/

Horizon Agent configuration /etc/vmware/viewagent-config.txt

Machine configuration /etc/vmware/viewagent-machine.cfg

Blast Server /tmp/vmware-root/vmware-mks-<pid>.log

VMware Knowledge Base

ARomeo

Blog: https://www.aleadmin.it/
0 Kudos
Parveen1988
Enthusiast
Enthusiast

Hello Aromeo, I know the log location, and how to collect the logs, but how to enable trace level logging?

0 Kudos
Alex_Romeo
Leadership
Leadership

Hi,

ok!

Horizon Client for Linux Logs

Log Configuration

You can use a configuration property (view.defaultLogLevel) to set the verbosity level for client logs, from 0 (collect all events) to 6 (collect only fatal events).

For USB-specific logs, you can use the following command-line commands:

vmware-usbarbitrator --verbose vmware-view-usbd -o log:trace

Collecting a Log Bundle

The log collector is located at /usr/bin/vmware-view-log-collector . To use the log collector, you must have execute permissions. You can set permissions from the Linux command line by entering the following command:

chmod +x /usr/bin/vmware-view-log-collector

You can run the log collector from a Linux command line by entering the following command:

/usr/bin/vmware-view-log-collector

ARomeo

Blog: https://www.aleadmin.it/
0 Kudos
Parveen1988
Enthusiast
Enthusiast

Not resolution to my issue.

On linux you can run sudo /usr/lib/vmware/viewagent/bin/dct-debug.sh to collect the agent logs.

My question is that how could I enable trace level logging here.

0 Kudos
yanchaozhang
VMware Employee
VMware Employee

Hi FedEx-20,

We simply don't have that kind of option, you must enable the trace log level for  each component you are interested.

0 Kudos