0:
Install, Configure, Manage
Lab Addendum
Lab 16: Using Alarms
Document Version: 2011-11-30
Please note that the sequence of the lab addenda differs slightly from the sequence of
the VMware vSphere Install, Configure, Manage 5.0 labs. This is necessary in order to
provide compatibility with NETLAB+. The labs should be performed in the order of the
lab addenda.
www.netdevgroup.com
1 Introduction ................................................................................................................ 3
2 Objective: Demonstrate the vCenter Server alarm feature ....................................... 3
3 Pod Topology .............................................................................................................. 4
Task 1 Create a virtual machine alarm that monitors for a condition ............................ 5
Task 2 Create a virtual machine alarm that monitors for an event ................................ 6
Task 3 Trigger virtual machine alarms and acknowledge them ...................................... 7
Task 4 Disable virtual machine alarms ............................................................................ 8
11/30/2011
Page 2 of 9
www.netdevgroup.com
Introduction
This addendum provides detailed guidance on performing Lab 17, Using Alarms of the
VMware vSphere 5.0 Install, Configure, Manage course, using a NETLAB+ system.
In this lab, you will be using the vclient machine to complete your objectives. You will
be performing the following tasks:
1.
2.
3.
4.
5.
11/30/2011
Page 3 of 9
11/30/2011
www.netdevgroup.com
Pod Topology
Page 4 of 9
Task 1
www.netdevgroup.com
In this task, you will create a virtual machine alarm that monitors for a specific condition.
1. Click on the vclient graphic in the topology to launch the virtual machine.
2. Double-click the vSphere Client icon.
3. At the vSphere Client login screen, set host name as vcenter-1, then enter the
username vadmin and the password, vmware123. Click Login.
4. Go to Home > Inventory > Hosts and Clusters.
Select the <your_name>-1 virtual machine in the inventory and click the Alarms
tab.
5. Click Definitions. Notice that the virtual machine inherited alarms defined at the
vCenter Server level.
6. Right-click anywhere to the right of the list of alarms and select New Alarm. The
Alarm Settings dialog box appears.
7. In the General tab, set the Alarm name to VM CPU Usage. Leave the
Description field blank. For the Alarm Type Monitor select Virtual Machine
and select Monitor for specific conditions or state, for example, CPU usage,
power state. Leave Enable this alarm selected.
Page 5 of 9
www.netdevgroup.com
Task 2
In this task, you will create an alarm that responds to a specific event.
1. Select the Training datacenter in the inventory and click the Alarms tab.
2. Click Definitions. Right-click anywhere in the empty space to the right of the list
of alarms and select New Alarm. The Alarm Settings dialog box appears.
3. In the General tab, enter the following information:
a. Set the Alarm name to VM Suspended.
b. Leave the Description field blank.
11/30/2011
Page 6 of 9
www.netdevgroup.com
c. Set the Alarm Type Monitor to Virtual Machines and select Monitor
for specific events occurring on this object, for example, VM powered
On.
d. Leave Enable this alarm selected.
4. Click the Triggers tab.
5. Click Add.
6. Double-click the trigger in the Event column to display a drop-down menu with a
list of triggers. Enter the following values:
a. Set the Event to VM suspended (near the end of the list).
b. Leave the Status set to default.
7. In the Conditions column, click the Advanced link. The Trigger Conditions dialog
box appears.
8. Click Add.
9. In the Argument column, select Change tag and select VM name from the list.
10. In the Operator column, leave equal to selected.
11. Click the area under the Value column. Type <your_name>-1 as the virtual
machine name. The virtual machine name is case-sensitive.
Task 3
In this task, you will trigger both alarms, view the triggered alarms, and acknowledge
each alarm.
1. Select the <your-name>-1 virtual machine in the inventory and click the Alarms
tab. Click the Triggered Alarms button. Triggered alarms are displayed in this
pane.
2. In the inventory, right-click the <your_name>-1 virtual machine and select Open
Console. Position the virtual machine console so that you can see both the
console and the Triggered Alarms pane at the same time.
3. On the virtual machines desktop, right-click cpubusy.vbs and select Open with
Command Prompt. This action starts one instance of cpubusy.vbs. Wait at least
11/30/2011
Page 7 of 9
www.netdevgroup.com
Task 4
In this task, you will disable your VM Suspended alarm and your VM CPU Usage alarm.
1. Disable your VM suspended alarm:
a. Select the Training datacenter in the inventory and click the Alarms tab.
b. Click Definitions.
c. Locate your VM Suspended alarm in the list and right-click it. Select Edit
Settings.
d. In the General tab, deselect the Enable this alarm check box and click OK.
2. Disable your VM CPU Usage alarm:
a. Select your <your_name>-1 virtual machine in the inventory and click the
Alarms tab.
b. Click Definitions.
11/30/2011
Page 8 of 9
www.netdevgroup.com
11/30/2011
Page 9 of 9