Monitor ESXi, vCenter Server, and Virtual Machines
For this objective I used the following resources:
- vCenter Server and Host Management documentation
- vSphere Monitoring and Performance documentation
- VMworld 2010 session TA6720, Troubleshooting using ESXTOP for Advanced Users
- VMware Communities Document DOC-9279, Interpreting esxtop Statistics
- Duncan Epping’s Blog on esxtop
Knowledge
Describe how Tasks and Events are viewed in vCenter Server
View All Tasks
- Display the object in the inventory
- Display the tasks for a single object or the entire vCenter Server
- To display the tasks for an object, select the object
- To display the tasts in the vCenter Server, select the root folder
- Click the Tasks & Events tab
- (Optional) To view detailed information for a task, select the task in the list
View Events
- Select the inventory object and click the Tasks & Events tab
- Click Events
- (Optional) Select an event in the list to see the Event Details, including a list of related events and errors in the error stack
- (Optional) Click the icon next to Description to view further details and possible causes of the event
For further information on both viewing events and tasks see pages 101 thru 110 of the vCenter Server and Host Management documentation
Identify critical performance metrics
As you will see listed in the sections below, the critical points to monitor are CPU, memory, networking, and storage.
Explain common memory metrics
Metric | Description |
SWR/s and SWW/s | Measured in megabyts, these counters represent the rate at which the ESXi host is swapping memory in from disk (SWR/s) and swapping memory out to disk (SWW/s) |
SWCUR | This is the amount of swap space currently used by the virtual machine |
SWTGT | This is the amount of swap space that the host expects the virtual machine to use |
MCTL? | Indicates whether the balloon driver is installed in the virtual machine |
MCTLSZ | Amount of physical memory that the balloon driver has reclaimed |
MCTLTGT | Maximum amount of memory that the host wants to reclaim via the balloon driver |
Explain common CPU metrics
Metric | Description |
%USED | Percentage of physical CPU time used by a group of worlds |
%RDY | Percentage of time a group was ready to run but was not provided CPU resources |
%CSTP | Percentage of time the vCPUs of a virtual machine spent in the co-stopped state, waiting to be co-started |
%SYS | Percentage of time spent in the ESX VMkernel on behalf of the world/resource pool |
Explain common network metrics
Metric | Description |
MbTX/s | Amount of data transmitted in Mbps |
MbRX/s | Amount of date received in Mbps |
%DRPTX | Percentage of outbound packets dropped |
%DRPRX | Percentage of inbound packets dropped |
Explain common storage metrics
Metric | Description |
DAVG | Average amount of time it takes a device to service a single I/O request (read or write) |
KAVG | The average amount of time it takes the VMkernel to service a disk operation |
GAVG | The total latency seen from the virtual machine when performing an I/O request |
ABRTS/s | Number of commands aborted per second |
For further information and deeper explanation of these and other metrics to monitor read VMware Communities document Interpreting esxtop Statisics as well as Duncan Epping’s esxtopblog post
Compare and contrast Overview and Advanced Charts
- Overview Charts – Display multiple data sets in one panel to easily evaluate different resource statistics, display thumbnail charts for child objects, and display charts for a parent and a child object
- Advanced Charts – Display more information than overview charts, are configurable, and can be printed or exported to a spreadsheet
Configure SNMP for vCenter Server
- If necessary, select Administration -> vCenter Server Settings to display the vCenter Server Settings dialog box
- If the vCenter Server system is part of a connected group, select the server you want to configure from the Current vCenter Server drop-down menu
- In the settings list, select SNMP
- In Receiver URL, enter the host name or IP address of the SNMP receiver
- In the field next to the Receiver URL field, enter the port number of the receiver
- In Community, enter the community identifier
- Click OK
See page 37 of the vCenter Server and Host Management documentation for further information
Configure Active Directory and SMTP settings for vCenter Server
Configure Active Directory
- If necessary, select Administration -> vCenter Server Settings to display the vCenter Server Settings dialog box
- If the vCenter Server system is part of a connected group, select the server you want to configure from the Current vCenter Server drop-down menu
- In the navigation pane, select Active Directory
- In Active Directory Timeout, enter the timeout interval in seconds for connecting to the Active Directory server
- Select Enable Query Limit to limit the number of users and groups displayed in the Add Permissions dialog box
- In Users & Groups, enter the maximum number of users and groups to display
- Select Enable Validation to have vCenter Server periodically check its known users and groups against the Active Directory server
- In Validation Period, enter the number of minutes between instances of synchronization
- Click OK to save your changes and close the dialog box
See page 36 of the vCenter Server and Host Management documentation for further information
Configure SMTP Settings
- If necessary, select Administration -> vCenter Server Settings to display the vCenter Server Settings dialog box
- If the vCenter Server system is part of a connected group, select the server you want to configure from the Current vCenter Server drop-down menu
- In the navigation pane, select Mail
- Enter the SMTP server infromation
- Enter the sender account information
- Click OK
See page 36 thru 37 of the vCenter Server and Host Management documentation for further information
Configure vCenter Server logging options
- If necessary, select Administration -> vCenter Server Settings to display the vCenter Server Settings dialog box
- If the vCenter Server system is part of a connected group, select the server you want to configure from the Current vCenter Server drop-down menu
- In the settings list, select Logging Options
- From the vCenter Server Logging list select logging options (see chart below)
- Click OK
Option | Description |
None (Disable Logging) | Turn off logging |
Error (Errors Only) | Display only error log entries |
Warning (Errors and warnings) | Display warning and error log entries |
Info (Normal logging) | Displays information, error, and warning log entries |
Verbose (Verbose) | Displays information, error, warning, and verbose log entries |
Trivia (Extended verbose) | Displays information, error, warning, verbose, and trivia log entries |
See page 37 thru 38 of the vCenter Server and Host Management documentation for further information
Create a log bundle
- Select File -> Export System Logs
- If you are connected to vCenter Server, select the object for which you want to export data
- 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
- If the selected host supports manifest drive exports of system log files, select the system log files to collect. Select the specific system log files to download
- Select Gather performance data to include performance data information in the log files. Click Next
- Click Next
- Click Browse and specify the location to which to save the log files
- Click Next
- Verify the information in the Summary and click Finish to download the log files
- If the download fails, click Retry to attempt to download the generated bundles again
See page 97 of the vCenter Server and Host Management documentation for further information
Create/Edit/Delete a Scheduled Task
Create a Scheduled Task
- In the navigation bar, click Home -> Management -> Schedule Tasks
- In the toolbar, click New
- In the Select a Task to Schedule dialog box, select a task and click OK to open the wizard for that task
- Complete the wizard that opens for the task
- Click OK to open the Scheduled Task wizard
- Enter a task name and task description and click Next
- Select a Frequency and specify a Start Time
- Click Next
- Set up email notifications and click Next
- Click Finish
Remove a Scheduled Task
- In the vSphere Client navigation bar, click Home -> Management -> Scheduled Tasks
- Select the task
- Select Inventory -> Scheduled Task -> Remove
- Click OK
Edit a Scheduled Task
- In the vSphere Client navigation bar, click Home -> Management -> Scheduled Tasks
- Select the task
- In the toolbar, click Properties
- Change task attributes as necessary
- Click Next to advance through the wizard
- Click Finish
See pages 101 thru 106 of the vCenter Server and Host Management documentation for further information
Configure/View/Print/Export resource maps
View vCenter Maps
- Display the object in the inventory
- Select the object and click the Maps tab
Print vCenter Maps
- Select File -> Print Maps -> Print
- In the printer Name list, select the printer
- Click Print
Export vCenter Maps
- If necessary, view the resource map
- Select File -> Export -> Export Maps
- Navigate to the location to save the file
- Type a name for the file and select a file format
- Click Export
See pages 143 thru 146 of the vCenter Server and Host Management documentation for further information
Start/Stop/Verify vCenter Server service status
Start vCenter Server service
- Go to the Services console for your version of Windows
- Right-click the vCenter Server service and select Properties
- In the VMware vCenter Server Services Properties dialog box, click the General tab and view the service status
Restart vCenter Server service
- Got to the Services console for your version of Windows
- Right-click VMware vCenter Server, select Start, and wait for the startup to complete
- Close the Properties dialog box
Stop vCenter Server service
- Go to the Services console for your version of Windows
- Click VMware vCenter Server Service
- Right-click VMware vCenter Server, select Stop, and wait for it to stop
- Close the Properties dialog box
See page 112 of the vCenter Server and Host Management documentation for further information
Start/Stop/Verify ESXi host agent status
- Shut down all virtual machines running on the ESXi host
- Select the ESXi host you want to shut down
- From the main or right-click menu, select Reboot or Shut Down
- Provide a reason for the shut down
See page 111 of the vCenter Server and Host Management documentation for further information
Configure vCenter Server timeout settings
- If necessary, select Administration -> vCenter Server Settings to display the vCenter Server Settings dialog box
- If the vCenter Server system is part of a connected group, select the server you want to configure from the Current vCenter Server drop-down menu
- In the settings list, select Timeout Settings
- In Normal Operations, enter the timeout interval in seconds for normal operations
- In Long Operations, enter the tiemout interval in minutes for long operations
- Click OK
- Restart the vCenter Serve system for the changes to take effect
See page 38 of the vCenter Server and Host Management documentation for further information
Monitor/Administer vCenter Server connections
View Active Sessions
- From the Home page of a vSphere Client connected to a vCenter Server system, click the Sessions button
Terminate Active Sessions
- On the Home page of a vSPhere Client connected to a vCenter Server system, click the Sessions button
- Right-click a session and select Terminate
- Click OK to confirm the termination
Send a Message to All Active Users
- On the Home page of a vSphere Client connected to a vCenter Server system, click the Sessions button
- Type a message in the Message of the day field
- Click Change
See page 28 thru 29 of the vCenter Server and Host Management documentation for further information
Create an Advanced Chart
- Select an inventory object and click the Performance tab
- Click Advanced
- Click Chart Options
- Select a metric group for the chart
- Select a time range for the metric group
- Select the chart type
- In Objects, select the inventory objects to display in the chart
- In Counters, select the data counters to display in the chart
- Click Apply
- Click OK
See page 14 of the vSphere Monitoring and Performance documentation for further information
Determine host performance using resxtop and guest Perfmon
Given performance data, identify the affected vSphere resource
These two topics could easily fill pages of information. For quick and easy knowledge refer to the sections above outlining the more significant performance metrics to monitor. Read chapter 7 of the vSphere Monitoring and Performance documentation as well as Duncan Epping’s esxtop blog and the VMware Communities document “Interpreting esxtop Statistics”. One final note, if you don’t have one already create a VMworld account and view “Troubleshooting using ESXTOP for Advanced Users”, session TA6720 from VMworld 2010 (free for anyone to view).
No comments:
Post a Comment