Tpl End-User Prompts; Example Tpl File - Cisco 800 Design Manual

Fast step software design guide
Hide thumbs Also See for 800:
Table of Contents

Advertisement

Chapter 3
Template File Development

TPL End-User Prompts

The TPL file begins with the statement, "! Cisco Fast Step Template" to distinguish it as a Cisco 800
Fast Step IOS template (TPL) file. The variables used to prompt the end user follow, placed in the
sequence that you want the prompts to appear. Additional configuration parameters are also listed and
use the same syntax the end user would use if the end user were entering the commands at a
command-line prompt. Any text that is not a variable or a recognized command is ignored.
A variable must be enclosed in < > (less-than and greater-than characters) to be differentiated from the
rest of the template. The syntax for the variable is as follows:
<variablename, "prompt", variabletype, "groupprompt">
for example:
enable password <ENABLE_PASSWORD, "Enter the Enable Password", String, "Passwords">
The text outside of the <> characters is considered a comment and is therefore ignored. The variable
fields are described in Table 3-1.
Table 3-1
Field
Variable Name
Prompt
Variable Type
Group Prompt

Example TPL File

This example uses a TPL file to configure a large number of ISDN routers differing only by IP address
and user name. The Cisco 800 Fast Step IOS template (TPL) prompts the end user for a user name and
Ethernet IP address. In this case, the template is placed on a server where you maintain the template,
changing the command-line parameters to match network changes. The end user simply downloads the
template, loads it into Setup, and responds to the prompts.
! Cisco Fast Step Template
!
no service pad
service timestamp debug uptime
service timestamp log uptime
service password-encryption
service linenumber
OL-10373-02
Cisco Fast Step IOS Template Fields
Description
Name used to refer to variable on subsequent uses. Can be up to 50 characters.
Use upper-case characters to differentiate variable names from the IOS
commands. The < or > (less-than and greater-than characters) cannot be used.
Prompt displayed when the Cisco 800 Fast Step IOS template (TPL) is run in
Cisco 800 Fast Step. Must be enclosed in " (quotes) if the prompt contains
spaces. Keep the string short to avoid scrolling the prompt.
Type of entry field.
String allows any character string to be entered.
IPAddress prompts for a dotted-decimal IP address.
IPXAddress prompts for a hexadecimal IPX address.
Header used to bundle a group of prompts. Must be enclosed in " (quotes) if
the prompt contains spaces. Keep the string short to avoid scrolling the prompt.
TPL End-User Prompts
Cisco 800 Fast Step Software Design Guide
3-3

Advertisement

Table of Contents
loading

Table of Contents