Cisco Router IOS XR Getting Started Manual page 169

Cisco systems router getting started guide
Hide thumbs Also See for Router Cisco IOS XR:
Table of Contents

Advertisement

Chapter 6
CLI Tips, Techniques, and Shortcuts
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.
2.
3.
4.
5.
6.
DETAILED STEPS
Command or Action
Step 1
configure
Example:
Router# configure
Step 2
template template-name
] [
$ parameter... )
Example:
RP/0/RP0/CPU0:router(config)# template tmplt_1
Step 3
Enter the template commands.
Example:
RP/0/RP0/CPU0:router(config-TPL)# hostname test
Step 4
end-template
Example:
RP/0/RP0/CPU0:router(config-TPL)# end-template
OL-10957-02
configure
template template-name [($parameter $parameter...)] [config-commands]
Enter the template commands.
end-template
commit
show running-config template template-name
[
($ parameter
]
config-commands
Purpose
Enters global configuration mode.
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.
Defines the template commands.
Ends the template definition session and exits template
configuration mode.
When you end the template session, you are returned to
global configuration mode.
Cisco IOS XR Getting Started Guide
Wildcards, Templates, and Aliases
6-13

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ios xr 3.4

Table of Contents