User's Manual

NOTE: With the HP Serviceguard A.11.20 release, application monitoring is now supported
for VM guests that use online VM guest migration. It is not supported with the HP Serviceguard
A.11.19. To support online VM guest migration, all service command strings sent to the VM
guest must be unique. This means, if two instances of the same application are started and
monitored in the VM guest using cmappmgr, the service strings must be different, even if a
space needs to be added to one of them.
6. Test application monitoring and VM guest failover operation.
After VM guest application monitoring is configured, you must test application restart and VM
guest failover by terminating the monitored application on the VM guest and verifying:
The SERVICE_RESTART counter for the cmappmgr SERVICE_CMD used to monitor the
application increases.
The VM guest fails over to a standby VM Host node after the SERVICE_RESTART value
exceeds.
Example of Configuring application monitoring service
# cmdeployvpkg -P slvm1 -x merge -x appmon
This is the HP Serviceguard Toolkit for Integrity Virtual Servers package creation script.
This script assists you to create and manage HP Serviceguard package configurations for VM guest and associated
toolkit configuration files.
HP recommends that you review and modify the configuration file created by this script, as needed, for your
particular environment.
Do you wish to continue? (y/n):y
[Virtual Machine Details]
Virtual Machine Name VM # OS Type State
==================== ===== ======= ========
slvm1 8 HPUX On (OS)
[Storage Interface Details]
Guest Physical
Device Adaptor Bus Dev Ftn Tgt Lun Storage Device
======= ========== === === === === === ========= =========================
disk scsi 0 2 0 2 0 disk /dev/rdisk/disk109
[Network Interface Details]
Interface Adaptor Name/Num PortNum Bus Dev Ftn Mac Address
========= ========== ========== ======= === === === =================
vswitch lan localnet 2 0 0 0 0a-49-5b-35-75-27
vswitch lan myswitch 1 0 1 0 f2-54-d5-3b-fd-c7
Modify the packaged Virtual Machine Summarized above? (y/n):y
Checking the virtual machine and cluster configuration
Configure an application monitor service? (y/n):y
Enter the name for this application monitor name [appmon0]:ping_mon
You have entered: ping_mon
Hit return to confirm your entry:
Enter the command line of the run command on the guest[]:/apps/ping_mon
You have entered: /apps/ping_mon
Hit return to confirm this entry:
Enter the number of seconds to elapse before timeout. [10]:
You have entered: 10
Hit return to confirm this entry:
Enter the number of time the application monitor should restart [none]:
You have entered: none
Hit return to confirm this entry:
Enter the number of seconds to wait before terminating the application monitor [300]:
You have entered: 300
Hit return to confirm this entry:
22 Configuring guest application monitoring service