Cisco Systems A9KMOD80TR, ASR 9000 5-14, F I N A L D R A F T - C i s c o C o n f i d e n t i a l

Models: A9KMOD80TR A9K24X10GETR ASR 9000

1 142
Download 142 pages 58.88 Kb
Page 116
Image 116
template template-name [($parameter

 

 

 

Chapter 5 CLI Tips, Techniques, and Shortcuts

 

Wildcards, Templates, and Aliases

 

 

 

F I N A L D R A F T — C i s c o C o n f i d e n t i a l

DETAILED STEPS

 

 

 

 

 

 

 

Command or Action

Purpose

Step 1

 

 

configure

Enters global configuration mode.

 

 

Example:

 

 

 

Router# configure

 

 

 

 

Step 2

template template-name [($parameter

Enters template configuration mode and creates a template.

 

 

$parameter...)] [config-commands]

template-name: Unique name for the template to be

 

 

 

 

 

Example:

applied to the running configuration.

 

 

parameter: (Optional) Actual values of the variables

 

 

RP/0/RSP0/CPU0:router(config)# template tmplt_1

 

 

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

 

 

Type the template commands.

Defines the template commands.

 

 

Example:

 

 

 

RP/0/RSP0/CPU0:router(config-TPL)# hostname

 

 

 

test

 

Step 4

 

 

end-template

Ends the template definition session and exits template

 

 

 

configuration mode.

 

 

Example:

When you end the template session, you are returned to

 

 

RP/0/RSP0/CPU0:router(config-TPL)# end-template

global configuration mode.

Step 5

 

 

commit

Applies the target configuration commands to the running

 

 

 

configuration.

 

 

Example:

 

 

 

RP/0/RSP0/CPU0:router(config-TPL)# commit

 

Step 6

 

 

show running-config template template-name

Displays the details of the template.

 

 

Example:

 

 

 

RP/0/RSP0/CPU0:router# show running-config

 

 

 

template tmplt_1

 

 

 

 

 

 

Cisco ASR 9000 Series Aggregation Services Router Getting Started Guide

5-14

OL-17502-01

Page 116
Image 116
Cisco Systems A9KMOD80TR, ASR 9000 manual 5-14, F I N A L D R A F T - C i s c o C o n f i d e n t i a l, Detailed Steps