Loading

×Sorry to interrupt
CSS Error

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

My Subscriptions

Loading

Knowledge Base

Using vSphere Management Assistant (vMA) to collect ESX and ESXi logs (1024122)

Last Updated: 3/20/2024Categories: How toTotal Views: 54941Language:
Chinese (Simplified)Portuguese (European)JapaneseEnglish

Subscribe to get an email
newsletter with new updates

Please provide article feedback:

Purpose

The VMware vSphere Management Assistant (vMA) can be configured to accept logs from your ESX and ESXi host. For more information about downloading, installing, and configuring vMA, see the vSphere Management Assistant Documentation.

For vMA 5.x, the vilogger command has been removed. The vma-support script has been provided to collect various system configuration information. For more information, see the Troubleshooting vMA section in the vSphere Management Assistance Guide for your version.

Resolution

Configuring your VMware vSphere Management Assistant (vMA) appliance to collect the logs from an ESX/ESXi host:

Run this command to add the ESX/ESXi host to the vMA appliance:

# sudo vifp addserver [ESX/ESXi IP or HOSTNAME]

You are prompted for the root password for the target system.

Run this command to view the list of ESX/ESXi hosts connected to the vMA appliance.

# sudo vifp listservers

Run this command to enable the vilogger interface and to configure vMA to collect log files from the target ESX/ESXi or vCenter Server hosts according to the specified log policy:

# vilogger enable --server [ESX/ESXi IP or HOSTNAME] --numrotation <ROTATION: 1 to 1024> --maxfilesize <SIZE in MB: 1 to 1024> --collectionperiod <PERIOD in seconds: 10 to 3600>

Where ESX/ESXi IP or HOSTNAME is the IP address or hostname of the ESX/ESXi host.

For example, the command with default values is:

# vilogger enable --server [ESX/ESXi IP or HOSTNAME] --numrotation 5 --maxfilesize 5 --collectionperiod 10

In the vMA 4.x versions, the logs are located at /var/log/vmware. In earlier vMA versions, the logs are located at /var/log/syslog.

Each host managed by the vMA appliance has a sub-directory within /var/log/vmware. Each of these sub-directories, in turn, contains the log files, such as hostd.log, messages.log, vmkernel.log, vmkwarning.log, and vpxa.log.

To read the log files, you can use commands such as tail -f. For example, to read the contents of the vpxa.log file, run this command:

# tail -f /var/log/vmware/<FQDN of Host>/vpxa.log

To specify a different log location, see the vilogger enable section of the vSphere Management Assistance Guide for your version.

To customize the options for the vilogger command, see vilogger Daemon and Log Management Commands in the vSphere Management Assistant Guide.

Related Information

The syntax of the vilogger command is:

vilogger <command>

Where <command> can be one of the following:

enable [--server <SERVER>]
[--logname <LOGNAME>]
[--collectionperiod <PERIOD in seconds: 10 to 3600>]
[--numrotation <ROTATION: 1 to 1024>]
[--maxfilesize <SIZE in MB: 1 to 1024>]

disable [--server <SERVER>]
[--logname <LOGNAME>]
[--force]

list [--server <SERVER>]
[--logname <LOGNAME>]

updatepolicy [--server <SERVER>]
[--logname <LOGNAME>]
[--collectionperiod <PERIOD in seconds: 10 to 3600>]
[--numrotation <ROTATION: 1 to 1024>]
[--maxfilesize <SIZE in MB: 1 to 1024>]

help | --help | -h [<command name>]

To increase disk space on an installed vMA appliance refer to How to increase/resize vMA Disks.
使用 vSphere Management Assistant (vMA) 收集 ESX 和 ESXi 日志
vSphere Management Assistant (vMA) を使用して ESX および ESXi ログを収集する
Como usar o vSphere Management Assistant (vMA) para coletar logs do ESX e do ESXi

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
Chinese (Simplified)Portuguese (European)JapaneseEnglish

Attachments

Additional Resources

KB
•
Não é possível conectar a um host ESX usando o Secure Shell (SSH) (1003807)

KB
•
对使用 vCenter Converter 时在准备过程中失败的虚拟机进行故障排除 (1006285)

KB
•
No es posible conectarse a un host ESX mediante Secure Shell (SSH) (1003807)

Results 1-3 of 3

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware vSphere Management Assistant

VMware vSphere ESXi

VMware vSphere

VMware ESX Server

Related Versions:

VMware ESXi 4.1.x Installable

VMware ESXi 4.1.x Embedded

VMware ESXi 4.0.x Installable

VMware ESXi 4.0.x Embedded

VMware ESX 4.1.x

VMware ESX 4.0.x

Take Our Survey

Support Assistant