Configuration Management Commands on Cisco IOS XR Software
template
SMR-217
Cisco ASR 14000 Series Router System Management Command Reference
OL-17231-01
template
To create a template name and enter template configuration mode, use the
template
command in global
configuration mode. To remove a template definition, use the
no
form of this command.
template
name
no
template
name
Syntax Description
Defaults
No templates are defined.
Command Modes
Global configuration
Command History
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes the proper
task IDs.
Use the
template
command to enter template configuration mode. From template configuration mode,
you can group a subset of configuration commands in a named template. Commonly used sets of
configuration commands can be grouped into a named template. Defining a template is similar to
creating a C macro function. A template provides modularity and ease of use during user configuration.
Use the
command to exit template configuration mode. After defining a template, use the
command to apply the template. Use the
command with the
optional
template
keyword and
template-name
argument to display the contents of a template.
Task ID
Examples
The following example shows how to enter template configuration mode to create a template. In this
example, a template named “pre-pos” is defined for the preconfigured Packet-over-SONET/SDH (POS)
interface 0/1/0/1. The
end-template
command is used to exit from template configuration mode.
RP/0/RP0/CPU0:router#
configure
RP/0/RP0/CPU0:router(config)#
template pre-pos
RP/0/RP0/CPU0:router(config-TPL)#
interface preconfigure pos0/1/0/0
RP/0/RP1/CPU0:router(config-if-pre)#
ipv4 address 10.3.32.154 255.0.0.0
RP/0/RP1/CPU0:router(config-if-pre)#
end-template
RP/0/RP0/CPU0:router(config)#
name
Unique name for the template to be created.
Release
Modification
Release 3.7.1
This command was introduced on the Cisco ASR 14000 Series Router.
Task ID
Operations
config-services
read, write