Remove Alarm Actions
Removing an alarm action stops the action from occurring. It does not stop the alarm itself.
Remove an alarm action if you are certain you will not use again. If you are not sure, disable the alarm action
instead.
Required privilege: Alarm.Remove Alarm
Procedure
1
Display the object in the inventory on which the alarm is defined.
2
Select the object and click the Alarms tab.
3
Click Definitions.
4
Right-click the alarm and select Edit Settings from the context menu.
If the Edit Settings option is not available, the object you selected is not the owner of the alarm. To open
the correct object, click the object link in the Defined In column for the alarm. Then repeat this step.
5
In the Alarm Settings dialog box, click the Actions tab.
6
Select the action and click Remove.
7
Click OK.
Run a Command as an Alarm Action
You can run a script when an alarm triggers by configuring a command alarm action.
Required privilege: Alarm.Modify Alarm
N
OTE
Alarm commands run in other processes and do not block vCenter Server from running. They do,
however, consume server resources such as processor and memory.This procedure assumes you are adding
the alarm action to an existing alarm.
This procedure assumes you are adding the alarm action to an existing alarm.
Procedure
1
If necessary, open the Alarm Settings dialog box.
a
Select the object in the inventory on which the alarm is set.
b
Click the Alarms tab.
c
Click Definitions.
d
Double-click the alarm in the list.
2
Click the Actions tab.
3
Click Add.
4
Double-click the default action and select Run a command.
5
Double-click the Configuration field and do one of the following, depending on the command file type:
n
If the command is a
.exe
file, enter the full pathname of the command. For example, to run the
cmd.exe
command in the
C:\tools
directory, type:
c:\tools\cmd.exe
.
n
If the command is a
.bat
file, enter the full pathname of the command as an argument to the
c:\windows\system32\cmd.exe
command. For example, to run the
cmd.bat
command in the
C:\tools
directory, type:
c:\windows\system32\cmd.exe /c c:\tools\cmd.bat
.
Chapter 21 Working with Alarms
VMware, Inc.
257
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...