Length Command on CISCO Router/Switch

Command

Length

Use

Sets the amount of lines outputted at once in a console session. Setting the line to 0 will mean that commands will print all of the output at once in the console screen.

Syntax

Router(config-line)#length <number>

<number> 0-512

Example

In this example, the line of the console is set to 1.

R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#line con 0
R2(config-line)#length 1

The running configuration for the console is shown. Notice that the output is cut short and a “–More–” sign is shown.

R2(config-line)#do show run | sec con
Building configuration…
Current configuration : 1434 bytes
control-plane
–More–

To continue viewing output, hit enter or space until it is complete.

R2(config-line)#do show run | sec con
Building configuration…
Current configuration : 1434 bytes
control-plane
line con 0
exec-timeout 15 50
privilege level 15
logging synchronous
length 1

Related Articles

Leave a Reply

avatar