User guide
ExtremeWare EPICenter Software Installation and User Guide 5-39
Writing Tcl Scripts for Alarm Actions
For example,if the IP address of the EPICenter serveris 10.0.4.1,youwouldcalculate
the decimal equivalent by doing the following:
a Convert each quad of the IP address to its hex equivalent:
b Convert the hex value
a000401 into a decimal value, in this case 167773185
c Put the three components together to form the community string:
ST.167773185.10550
You canfind and verify thevalueof the community stringby usingTelnettolog intoan
ExtremeNetworksdevicethatisbeingmanagedbyExtremeWareEPICenter,andusing
the ExtremeWare CLI command
show management to display the list of trap receivers
configured for that device. The EPICenter server, and its community string, should be
included in this list.
To receive RMON traps, you need to ensure that RMON is enabled on the device. For
Extremedevices,youcandothisthroughtheExtremeWareCLIwiththecommand
enable
rmon
.
Writing Tcl Scripts for Alarm Actions
An EPICenter alarm can call a Tcl function as an alarm action. This Tcl function can be a
user-defined Tcl script that is executed in the EPICenter server.
There is an example script in the
<epicenter_install_dir>/user/alarms directory
called
example.tcl that you can use as a guide to writing a Tcl function for an alarm
action.
Youcan accessthe EPICenteralarmvariablesforuseinyourscript,asdemonstratedinthe
example script. These variables are defined in Table 5-1 on page 5-12.
The Tcl Scripting Environment
Thescripting environment for alarm actions is a fully operational Tcl environment. In this
environment, a Tcl actionscript can save states across multiple alarms using global
Decimal Hex
10 a
0 00
4 04
1 01