Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Vmware collects log related

2025-01-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

VMware collects diagnostic information and may contain support packs from ESXi hosts and vCenter Server. Data collected in the host support package may be considered sensitive. In addition, starting from vSphere 6.5, encrypted information from the ESXi host will be included in the support pack.

1. Run vm-support in a console session on the ESXi/ESX host

Open the console to the ESX or ESXi host

Run vm-support

# vm-support-version

Vm-support v2.0

Generate a compressed log package and store it in a file with a .tgz extension in one of the following locations:

/ var/tmp/

/ var/log/

Current working directory

To export a log package to a shared vmfs data store, use this command:

Vm-support-f-w / vmfs/volumes/DATASTORE_NAME

Note: the-f option is not available in ESXi 5.x, ESXi/ESX 4.1 Update 3 and later.

You can also collect and download the log package to the client and upload the log to the SFTP/FTP site.

2. Transfer vm-support output from ESXi 5.x and 6.0 hosts by stream

Enable access to ESXi Shell through SSH

Run the following command

Ssh root@ESXHostnameOrIPAddressvm-support-s > vm-support-Hostname.tgz

# vm-support-s > / vmfs/volumes/OCS01_SY18_CP05PV2C16/vmsupport.tgz

You can also use the same command to direct the support log package to the desired data storage location (mention the target path). For example:

Ssh root@ESXHostnameOrIPAddress'vm-support-s > / vmfs/volumes/datastorexxx/vm-support-Hostname.tgz'

3. Download vm-support output based on HTTP from ESXi 5.x and 6.0 hosts

Starting with ESXi 5.0, the vm-support command line utility can be invoked through HTTP. This allows content to be downloaded using a Web browser or command-line tool such as wget or curl.

Using any HTTP client, download resources from the following location:

Https://ESXHostnameOrIPAddress/cgi-bin/vm-support.cgi

For example, use the wget utility to download resources on Linux or other Posix clients, such as vSphere Management Assistant devices. The zipped log package is generated at the following specified location on the client:

Wget https://10.11.12.13/cgi-bin/vm-support.cgi

After collecting the log package and downloading it to the client, upload the log to the SFTP/FTP site.

Information Collection in vc

Use the command line to collect support packs from vCenter 5.x Server Appliance

To collect diagnostics from vCenter 5.x Server Appliance:

Open a console session to enter vCenter Server Appliance.

Log in as an administrative user, such as root.

Run the following command:

/ usr/sbin/vc-support.sh

This command lists each file to be included in the support package and the path and file name of the generated log package. The log package is named after the current date in the directory where this command was issued. For example:

/ root/vcsupport-yyyy-mm-dd.pid.zip

Use the command line to collect support packs from vCenter 6.0or later Server Appliance or external Platform Services Controller

Open a console session to enter vCenter Server Appliance.

Log in as an administrative user, such as root.

Type shell.set-- enabled true, then press Enter.

Type shell, then press Enter.

Run the following command to export the log to / storage/log/:

Vc-support-l

Use a Web browser to collect support packs from vCenter 6.0 Server Appliance or external Platform Services Controller

Open a Web browser and navigate to https://vCenter_server_FQDN:443/appliance/support-bundle

When prompted, enter the root credentials, and then click Enter.

Will automatically start downloading as vm-support.tgz.

Use a Web browser to collect support packs from vCenter 5.x Server Appliance

Open a Web browser and navigate to:

Https://vCenter_Server_IP_address:5480

Log in with your credentials or as a local administrator.

Click the vCenter Server tab.

Click the status tab.

Click the download vCenter Server support Pack link.

When complete, the support pack is located in the following location on VCSA:

/ tmp/vc-support-bundle/

Downloading a diagnostic log bundle from vCenter Server

To download a vc-support diagnostic log bundle from vCenter Server:

Enter the command:

Get-Log-Bundle-DestinationPath c:\ Storage\ Location\

You see output similar to:

Data

-

C:\ Storage\ Location\ vc-support-nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn.tgz

No progress bar is provided for the command. When completed, upload the logs to the FTP site. For more information, see Uploading diagnostic information to VMware (1008525).

Download a diagnostic log bundle from an ESX/ESXi host

To download a vm-support diagnostic log bundle from an ESX/ESXi host managed by vCenter Server:

Enter the command:

Get-VMHost HostNameOrIP | Get-Log-Bundle-DestinationPath c:\ Storage\ Location\

You see output similar to:

Data

-

C:\ Storage\ Location\ vm-support-nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn.tgz

No progress bar is provided for the command. When completed, upload the logs to the FTP Site. For more information, see Uploading diagnostic information to VMware (1008525).

Interface Export Log in vc

There are also some logs under / var/log, such as vmkernel.log vpxa.log hostd.log and so on.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report