• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/14

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

14 Cards in this Set

  • Front
  • Back
Viewing vCenter Server logs
Can be viewed from the vSphere Client connected to vCenter Server:

Home-> Administration -> System Logs

From the vSphere web client

Home-> Log Browser

Click Select Object now, choose an ESXi host of vCenter Server object and click OK.
Viewing ESXi logs
You can view logs by connecting via SSH to an ESXi host.

Log and configuration files can also be found by going to the following URL: https://IPorHostNameof ESXiHost/host

You can also access logs via the DCUI
Generate vCenter Server and ESXi Log Bundles: GUI
1. Click on the vCenter name.
2. Click File->Export
3. Click Export System Logs.
4. Select at which level you want to export logs.
5. Select Next.
6. Select which logs you want to export.
7. Click Next.
8. Click the Browse button to select a location to save the log bundle to.
8. Click Next.
9. Click Finish.
Generate vCenter Server and ESXi Log Bundles: CLI
To export logs you need to use the vm-support command. You can export information based on a list of groups or certain 'manifests' or you can export information on a particular virtual machine.

You can also set a log level with the -loglevel option, values are 0-50 with 0 being the most verbose.

Generate a generic log bundle by executing vm-support and it will generate a log bundle in a .gz format and by default place it in the /var/tmp directory.

Use the -w option to change the working directory of where the bundle will be saved.
Generate vCenter Server and ESXi Log Bundles: Using Export log utility
New in ESXi you can also invoke the export log utility via https:

https://username:password@ESXiHostnameOrIPAddress/cgi-bin/vm-support.cgi
Use esxcli system syslog to configure centralized logging on ESXi hosts: initial steps
Before you go to the effort to configure your hosts for syslog, take a look at the current configuration from the command line using the following command:

esxcli system syslog config get

You can also use the following command to list out the same details, but for each individual log (which will also tell you what all of the log files are):

esxcli system syslog config logger list
Use esxcli system syslog to configure centralized logging on ESXi hosts: check ESXi firewall from GUI
Ensure that the ESXi firewall has the syslog ports open:

1. Log into the vSphere client.
2. From the Inventory tree, click the ESXi host that you have configured, or are configuring remote syslog for.
3. Click the Configuration tab.
4. Under the Software pane, click the Security profile link.
5. In the right pane, to the right of Firewall, click the Properties link.
6. Find the syslog service located under the Ungrouped services.
7. If the checkbox next to syslog isn't checked, check it.
8. Click OK
Use esxcli system syslog to configure centralized logging on ESXi hosts: change the default rotation size
Command Line Interface Solutions and Examples Guide, P 134

esxcli system syslog config set --default-size=<size>
Use esxcli system syslog to configure centralized logging on ESXi hosts: change the default rotation number
Command Line Interface Solutions and Examples Guide, P 134


esxcli system syslog config set --default-rotate=<number>
Use esxcli system syslog to configure centralized logging on ESXi hosts: set the host to send logs to a remote syslog server
Command Line Interface Solutions and Examples Guide, P 134


esxcli system syslog config set --loghost <IP or hostname of syslog server>
Use esxcli system syslog to configure centralized logging on ESXi hosts: load the changes into runtime
Command Line Interface Solutions and Examples Guide, P 134


esxcli system syslog reload
Use esxcli system syslog to configure centralized logging on ESXi hosts: verify changes
Command Line Interface Solutions and Examples Guide, P 134


esxcli system syslog config get
Test centralized logging
Testing your centralized logging can be done via a command in the esxcli system syslog namespace that allows you to send a message to all your logs at the same time. You can use this to send a message, and then check the log on your remote syslog system and see if it shows up.


esxcli system syslog mark --message="Test message."
Install and configure VMware syslog Collector
1. Login to the server you plan on installing syslog collector.
2. Run the vCenter installer.
3. Under vCenter Support Tools, click VMware Syslog Collector.
4. Click the Install button.
5. You can accept all defaults, or change the installation directory and log rotation size and frequency.