![Cisco Small Business 300 1.1 Series Скачать руководство пользователя страница 57](http://html.mh-extra.com/html/cisco/small-business-300-1-1-series/small-business-300-1-1-series_administration-manual_2609294057.webp)
Macro Commands
78-20269-01 Command Line Interface Reference Guide
58
3
If you apply a macro that contains keywords in its commands, the command fails if
you do not specify the proper values for the keywords when you apply the macro.
You can use the macro global apply macro-name with a '?' to display the help
string for the macro keywords. You define the keywords in the help string using the
preprocessor command #macro keywords when you define a macro.
When you apply a macro in Global Configuration mode, the switch automatically
generates a global macro description command with the macro name. As a result,
the macro name is appended to the global macro history. You can display the
global macro history using the show parser macro description command.
Example.
The following is an example of a macro being defined and then applied to the
switch with the trace option.
Switch(config)#
macro name
console-timeout
Enter macro commands one per line. End with the character ‘@’.
line console
exec-timeout $timeout-interval
@
Switch(config)#
macro
global trace
console-timeout $timeout-interval 100
Applying command… ‘line console’
Applying command… ‘exec-timeout 100’
Switch(config)#
3.5
macro global description
Use the macro global description Global Configuration command to enter a
description which is used to indicate which macros have been applied to the
switch. Use the no form of this command to remove the description.
Syntax
macro global description
text
no macro global description
Parameters
text—Description text. The text can contain up to 160 characters.
Содержание Small Business 300 1.1 Series
Страница 1: ...Cisco Small Business 300 1 1 Series Managed Switch Administration Guide CLI GUIDE ...
Страница 527: ...DHCP Relay Commands 78 20269 01 Command Line Interface Reference Guide 528 38 Servers 1 1 1 1 2 2 2 2 ...
Страница 705: ...Revision History 78 20269 01 Command Line Interface Reference Guide 936 4 ...