EasyManuals Logo

Cisco ASR 9000 User Manual

Cisco ASR 9000
188 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
Page #131 background imageLoading...
Page #131 background image
127
Cisco ASR 9000 Series Aggregation Services Router Getting Started Guide
OL-28417-02
Chapter CLI Tips, Techniques, and Shortcuts
Wildcards, Templates, and Aliases
Examples
The following example shows how a simple template is defined. The template contents are then
displayed with the show running-config template template-name command:
RP/0//CPU0:router# configure
RP/0//CPU0:router(config)# template jbtest
RP/0//CPU0:router(config-TPL)# hostname test
RP/0//CPU0:router(config-TPL)# end-template
RP/0//CPU0:router(config)# commit
RP/0//CPU0:router(config)# show running-config template jbtest
template jbtest
hostname test
end-template
In the next example, a template is defined, and the template requires a parameter. The template contents
are then displayed with the show running-config template template-name command:
RP/0//CPU0:router# configure
RP/0//CPU0:router(config)# template test2 (hostname)
RP/0//CPU0:router(config-TPL)# hostname $hostname
RP/0//CPU0:router(config-TPL)# end-template
RP/0//CPU0:router(config)# commit
RP/0//CPU0:router(config)# show running-config template test2
template test2 (hostname)
hostname $hostname
end-template
Applying Configuration Templates
To apply a template, enter the apply-template template-name [(parameter)] command in global
configuration mode and consider the following guidelines:
Only one template can be applied at a time.
If the same template is applied multiple times, the most recent application overwrites the previous
ones.
Provide the exact number of parameters for the template.
Templates are applied as a “best effort” operation; only valid changes are committed. If any
command in the template fails, that command is discarded.
After a template is applied, the show configuration command displays the target configuration
changes. The target configuration must be committed (with the commit command) to become part
of the running configuration.
Examples
In the following example, a simple template is defined. The template contents are then displayed with
the show running-config template template-name command:
RP/0//CPU0:router# configure
RP/0//CPU0:router(config)# apply-template jbtest
RP/0//CPU0:router(config)# show
Building configuration...
hostname test
end

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Cisco ASR 9000 and is the answer not in the manual?

Cisco ASR 9000 Specifications

General IconGeneral
Operating SystemCisco IOS XR
ManagementCLI, SNMP, NETCONF, RESTCONF
TypeEdge Router
Interface Support10G, 40G, 100G, 400G
Power SupplyAC and DC options available
Routing ProtocolBGP, IS-IS, OSPF, EIGRP
StorageSSD
Operating Temperature0 to 40°C (32 to 104°F)
Humidity5 to 95% (noncondensing)
RedundancyYes (Power, Fabric, Route Processor)
MTBFVaries by model (typically > 200, 000 hours)

Related product manuals