cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
8277
Views
25
Helpful
7
Replies

ASA Multiple Context Mode "terminal width" command

pan.systems
Level 1
Level 1

I'm using my ASA 9.4.2 in multi-context mode. Where has the "terminal width" command gone?  It appears to be missing, and I'm getting a bit sick of the command line truncating at 80 chars...

7 Replies 7

ispatel
Level 1
Level 1

Hi,

Use following command to set the number of lines you want to see in O/P with singe key stroke.

"terminal pager <number of lines>"

Thanks,
Ishan
Please remember to select a correct answer and rate helpful posts

Thanks, but that's page length, not width. I'm talking about the the page width as it seems to apply to the command line.

All the ASA docs say terminal width is set by "terminal width". On IOS routers this is true. On my ASA's the command as specified in the docs is simply not present.

"terminal pager <number of lines>"

Has to be done in config mode.

(config)# terminal width ?

configure mode commands/options:
0 Specify this value to set the maximum permitted width
<40-511> Terminal width columns, default is 80

its a secret command and worked on my 5585 Version 9.1(4).

Group IT
Level 1
Level 1

Did you ever get to the bottom of this? It's really annoying!

Please reply if you worked out how to change the width.

Thank you.

Bringing this back: does anyone has any idea how to keep all commands on one line instead of being truncated:

 

E.g.:

asa01/asa-lan/sec/act(config)# clear configure access-list lin$ this is the current output

 

asa01/asa-lan/sec/act(config)# clear configure access-list link_to_the_router this would be the desired output.

 

Thanks! 

Florin Barhala: The answer was posted earlier: ‎06-09-2017 01:27 AM

 

You can use terminal width in global config mode on an ASA.

Example:

 

ASA# configure terminal

ASA(config)# terminal width ?

configure mode commands/options:
0 Specify this value to set the maximum permitted width
<40-511> Terminal width columns, default is 80
ASA(config)# terminal width

 

[Note: I don't know why it was placed there, but it was.]

 

This "partially" aligns with the command reference:

https://www.cisco.com/c/en/us/td/docs/security/asa/asa-command-reference/T-Z/cmdref4/t1.html#pgfId-1561966

the command reference tells you what to do:

"To set the width for displaying information during console sessions, use the terminal width command in global configuration mode. "

And then the command reference gives an INVALID example:

This example shows how to terminal display width to 100 columns:

ciscoasa# terminal width 100
^ THIS EXAMPLE, will not work, use the example provided earlier, where you switch to "global config mode" first.
As stated before, please try it this way,
! go to global configuration mode
configure terminal
! modify the terminal width
terminal width 400
! end configuration
end
! This is one of those annoyances, mainly because it isn't intuitive (terminal is usually modified from privileged exec), this issue is compounded by an example that does not work.

 

Review Cisco Networking products for a $25 gift card