Forum Discussion

goldberg_33306's avatar
goldberg_33306
Icon for Nimbostratus rankNimbostratus
Jun 02, 2008

Turn off CLI Paging

When I connect to one of our F5 boxes and I run the command "b list", it displays the output in paged format. So then I have to press the space bar to scroll through each page. Is there anyway to turn this off? The reason why I'm asking is that I have a script which runs to backup our F5 config and its waiting for a prompt but never sees it because of the paging feature.

 

We're running Bigips with v9 code.

9 Replies

  • That's odd. if you run 'b list' on the command line of the BIG-IP, the output is paged? I don't see this on 9.4.4, 9.4.0 or 9.2.x.

     

     

    Regardless, most complete back up of the BIG-IP configuration is a UCS file. For details on UCS files, check SOL4423:

     

     

    SOL4423: Overview of UCS archives

     

    https://support.f5.com/kb/en-us/solutions/public/4000/400/sol4423.html?sr=811838

     

     

    Aaron
  • Thanks for the info Aaron. I'm new to BigIP so I wasn't aware of the UCS file.

     

    I use putty to SSH into the BigIP so I'm not sure if that makes a difference but yes, running the "b list" command shows pages output and a prompt doesn't appear until I page through the output
  • Aaron, is there anyway to copy the ucs file to another server via TFTP or FTP/SFTP or some other means?
  • Not automatically. You could script the creation of the UCS on the BIG-IP using cron. The BIG-IP has the openssh package installed, so you can use SCP or SFTP in a script on the BIG-IP. Or you could run the script on the remote host.

     

     

    I posted an example script in a past thread (Click here). If you end up using it, could you post an updated version to the thread and/or the Codeshare (Click here)? You may want to add logic which checks to see if the configuration has changed before either creating the UCS or copying the UCS to a remote host. You could also clear out old UCS files if they've already been copied to the remote host.

     

     

    Aaron
  • gosh even the cisco boxes have a way to change it... term len 0

     

    how annoying-- it is assuming a very old character cell VT type terminal.. it even sends out control sequences.

     

    very tough when it is actually a script trying to work with the information/results.

     

    there should be a way to set the display type and length, isn't there?

     

     

     

  • setting the terminal type on the client could perhaps cure this problem without having to issue a command on the host. i'm trying some variations such as 'vanilla' but also setting the page width and height to large numbers. getting much better results!

     

     

     

  • On version 10.2.1 from tmsh you can disable paging:

     

    (Active)(tmos) modify cli preference pager disabled

     

    to re-enable:

     

    (Active)(tmos) modify cli preference pager enabled

     

     

    Not sure on what the equivalent bigpipe command is.

     

     

    Kevin
  • Modify is a configuration change and will break sync with redundant device. Beware! This function should be available as a terminal session parameter.