In this lab, I am going to discuss how to system monitoring tools reflect CPU workload
The tasks list for the lab 19:
- Create CPU Activity
- Use vSphere web Client to Monitor CPU Utilisation
- Undo Change Made to the Virtual Machines
- Log in the VMware vSphere web client portal: https://vCenter Server Appliance Name.domainname:9443/vshpere-client/# or VMware vSphere Client via root user and password.
Steps for the task: Create CPU Activity
In this task, I am going to run a CPU busy scripts in each of the VMs for creating a heavy CPU load.
Step 1: Go to the Home -> vCenter ->VMs and Templates. Power On each of your VMs and Open it through console or VMRC. Log in as an Administrator user.
Step 2: Run the CPU busy script “cpubusy.vbs”. Right-click on it and select “Open with Command Prompt”
Steps for the task: Use vSphere Web Client to Monitor CPU Utilisation
In this task, I am going to show how to monitor CPU, memory, disk, Network, and Storage resources and how to use Resources metrics to follow up the performance by using performance charts
Step 1: Click your first VM in the inventory Note: Be sure that cpubusy.vbs script is running on that virtual machine.
Click the Monitor -> Performance tab. You will see “Overview view is displayed by default”
When I clicked on Performace tab, I got “Overview” view by default.
Step 2: Click”Advanced” tab. You will see that Advanced tab is showing by default CPU usage in real time statistics.
Step 3: On the screen, You can see “Performace chart Legend” tab. Click on ” The name of VM”. The Chart Options link will be activated. Note: You need to unpin the right column to make the like visible if you can not see it yet.
Click on Chart Options link:
Step 4: The customise Performance Chart dialogue Wizard has appeared.
Select CPU. Select “Rea-time” from the “TimeSpan” drop-down menu. In the target object box: Deselect the check box with your Virtual Machine’s Name.
In the CounterPane: Click “None” to deselected counters. Only Select “Ready and Used”
Only Select “Ready and Used” counters. Then “OK”
The Chart is displayed with graphical manner. You can now measure the real Time Performance of your VM CPU.
Step 5: Repeat the Step 4 for the rest of the VMs. Compare the CPU busy “Ready” and “used ” chart performance with each other VMs.
Note: Performace chart update automatically every 20 seconds
Press Ctrl+C to stop the “cpubusy.vbs” in each VM after complete performance chart task.
Steps for the task: Undo Change Made to the Virtual Machines
Now I will show how to undo the change that happened to the VMs after performing the previous tasks. And I will delete the Scheduling affinity value from CPU setting that we put in previous labs.
Step 1: Close the CPU Performance Chart Options Web Browser window for each VMs
Close the VM Console for each VMs
Step 2: Right Click on VM, Select “Edit Setting”
In the Virtual Hardware, Click “CPU” and expand it. Delete the “1” from the text box in the Scheduling Affinity. Then Ok
Step 3: Repeat the Step 2 for the rest of the VMs in your environment.
Thank you 🙂