Friday, May 5, 2017

Displaying Configuration without Break/Pause on a Cisco Router, WLC and ASA Firewall

I visited the Museum of Modern Art (MoMA) while I was in Manhattan New York a month ago. There was one art piece that captured my interest and it was some server racks with network protocols and tools being displayed in one corner of the museum. Another interesting place I visited was the Intrepid Sea, Air & Space Museum at Pier 86 Hell's Kitchen which was only a 10 minute walk from my hotel in Times Square. There's a lot of vintage airplanes being displayed that were used during World War II and the Vietnam War. You'll also find NASA's Enterprise space shuttle located on the flight deck and a submarine (you can actually go inside) near the exit and souvenir shop.





There are times you'll need to backup a device configuration using a terminal emulation program (such as PutTTy, TeraTerm or SecureCRT). One way to prevent an admin from hitting Enter or spacebar when issuing the show running-config command is to use the terminal length or pager command on a Cisco device. This also prevents the -More- from showing up on the output.


Cisco Router/Switch

Router#terminal length ?
  <0-512>  Number of lines on screen (0 for no pausing)

Router#terminal length 0       // ISSUE IN PRIVILEGED EXEC MODE


Cisco WLC

(Cisco Controller) >config paging ?
              
enable         enable paging
disable        disable paging
              
(Cisco Controller) >config paging disable


Cisco ASA Firewall

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

ciscoasa# more system:running-config    // DISPLAYS TUNNEL-GROUP PRE-SHARED KEY

No comments:

Post a Comment