5.2

Table Of Contents
Table 17-3. Options for Configuring Logging in View Agent
Option Description
-d desktop Specifies the desktop pool.
-getDCT
Creates a Data Collection Tool (DCT) bundle and saves it to
a local file.
-getlogfile logfile Specifies the name of the log file to save a copy of.
-getloglevel
Displays the current logging level of View Agent.
-getstatus
Displays the status of View Agent.
-getversion
Displays the version of View Agent.
-list
List the log files for View Agent.
-m machine Specifies the machine within a desktop pool.
-outfile local_file Specifies the name of the local file in which to save a DCT
bundle or a copy of a log file.
-setloglevel level Sets the logging level of View Agent.
debug
Logs error, warning, and debugging
events.
normal
Logs error and warning events.
trace
Logs error, warning, informational, and
debugging events.
Examples
Display the logging level of the Agent for the machine machine1 in the desktop pool dtpool2.
vdmadmin -A -d dtpool2 -m machine1 -getloglevel
Set the logging level of the View Agent for the machine machine1 in the desktop pool dtpool2 to debug.
vdmadmin -A -d dtpool2 -m machine1 -setloglevel debug
Display the list of View Agent log files for the machine machine1 in the desktop pool dtpool2.
vdmadmin -A -d dtpool2 -m machine1 -list
Save a copy of the View Agent log file log-2009-01-02.txt for the machine machine1 in the desktop pool
dtpool2 as C:\mycopiedlog.txt.
vdmadmin -A -d dtpool2 -m machine1 -getlogfile log-2009-01-02.txt -outfile C:\mycopiedlog.txt
Display the version of the View Agent for the machine machine1 in the desktop pool dtpool2.
vdmadmin -A -d dtpool2 -m machine1 -getversion
Display the status of the View Agent for the machine machine1 in the desktop pool dtpool2.
vdmadmin -A -d dtpool2 -m machine1 -getstatus
Create the DCT bundle for the machine machine1 in the desktop pool dtpool2 and write it to the zip file
C:\myfile.zip.
vdmadmin -A -d dtpool2 -m machine1 -getDCT -outfile C:\myfile.zip
VMware Horizon View Administration
412 VMware, Inc.