Dell PowerEdge VRTX User Manual
Page 77

Macro Commands
77
FILE LOCATION: C:\Users\gina\Desktop\Checkout_new\CLI Folders\Dell Plasma-ARC
2+3\new_system_mifs_ARC2_latest\Macro.fm
D E LL CO N F I D E N T IA L – P R E L I M I N A RY 4 / 3 / 14 - F O R PR O O F O N LY
Parameters
• apply—Apply a macro to the specific interface.
•
trace—Apply and trace a macro to the specific interface.
•
macro-name
—Name of the macro.
•
parameter-name
value
—For each parameter defined in the macro, specify
its name and value. You can enter up to three parameter-value pairs.
Parameter keyword matching is case sensitive. All matching occurrences of
the parameter name in the macro are replaced with the corresponding
value.
Default Configuration
The command has no default setting.
Command Mode
Interface (Ethernet, Port Channel) Configuration mode
User Guidelines
The macro apply command hides the commands of the macro from the user
while it is being run. The macro trace command displays the commands
along with any errors which are generated by them as they are executed. This
is used to debug the macro and find syntax or configuration errors.
When you run a macro, if a line in it fails because of a syntax or configuration
error, the macro continues to apply the remaining commands to the interface.
If you apply a macro that contains parameters in its commands, the
command fails if you do not provide the values for the parameters. You can
use the macro apply
macro-name
with a '?' to display the help string for the
macro keywords (if you have defined these with the #macro keywords
preprocessor command).
Parameter (keyword) matching is case sensitive. All matching occurrences of
the parameter are replaced with the provided value. Any full match of a
keyword, even if it is part of a large string, is considered a match and replaced
by the corresponding value.
When you apply a macro to an interface, the switch automatically generates a
macro description command with the macro name. As a result, the macro