Saturday, October 6, 2018

Configuring terminal width on a Cisco ASA Firewall

There are times you got a very long hostname or context hostname configured on a Cisco ASA firewall (or any Cisco device) and it hides the commands being typed. The $ in CLI means the displayed output is maxed out. You can override the default terminal width to extend the CLI output.


ciscoasa/pri/act/CONTEXT-ABC(config-network-object)# nat (CONTEXT-INT,outside) $

ciscoasa/pri/act/admin(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

ciscoas/pri/act/admin(config)# terminal width 120

ciscoasa/pri/act/CONTEXT-ABC# show terminal

Width = 120, no monitor

ciscoasa/pri/act/CONTEXT-ABC# configure terminal
ciscoasa/pri/act/CONTEXT-ABC(config)# nat(CONTEXT-INT,outside)11111111111111111111111111111111111111111111111111$


You can also use the terminal pager 0 privileged command to spit out the whole configuration output in one go (without hitting the spacebar). This is the equivalent of terminal length 0 in an IOS router.

ciscoasa# terminal ?

  interactive  enable '?' as help
  monitor      Syslog monitor
  no           Turn off syslogging to this terminal
  pager        Control page length for pagination. The page length set here is
               not saved to configuration.


ciscoasa# terminal pager ?

  <0-2147483647>  Pager lines, 0 means no page-limit
  lines           The number following this keyword determines the number of
                  lines in a page before ---more--- prompt appears, default is
                  24
ciscoasa# terminal pager 0

No comments:

Post a Comment