Tag Archives: vSphere5.0

Using vCenter Maps

A vCenter map is a visual representation of your vCenter Server topology. Maps show the relationships between the virtual and physical resources available to vCenter Server.

Maps are available only when the vSphere Client is connected to a vCenter Server system.

The maps can help you determine such things as which clusters or hosts are most densely populated, which networks are most critical, and which storage devices are being utilized. vCenter Server provides the following map views.

Virtual Machine Resources Displays virtual machine-centric relationships.

image


Host Resources Displays host-centric relationships

image


Datastore Resources Displays datastore-centric relationships

image


vMotion Resources Displays hosts available for vMotion migration.

This is available per virtual machine

image

You can customize all map views, except vMotion Resources maps.

image

Managing Hosts in vCenter Server

Disconnecting and Reconnecting a Host

You can disconnect and reconnect a host that is being managed by vCenter Server. Disconnecting a managed host does not remove it from vCenter Server; it temporarily suspends all monitoring activities performed by vCenter Server.

The managed host and its associated virtual machines remain in the vCenter Server inventory. By contrast, removing a managed host from vCenter Server removes the managed host and all its associated virtual machines from the vCenter Server inventory.

image

 

Understanding Managed Host Removal

Removing a managed host from vCenter Server breaks the connection and stops all monitoring and managing functions of that managed host and of all the virtual machines on that managed host. The managed host and its associated virtual machines are removed from the inventory. Historical data for removed hosts remains in the vCenter Server database.

The managed host and its associated virtual machines remain in the vCenter Server inventory. Removing a managed host from vCenter Server does not remove the virtual machines from the managed host or datastore. It removes only vCenter Server’s access to the managed host and virtual machines on that managed host.

image

Tips

If possible, remove managed hosts while they are connected. Removing a disconnected managed host does not remove the vCenter Server agent from the managed host. Make sure NFS mounts are active. If NFS mounts are unresponsive, the operation fails.

If you are removing a host which is part of a cluster, you must put the host into maintenance mode.

image

vCenter Server then returns the status of all associated processor and migration licenses to available

View & Export events from vSphere Web Client

To see a list of all events in the system, select Monitor > Event Console from the Console Launcher.

image

To see a list of events associated with a selected inventory object and its child objects, perform the following actions:

1. Open the vCenter Management console.

2. Select an inventory object.

3. Select the Monitor tab.

4. Click Events.

image

At least I was not able to locate any filtering facility in web client. Though it mentions on pg.108 that it is available there.

How to export logs from vSphere Web Client

Switch console views to the Event Console view and click Export.

image

image

 

Working with Tasks and Events

Managing Tasks

Tasks represent system activities that do not complete immediately, such as migrating a virtual machine. They are initiated by high-level activities that you perform with the vSphere Client in real time and activities that you schedule to occur at a later time or on a recurring basis.

For example, powering off a virtual machine is a task. You can perform this task manually every evening, or you can set up a scheduled task to power off the virtual machine every evening for you.

NOTE The functionality available in the vSphere Client depends on whether the vSphere Client is connected to a vCenter Server system or an ESXi host. When the vSphere Client is connected directly to a host, the Tasks & Events tab is labeled Events.

 

image

 

image

Viewing Tasks

You can view tasks that are associated with a single object or all objects in the vSphere Client inventory. The Tasks & Events tab lists completed tasks and tasks that are currently running. By default, the tasks list for an object also includes tasks performed on its child objects. You can filter the list by removing tasks performed on child objects and by using keywords to search for tasks.

If you are logged in to a vCenter Server system that is part of a Connected Group, a column in the task list displays the name of the vCenter Server system on which the task was performed.

Filter Tasks for a Host or Datacenter

Filtering the task list removes tasks performed on child objects.

Procedure

1. Select the host or datacenter in the inventory and click the Tasks & Events tab.

2. In View, click Tasks to display the tasks list.

image

3. If the Show all entries list and the search field are not displayed under the Tasks and Events buttons, select View > Filtering.

4. Click Show all entries and select Show host entries or Show datacenter entries, depending on the object selected.

image

Use Keywords to Filter the Tasks List

You can filter the tasks list based on any task attribute, including task name, target, status, initiator, change history, and time. Filtering is inclusive, not exclusive. If the keyword is found in any of the selected columns the task is included in the filtered list.

image

Collect vSphere Log Files

