Build the Next-Generation Data Center
6 week online course starting in spring 2017

Setting Terminal Width in Cisco IOS

This must be old news to most of you (I managed to stay away from CLI for way too long), but I was pleasantly surprised that you can set terminal width (not just length) in Cisco IOS.

You probably know the frustrating feeling where Cisco IOS starts truncating the lines you type (replacing the rest of the input with $ sign) because they wouldn’t fit on VT100 screen:

Client(config-router-af)#network 192.168.11.0 route-map Static2BGP
Client(config-router-af)#network 192.168.12.1 mask 255.255.255.255 route-map S$

However, in a moment of inspiration (it helps to have a great view when playing with VIRL) I decided to try to set the terminal width:

Client(config-router-af)#do term width 150

Surprise, surprise: it worked perfectly ;)) – I could edit longer lines without the truncation hassle.

0 comments:

Post a Comment

You don't have to log in to post a comment, but please do provide your real name/URL. Anonymous comments might get deleted.