A vCenter Server support bundle can be collected from vCenter Server using these methods. Select the method most appropriate to your environment.
Collecting a support bundle using VMware vSphere Client (vCenter Server 6.0 and earlier)
To collect the diagnostic information using the vSphere Client:
- Connect to vCenter Server using the vSphere Client.
- Start collecting diagnostic information. For more information, see Collecting diagnostic information for VMware ESXi/ESX using the vSphere Client (653).
- Select the checkbox to include information from vCenter Server.
The log bundle appears in the specified folder when the download is complete. The log bundle is named with the current date and time. For example:
VMware-vCenter-support-yyyy-mm-dd@ HH-MM-SS.zip
Collecting a support bundle from vCenter Server using the PowerCLI
You can use the VMware PowerCLI to collect vCenter Server support bundle at the same time as from managed ESXi/ESX hosts. For more information, see Collecting diagnostic information for VMware vCenter Server and ESXi/ESX using the vSphere PowerCLI (1027932).
Collecting a support bundle from vCenter Server 5.1 and later using the vSphere Web Client
When the vSphere Web Client is connected to the vCenter Server system, you can select hosts from which to generate and download a vCenter Server support bundle. For more information, see Collecting diagnostic information for ESXi/ESX hosts and vCenter Server using the vSphere Web Client (2032892).
Note: You can also you use the Log Browser feature in the vSphere Web Client to view, search, and export one or more vCenter Server support bundle or host support bundle. For more information, see Using the Log Browser to view, search, and export Logs for troubleshooting (2032888).
Collecting a support bundle from vCenter 5.x Server Appliance using the command line
- Open a console session to the vCenter Server Appliance.
- Log in as an administrative user, such as
root
.
- Run the command:
/usr/sbin/vc-support.sh
The command lists each file being included in the support bundle, and the path and file name of the produced bundle. The bundle is named with the current date under the directory where the command was issued. For example:
/root/vcsupport-yyyy-mm-dd.pid.zip
Collecting a support bundle from vCenter 6.0 or later Server Appliance or external Platform Service Controller using the command line
- Open a console session to the vCenter Server Appliance.
- Log in as an administrative user, such as root.
- Type shell.set --enabled true and press Enter.
- Type shell and press Enter.
- Run this command to export the logs to /storage/log/:
vc-support -l
Collecting a support bundle from vCenter 6.0 Server Appliance or external Platform Service Controller using a web browser
- Open a web browser and navigate to https://vCenter_server_FQDN:443/appliance/support-bundle
- When prompted enter the root credentials and click Enter.
The download will begin automatically as vm-support.tgz.
Collecting a support bundle from vCenter 5.x Server Appliance using a web browser
- Open a web browser and navigate to:
https://vCenter_Server_IP_address:5480
- Log in with your credentials or as the local administrator.
- Click the vCenter Server tab.
- Click the Status tab.
- Click the Download vCenter Server Support Bundle link.
After completing, the support bundle is located on the VCSA at:
/tmp/vc-support-bundle/
Collecting a support bundle from vCenter Server 4.0 and higher for Windows using the Start Menu item
- Log in to the Windows server where VMware vCenter Server is installed.
- Click Start > All Programs > VMware > Generate vCenter Server log bundle - Extended or Start > All Programs > VMware > vCenter Server> Generate vCenter Server log bundle.
Note: In Windows 2008 R2, use Run As Administrator.
- A command prompt window appears and shows the log collection progress.
When complete, the command prompt window closes. A log bundle is placed on the desktop of the current user, named with the current date and time. For example:
vc-support-mm-dd-yyyy-HH-MM.zip
Note:
When you click on Generate vCenter Server log bundle, below script will be executed in the background:
C:\Windows\System32\cscript.exe "C:\Program Files\VMware\Infrastructure\VirtualCenter Server\scripts\vc-support.wsf" /z
This script creates a live core dump of vpxd process which suspend the process for some time to create memory dump. During this time, the host may get disconnected till the memory dump is created.
To avoid this, generate vCenter logs execute the below command, which skips memory dump creation:
C:\Windows\System32\cscript.exe "C:\Program Files\VMware\Infrastructure\VirtualCenter Server\scripts\vc-support.wsf" /nlc /z
Collecting a vCenter Server support bundle from vCenter Server 2.5 and higher for Windows using the command line
- Log in to the Windows server where VMware vCenter Server is installed.
- Open a command prompt.
- Change directories to the vCenter Server installation directory. For example:
cd "C:\Program Files\VMware\Infrastructure\VirtualCenter Server\"
For for vCenter Server 6.0 or later version:
cd "C:\Program Files\VMware\vCenter Server\bin"
- Run the
vc-support.bat
command to generate a log bundle:
- For vCenter Server 4.x on 64-bit Windows:
%WINDIR%\SysWOW64\cscript.exe vc-support.bat
- For all other versions:
cscript scripts\vc-support.bat
To redirect from the default desktop location:
cscript scripts\vc-support.bat /z /s:output_location
The command lists each file being included in the support bundle, and the path and file name of the produced log bundle. The log bundle is named with the current date. For example:
vcsupport-mm-dd-yyyy-HH-MM.zip
For vCenter Server 5.5 or later:
- vCenter Server 5.5/Windows Server 2008
C:\Windows\System32\cscript.exe "C:\Program Files\VMware\Infrastructure\VirtualCenter Server\scripts\vc-support.wsf" /z /f
- vCenter Server 6.0/Windows Server 2012
"C:\Program Files\VMware\vCenter Server\bin\vc-support.bat"
- vCenter Server 6.5/Windows Server 2016
"C:\Program Files\VMware\vCenter Server\bin\vc-support.bat"