EasyManua.ls Logo

Cisco Router Cisco IOS XR - Page 169

Cisco Router Cisco IOS XR
222 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
6-13
Cisco IOS XR Getting Started Guide
OL-10957-02
Chapter 6 CLI Tips, Techniques, and Shortcuts
Wildcards, Templates, and Aliases
The two primary steps in working with templates are creating templates and applying templates. The
following procedure describes how to create a configuration template.
SUMMARY STEPS
1. configure
2. template template-name [($parameter $parameter...)] [config-commands]
3. Enter the template commands.
4. end-template
5. commit
6. show running-config template template-name
DETAILED STEPS
Command or Action Purpose
Step 1
configure
Example:
Router# configure
Enters global configuration mode.
Step 2
template
template-name
[($
parameter
$
parameter...
)] [
config-commands
]
Example:
RP/0/RP0/CPU0:router(config)# template tmplt_1
Enters template configuration mode and creates a template.
template-name: Unique name for the template to be
applied to the running configuration.
parameter: (Optional) Actual values of the variables
specified in the template definition. Up to five
parameters can be specified within parentheses. Each
parameter must begin with the $ character. Templates
can be created with or without parameters.
config-commands: (Optional) Global configuration
commands to be added to the template definition. Any
name in a command (such as the server name, group
name, and so on) can be parameterized. This means that
those parameters can be used in the template commands
(starting with $) and replaced with real arguments when
applied.
To remove the template, use the no form of this
command.
Step 3
Enter the template commands.
Example:
RP/0/RP0/CPU0:router(config-TPL)# hostname test
Defines the template commands.
Step 4
end-template
Example:
RP/0/RP0/CPU0:router(config-TPL)# end-template
Ends the template definition session and exits template
configuration mode.
When you end the template session, you are returned to
global configuration mode.

Table of Contents

Related product manuals