The Macro Player
EPICenter Reference Guide
203
NOTE
Macro play will be automatically stopped if you exit the Telnet feature (by selecting another feature or logging out)
while a macro is running.
Using Variables in a Macro
You can embed both system variables and user-defined variables, if available, in your macro. EPICenter
provides eight system variables you can use, shown in
Table 17
on page 211
. (There are actually nine
variables in the table, but a trap varbind variable should
not
be used in a macro being executed from
within the Macro Player).
If you load a macro that includes user-defined variables, you can also use those variables in the Macro
Player. When the macro runs, EPICenter prompts for the values of the user-defined variables.
NOTE
User-defined variables that you create during a Macro Editor session, or that are loaded with a saved macro, are
available in the Macro Player until you exit EPICenter (logoff and quit). If you load a different macro, the user-
defined variables saved with that macro will become available, and the variables defined in the previously-loaded
macro disappear.
To place a variable in your macro:
1
Click to place the cursor in your macro at the point where you want the variable to appear.
2
Click the
Vars
button to display the
System >
or
User-defined >
menus.
3
Click to select the variable you want from one of the two sub-menus.
The variable is inserted into your macro.
These variables can be used only in macros, not in an interactive Telnet session.
The following is an example of a macro using system variables:
upload config $deviceIP extreme/$deviceName.cfg
When the macro runs, EPICenter substitutes the actual IP address and name of the switch on which the
macro is running, in place of the two system variables. If you execute this macro on a switch named
“Ajax” with IP address 10.205.4.36, after variable substitution the command will become:
upload config 10.205.4.36 extreme/Ajax.cfg
An example of a command with user-defined variables might look like the following:
create vlan $vlanname
where
$vlanname
was previously defined in the Macro Editor. When this macro runs, EPICenter pops
up a dialog box requesting input of a value for all user-defined variables in the macro. You define the
prompt that appears for each variable when you create the variable in the Macro Editor.
Figure 95
shows an example of the variable input request dialog.
Содержание 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 ...