Download the log bundle from vSphere Client connected to a vCenter Server system.

Select Administration > Export System Logs to download the log bundle.

image

The log bundle is generated as a .zip file. By default, the vpxd logs within the bundle are compressed as .gz files. You must use gunzip to uncompress these files.

Generate vCenter Server log bundles from a vCenter Server system

Select Start > Programs > VMware > Generate vCenter Server log bundle.

You can use this to generate vCenter Server log bundles even when you are unable to connect to the vCenter Server using the vSphere Client. The log bundle is generated as a .zip file. By default, the vpxd logs within the bundle are compressed as .gz files. You must use gunzip to uncompress these files.

image

You can turn off this setting to leave the vpxd logs uncompressed.

1. Log in to the vCenter Server using the vSphere Client.

2. Select Administration > vCenter Server Settings.

3. Select Advanced Settings.

4. In the Key text box, type log.compressOnRoll.

5. In the Value text box, type false.

6. Click Add, and click OK.

image

Collect ESXi Log Files

You can collect and package all relevant ESXi system and configuration information, a well as ESXi log files. This information can be used to analyze the problems.

Procedure

Run the following script on the ESXi Shell: /usr/bin/vm-support

The resulting file has the following format: esx-date-unique-xnumber.tgz

image

Configure Syslog on ESXi Hosts

All ESXi hosts run a syslog service (vmsyslogd), which logs messages from the VMkernel and other system components to log files. You can use the vSphere Client or the esxcli system syslog vCLI command to configure the syslog service.

Procedure

1. In the vSphere Client inventory, select the host.

2. Click the Configuration tab.

3. In the Software panel, click Advanced Settings.

4. Select Syslog in the tree control.

5. To set up logging globally, click global and make changes to the fields on the right.

image

 

image

6. (Optional) To overwrite the default log size and log rotation for any of the logs.

    a. Click loggers.

    b. Click the name of the log you that want to customize and enter the number of rotations and log size you want.

7. Click OK. Changes to the syslog options take effect immediately.

image

Export System Log Files

When the vSphere Client is connected to vCenter Server, you can select hosts from which to download system log files. To save diagnostic data for ESXi hosts and vCenter Server, the vSphere Client must be connected to the vCenter Server system. If you are connected directly to an ESXi host, you can save diagnostic data only for that specific ESXi host.

Required privileges:

· To view diagnostic data: Read-Only User

· To manage diagnostic data: Global.Licenses

Procedure

1. Select File > Export > Export System Logs.

2. If you are connected to vCenter Server, select the object for which you want to export data.

Selecting an object selects all of its child objects.

image

image

image

3. If you are connected to vCenter Server, select Include information from vCenter Server and vSphere Client to download vCenter Server and vSphere Client log files and host log files, and click Next.

4. If the selected host supports manifest driven exports of system log files, select the system log files to collect. Select the specific system log files to download. If the host does not support manifest exports of log files, all system log files are exported.

image

5. Select Gather performance data to include performance data information in the log files. Click Next. You can update the duration and interval time you want the data collected.

6. Click Next.

7. Click Browse and specify the location to which to save the log files. The host or vCenter Server generates .zip bundles containing the log files. It does generate zip file but under zip file there is tgz file generated for host based information. The Recent Tasks panel shows the Generate diagnostic bundles task in progress.

image

8. Click Next. The Downloading Log Bundles dialog box appears when the Generating Diagnostic Bundle task is finished. The download status of each bundle appears in the dialog box. Some network errors can cause download failures. When you select an individual download in the dialog box, the error message for that operation appears under the name and location of the log bundle file.

9. Verify the information in the Summary and click Finish to download the log files.

image

10. If the download fails, click Retry to attempt to download the generated bundles again. Diagnostic bundles containing log files for the specified objects are downloaded to the location specified.

image

View System Logs on an ESXi Host

You can use the direct console interface to view the system logs on an ESXi host. These logs provide information about system operational events.

Procedure

1. From the direct console, select View System Logs.

2. Press a corresponding number key to view a log.

vCenter Server agent (vpxa) logs appear if the host is managed by vCenter Server.

image

1. Press Enter or the spacebar to scroll through the messages.

2. (Optional) Perform a regular expression search.

a. Press the slash key (/).

b. Type the text to find.(it is case sensitive)

c. Press Enter

The found text is highlighted on the screen.

image

5. Press q to return to the direct console.