Table 21-21.
Alarm Environment Variables (Continued)
Variable Name
Variable Description
Supported Alarm
Type
VMWARE_ALARM_TARGET_NAME
Name of the entity on which the
alarm triggered.
Condition, State,
Event
VMWARE_ALARM_TARGET_ID
MOID of the entity on which the
alarm triggered.
Condition, State,
Event
VMWARE_ALARM_OLDSTATUS
Old status of the alarm.
Condition, State,
Event
VMWARE_ALARM_NEWSTATUS
New status of the alarm.
Condition, State,
Event
VMWARE_ALARM_TRIGGERINGSUMMARY
Multiline summary of the alarm.
Condition, State,
Event
VMWARE_ALARM_DECLARINGSUMMARY
Single-line declaration of the alarm
expression.
Condition, State,
Event
VMWARE_ALARM_ALARMVALUE
Value that triggered the alarm.
Condition, State
VMWARE_ALARM_EVENTDESCRIPTION
Description text of the alarm status
change event.
Condition, State
VMWARE_ALARM_EVENTDESCRIPTION
Description of the event that
triggered the alarm.
Event
VMWARE_ALARM_EVENT_USERNAME
User name associated with the event. Event
VMWARE_ALARM_EVENT_DATACENTER
Name of the datacenter in which the
event occurred.
Event
VMWARE_ALARM_EVENT_COMPUTERESOURCE
Name of the cluster or resource pool
in which the event occurred.
Event
VMWARE_ALARM_EVENT_HOST
Name of the host on which the event
occurred.
Event
VMWARE_ALARM_EVENT_VM
Name of the virtual machine on
which the event occurred.
Event
VMWARE_ALARM_EVENT_NETWORK
Name of the network on which the
event occurred.
Event
VMWARE_ALARM_EVENT_DATASTORE
Name of the datastore on which the
event occurred.
Event
VMWARE_ALARM_EVENT_DVS
Name of the vNetwork Distributed
Switch on which the event occurred.
Event
Alarm Command-Line Parameters
VMware provides command-line parameters that function as a substitute for the default alarm environment
variables. You can use these parameters when running a script as an alarm action for a condition, state, or
event alarm.
The command-line parameters enable you to pass alarm information without having to change an alarm script.
For example, use these parameters when you have an external program for which you do not have the source.
You can pass in the necessary data by using the substitution parameters, which take precedence over the
environment variables. You pass the parameters through the vSphere Client Alarm Actions Configuration
dialog box or on a command line.
Table 21-22
lists the command-line substitution parameters for scripts that run as alarm actions.
Chapter 21 Working with Alarms
VMware, Inc.
247
Summary of Contents for 4817V62 - vSphere - PC
Page 13: ...Getting Started VMware Inc 13...
Page 14: ...vSphere Basic System Administration 14 VMware Inc...
Page 24: ...vSphere Basic System Administration 24 VMware Inc...
Page 38: ...vSphere Basic System Administration 38 VMware Inc...
Page 76: ...vSphere Basic System Administration 76 VMware Inc...
Page 85: ...Virtual Machine Management VMware Inc 85...
Page 86: ...vSphere Basic System Administration 86 VMware Inc...
Page 98: ...vSphere Basic System Administration 98 VMware Inc...
Page 131: ...3 Click OK Chapter 11 Creating Virtual Machines VMware Inc 131...
Page 132: ...vSphere Basic System Administration 132 VMware Inc...
Page 140: ...vSphere Basic System Administration 140 VMware Inc...
Page 172: ...vSphere Basic System Administration 172 VMware Inc...
Page 182: ...vSphere Basic System Administration 182 VMware Inc...
Page 200: ...vSphere Basic System Administration 200 VMware Inc...
Page 207: ...System Administration VMware Inc 207...
Page 208: ...vSphere Basic System Administration 208 VMware Inc...
Page 278: ...vSphere Basic System Administration 278 VMware Inc...
Page 289: ...Appendixes VMware Inc 289...
Page 290: ...vSphere Basic System Administration 290 VMware Inc...
Page 324: ...vSphere Basic System Administration 324 VMware Inc...
Page 364: ...vSphere Basic System Administration 364 VMware Inc...