The Alarm Definition Window
EPICenter Reference Guide
123
Running a Program as an Alarm Action under Windows
On a Windows 2003 or Windows XP system, if you are running the EPICenter server as a service, and if
you want to run a program that does output to the desktop, you must specify that output to the
desktop is allowed when you start the server service. Otherwise, the program will not run. See the
Alarm System section in Appendix A of the EPICenter Concepts and Solutions Guide for instructions
on restarting the EPICenter server service with this option enabled. If you are running the EPICenter
server as a regular program, this is not a problem.
If you want to specify a batch file that does output to the desktop, you must specify the “.bat” file
within a DOS “cmd” command, as follows:
cmd /c start <
file.bat
>
where <
file.bat
> is the batch file you want to run.
Using Trap Varbinds in a Command String
If the event that defines this alarm is an SNMP trap that includes varbinds, you can use the varbinds as
arguments in a command string you run as an alarm action. EPICenter will substitute the value of the
variables from the trap into the command string.
In the
Basic
tab of the Alarm Definition window, the Event Type must be set to SNMP Trap, and the
selected trap event (Event Name) must be one that includes variables.
In the
Actions
tab, clicking
Details>>
shows the list of variables associated with the trap event, and
their indexes.
You specify the variable by including the trap variable
$trap
followed by the varbind index: e.g.
$trap(0)
etc. You do not need to include all the variables, and they can be in any order. You can insert
the $trap variable by selecting from the list of system variables displayed when you click the Variables...
button; however, you must still add the index, enclosed in parentheses.
The example in
Figure 53
shows a command taking the
extremeEapsPrimaryStatus
and
extremeEapsSecondaryStatus
as arguments.
Run program
Click the check box to specify a program that should be run when this alarm occurs. Enter the
command string for the program in the field provided. To include Alarm System variables as
arguments in the command string, click the
Variables...
button and select the variables you want
to include.
You can also include trap varbinds as arguments in the command string, if the SNMP event that
triggers this alarm provides varbinds.
Note:
If you are running EPICenter on a Windows XP or Windows 2003 system, see
“Running a
Program as an Alarm Action under Windows” on page 123
Variables...
Click this to display a list of the variables you can select for inclusion as arguments in the
command string of the program you have specified in the Run program field.
See
Table 10
“EPICenter Alarm Variables” on page 118
for a definition of the Alarm System
variables you can use in the message field.
Details>>
Click this to display a list of variable bindings (varbinds) associated with the event that defines
this alarm. You can use these varbinds as arguments in a command string. See
“Using Trap
Varbinds in a Command String” on page 123
for details on using trap varbinds in a command.
You can also use trap varbinds in Telnet Macros.
This button is not available if the event configured for this alarm is not an SNMP trap, or if the
specific SNMP trap does not include variable bindings.
Содержание EPICenter 6.0
Страница 14: ...EPICenter Reference Guide 14 ...
Страница 18: ...Preface EPICenter Reference Guide 18 ...
Страница 19: ...1 EPICenter Basic Features ...
Страница 20: ......
Страница 24: ...EPICenter Overview EPICenter Reference Guide 24 ...
Страница 44: ...Getting Started with EPICenter EPICenter Reference Guide 44 ...
Страница 100: ...The Inventory Manager EPICenter Reference Guide 100 ...
Страница 140: ...The EPICenter Alarm System EPICenter Reference Guide 140 ...
Страница 172: ...Configuration Manager EPICenter Reference Guide 172 ...
Страница 196: ...The Firmware Manager EPICenter Reference Guide 196 ...
Страница 220: ...The Interactive Telnet Feature EPICenter Reference Guide 220 ...
Страница 250: ...The Grouping Manager EPICenter Reference Guide 250 ...
Страница 276: ...Real Time Statistics EPICenter Reference Guide 276 ...
Страница 295: ...The New Menu EPICenter Reference Guide 295 Figure 137 Example of a default layout for a 500 node map ...
Страница 342: ...Using the VLAN Manager EPICenter Reference Guide 342 ...
Страница 348: ...The ESRP Monitor EPICenter Reference Guide 348 ...
Страница 446: ...EPICenter Reports EPICenter Reference Guide 446 ...
Страница 447: ...2 Advanced Upgrade Features ...
Страница 448: ......
Страница 480: ...EAPS Protocol Monitoring and Verification EPICenter Reference Guide 480 ...
Страница 508: ...Using the Policy Manager EPICenter Reference Guide 508 ...
Страница 525: ...3 Appendices ...
Страница 526: ......
Страница 542: ...EPICenter Backup EPICenter Reference Guide 542 ...
Страница 564: ...Voice over IP Manager EPICenter Reference Guide 564 ...
Страница 580: ...EPICenter Reference Guide 580 ...