Forum Discussion

Senthil_M_34551's avatar
Senthil_M_34551
Icon for Nimbostratus rankNimbostratus
Jan 04, 2018
Solved

show sys hardware in F5 without using the space bar

Hi ,

 

How to check the "show sys hardware" in F5 without using the space bar function, since i am going to use script for automation.

 

Thanks, Senthil Manicam

 

  • you can disable cli preference pager.

    e.g.

    root@(ve13a)(cfg-sync In Sync)(Active)(/Common)(tmos) modify cli preference pager disabled
    

8 Replies

  • Sorry, what do you mean by space bar function. Running the below command should give you the desired output.

    ltm:Active:Standalone] ~  tmsh show sys hardware
    

    If you are looking for some specific capture, use the grep command,

    ltm::Active:Standalone] ~  tmsh show sys hardware | grep -A4 Platform

    when you talk about script, which language is it on.

  • Hello Senthil,

    What scripting language are you using ? Normally you can call it as it is, for example for shell script you can call the command like that :

    !/bin/sh
    tmsh show sys hardware
    

    You don't have to care about the white space between the command.

    Regards

  • Thanks for the reply.

     

    If we run the command, " tmsh show sys hardware " it gives the desired output. But i need to use space bar button to complete till the end of the command line.

     

    For example: (/Common)(tmos) sho sys hardware Sys::Hardware Chassis Information Chassis Name Chassis Type . . . . . Hardware Version Information Name host_platform Type chassis Model F5 Parameters -- -- Host memory size 32768 Host platform name A113 Host software version 12.1.2.1.0.271

     

    Hardware Version Information Name hsb_vlbb Type net ---(less 66%)--- ..................> Need to use the space bar button to complete. . . . . ---(less 86%)--- ..................> Need to use the space bar button to complete. . . Switchboard Part Revision Host Board Serial bld417755s Host Board Part Revision (/Common)(tmos)

     

    Without using space bar button, any specfic command is available to show the sys hardware.

     

    Regards, Senthil Manickam

     

  • you can disable cli preference pager.

    e.g.

    root@(ve13a)(cfg-sync In Sync)(Active)(/Common)(tmos) modify cli preference pager disabled
    
  • you can disable cli preference pager.

    e.g.

    root@(ve13a)(cfg-sync In Sync)(Active)(/Common)(tmos) modify cli preference pager disabled
    
  • Okay for this you need to disable a setting which specifies whether or not long displays will be sent to less.

    run this command

    tmsh modify cli preference pager disabled

    post which you will be able to see the entire output in your screen. BTW if you have access to the bash, you can just run

    tmsh show sys hardware