The Macro Editor
EPICenter Reference Guide
215
The contents of the XML file must follow the format defined in
Table 18
.
Figure 104
shows an example
of a macro file.
Figure 104: A Sample Macro File
<?xml version="1.0" encoding="utf-8" ?>
<Macros>
<Macro name="macro1" description="This macro does 3 show commands">
<contents>
show sw
show $var1
show log
</contents>
<variable varname="var1" description="Please enter a show command type"/>
<role roleid="1"/>
<context type="devicegroup"/>
</Macro>
<Macro name="macro2" description="This macro does a Show Log">
<contents>
show log
</contents>
<role roleid="2"/>
<context type="device"/>
</Macro>
<Macro name="macro3" description="This macro does a user-specified show command">
<contents>
show $var3
</contents>
<variable varname="var3" description="3: Please enter a show command type"/>
<role roleid="3"/>
<context type="port"/>
</Macro>
</Macros>
The following table defines the elements you can use in the SML file to define a Telnet Macro:
Table 18: Macro Element Definitions
<Macros> </Macros>
Statement that defines the Macro file
<Macro ... > </Macro>
Statement that defines a macro
name=
Name of the Macro
description=
Description associated with the macro (appears in the Description field in
the Macro Editor)
<contents> </contents>
The contents of the macro (appears as the source in the Macro Editor or
Macro Player)
<variable ... />
The definition of a user-defined variable. This is optional, and can be
repeated multiple times.
varname=
The name of the user-defined variable. Do not include the leading $ with
the name.
description=
The description of the variable, which also appears as the prompt for the
variable value when the macro is run
<role ... />
Specification of an execution role. This is optional, and can be repeated
multiple times. See
“The Execution Role” on page 212
for information on
execution roles.
Содержание 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 ...