To add a trap variable to a macro, you:
1 Place the cursor in your macro where the variable should go
2 Select $trap from the system variable list,
3 Click Enter to insert the variable
4 Add the correct varbind index (in parentheses).
You can determine the correct index by looking at the Actions tab in the Alarm Definition for the alarm
that will execute this macro -- the Details>> button will display the varbinds and indices associated
with the trap event specified for the alarm. See
When you have finished creating or editing your macro and saved it, you will be able to select it in to
use as an action for the alarm associated with the trap.
Figure 103: Specifying trap varbinds in a Telnet macro
Because the variables may return values in a form that is not usable in a CLI command, two functions
are provided to convert values to CLI-readable formats. These are:
— converts a port IfIndex to the slot:port format
●
$ToCliPort()
— converts a VLANID to a VLAN name.
●
$ToCliVlanName()
For example, for the trap
as the second varbind (index=1).
EPICenter Reference Guide
"Defining Alarm Actions" on page
extremeEdpNeighborAdded
, the variable
extremeEdpPortIfIndex
The Macro Editor
121.
is returned
213
Need help?
Do you have a question about the EPICenter and is the answer not in the manual?