Download Print this page

Extreme Networks EPICenter Reference Manual page 123

Hide thumbs Also See for EPICenter:

Advertisement

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
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
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
Varbinds in a Command String" on page 123
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.
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 <
> is the batch file you want to run.
file.bat
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
etc. You do not need to include all the variables, and they can be in any order. You can insert
$trap(0)
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
extremeEapsSecondaryStatus
EPICenter Reference Guide
shows a command taking the
as arguments.
The Alarm Definition Window
for a definition of the Alarm System
for details on using trap varbinds in a command.
followed by the varbind index: e.g.
$trap
extremeEapsPrimaryStatus
"Running a
"Using Trap
and
123

Advertisement

loading
Need help?

Need help?

Do you have a question about the EPICenter and is the answer not in the manual?

This manual is also suitable for:

Epicenter 6.0