The Macro Editor
EPICenter Reference Guide
211
●
To use a variable in a macro, select the variable and click
Insert
in the menu of commands at the
right. The selected variable is inserted at the insertion point in the script.
●
To modify the name or description (prompt) of a variable, click
Modify
in the menu of commands.
The Modify Variable dialog is almost identical to the New Variable dialog, except that the current
name and Description are shown in the appropriate fields.
●
To delete a variable, select the variable and click
Delete.
NOTE
User-defined variables are saved with the macro, and are valid only for the macro in which they were created. They
are not shared across macros.
System Variables
System variables are predefined variables available for inclusion in a macro. They are expanded
automatically based on the scope of where the macro is executed.
You cannot modify or delete the system variables.
To use a system variable in a macro, click the
System Variables
tab in the lower part of the Macro
Editor view, then just select the variable and click
Insert
at the right of the System Variables space. The
selected variable is inserted at the insertion point in the script.
The Execution Context
The execution context determines when a Telnet macro will be available in other EPICenter features,
based on the element selected in the Component Tree. For example, a macro with Device Group context
will appear in the
Macros
submenu of the EPICenter
Tools
menu, and in the right-click pop-up menu
when a Device Group node is selected in the Component Tree. A macro with Device Group context will
be executed on all devices in the Device Group.
Table 17: System Variables for use in Telnet Macros
Variable
Short Description
Description
$deviceName
Device Name
The name of the device on which the macro is running
$deviceIP
Device IP Address
The IP address of the device on which the macro is running
$port
Port Index
The port on which a port macro is running
$serverName
Server Name
The name of the EPICenter server
$serverIP
Server IP Address
The IP address of the EPICenter server
$serverPort
Server Port
The EPICenter server port
$date
Server Date
The current date from the EPICenter server
$time
Server Time
The current time from the EPICenter server
$trap
Trap varbind
A trap varbind. Must be followed by the variable index in parentheses.
Should be used ONLY in macros that are to be executed as alarm
actions. See
“Using Trap Varbinds in Telnet Macros” on page 212
.
Summary of Contents for EPICenter 6.0
Page 14: ...EPICenter Reference Guide 14 ...
Page 18: ...Preface EPICenter Reference Guide 18 ...
Page 19: ...1 EPICenter Basic Features ...
Page 20: ......
Page 24: ...EPICenter Overview EPICenter Reference Guide 24 ...
Page 44: ...Getting Started with EPICenter EPICenter Reference Guide 44 ...
Page 100: ...The Inventory Manager EPICenter Reference Guide 100 ...
Page 140: ...The EPICenter Alarm System EPICenter Reference Guide 140 ...
Page 172: ...Configuration Manager EPICenter Reference Guide 172 ...
Page 196: ...The Firmware Manager EPICenter Reference Guide 196 ...
Page 220: ...The Interactive Telnet Feature EPICenter Reference Guide 220 ...
Page 250: ...The Grouping Manager EPICenter Reference Guide 250 ...
Page 276: ...Real Time Statistics EPICenter Reference Guide 276 ...
Page 342: ...Using the VLAN Manager EPICenter Reference Guide 342 ...
Page 348: ...The ESRP Monitor EPICenter Reference Guide 348 ...
Page 446: ...EPICenter Reports EPICenter Reference Guide 446 ...
Page 447: ...2 Advanced Upgrade Features ...
Page 448: ......
Page 480: ...EAPS Protocol Monitoring and Verification EPICenter Reference Guide 480 ...
Page 508: ...Using the Policy Manager EPICenter Reference Guide 508 ...
Page 525: ...3 Appendices ...
Page 526: ......
Page 542: ...EPICenter Backup EPICenter Reference Guide 542 ...
Page 564: ...Voice over IP Manager EPICenter Reference Guide 564 ...
Page 580: ...EPICenter Reference Guide 580 ...