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
.
Содержание 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 ...