•
User-defined line templates
—
User-defined line templates that can be applied to a range of virtual terminal
lines.
Line Template Configuration Mode
Changes to line template attributes are made in line template configuration mode. To enter line template
configuration mode, issue the
line
command from XR Config mode, specifying the template to be modified.
These line templates can be configured with the
line
command:
•
console
—
console template
•
default
—
default template
•
template
—
user-defined template
After you specify a template with the
line
command, the router enters line template configuration mode
where you can set the terminal attributes for the specified line. This example shows how to specify the attributes
for the console:
RP/0/RP0/CPU0:router(config)#
line console
RP/0/RP0/CPU0:router(config-line)#
From line template configuration mode, use the online help feature (
?
) to view all available options. Some
useful options include:
•
absolute-timeout
—
Specifies a timeout value for line disconnection.
•
escape-character
—
Changes the line escape character.
•
exec-timeout
—
Specifies the EXEC timeout.
•
length
—
Sets the number of lines displayed on the screen.
•
session-limit
—
Specifies the allowable number of outgoing connections.
•
session-timeout
—
Specifies an interval for closing the connection if there is no input traffic.
•
timestamp
—
Displays the timestamp before each command.
•
width
—
Specifies the width of the display terminal.
Line Template Guidelines
The following guidelines apply to modifying the console template and to configuring a user-defined template:
•
Modify the templates for the physical terminal lines on the router (the console port) from line template
configuration mode. Use the
line console
command from XR Config mode to enter line template
configuration mode for the console template.
•
Modify the template for virtual lines by configuring a user-defined template with the
line template-name
command, configuring the terminal attributes for the user-defined template from line template
configuration, and applying the template to a range of virtual terminal lines using the
vty pool
command.
Attributes not defined in the console template, or any virtual template, are taken from the default template.
System Management Configuration Guide for Cisco NCS 5000 Series Routers, IOS XR Release 6.2.x
8
Implementing Physical and Virtual Terminals
Line Template Configuration Mode