How To: Resolve F5 SSH Discovery commands from timing outSummaryYou note that certain pattern steps, such as "get pools" or commands ("show ltm virtual detail") are consistently timing out in the F5 Load Balancer SSH pattern. Generally this is due to large commands that result in tmsh requiring an interactive prompt to display additional rows. Since the script implementation cannot handle interactive prompts this causes the command to hang until timing out Note that there appears to be a bug with tmsh/less such that tmsh is still piping output to less despite configuring a command with "pager disabled" (see References section)ReleaseAllInstructionsWorkaround If the environment variable "LESSSECURE" is set or can be set to "0" on the target F5 device: Pattern step commands can be modified with the following prefix:"modify cli preference display-threshold 0 pager disabled;" This will allow all rows in the command to presented without a prompt and will not pipe to the "less" commandThere appears to be a bug with tmsh and/or less, though, in that a final prompt is still displayed regardless if the "LESSSECURE" variable is active/set to "1" If "LESSSECURE" cannot be disabled: Set ecc_agent_property "mid.sa.ssh.terminal_rows" to a sufficiently large enough number (e.g: 1000000) This increases the char limit on each row to a point such that we will not output enough rows to trigger the prompts for additional rows in tmsh/less As such, it's not required to modify the pattern commands with the above prefix Verification (Rome only) Add the following to agent/conf/wrapper-override.conf on the MID server:wrapper.java.additional.3=-D<target_ip>.binary=trueWith the modified pattern commands you should only see a prompt at the very end of the command execution, similar to the following:1B 5B 4B 74 08 74 1B 5B 4B 69 08 69 1B 5B 4B 6F 08 6F 1B 5B 4B 6E 08 6E 1B 5B 4B 27 08 27 1B 5B [ .[Kt.t.[Ki.i.[Ko.o.[Kn.n.[K'.'.[ ]^M4B 20 08 20 1B 5B 4B 27 08 27 1B 5B 4B 54 08 54 1B 5B 4B 6F 08 6F 1B 5B 4B 74 08 74 1B 5B 4B 61 [ K . .[K'.'.[KT.T.[Ko.o.[Kt.t.[Ka ]^M08 61 1B 5B 4B 6C 08 6C 1B 5B 4B 20 08 20 1B 5B 4B 43 08 43 1B 5B 4B 6F 08 6F 1B 5B 4B 6E 08 6E [ .a.[Kl.l.[K . .[KC.C.[Ko.o.[Kn.n ]^M1B 5B 4B 6E 08 6E 1B 5B 4B 65 08 65 1B 5B 4B 63 08 63 1B 5B 4B 74 08 74 1B 5B 4B 69 08 69 1B 5B [ .[Kn.n.[Ke.e.[Kc.c.[Kt.t.[Ki.i.[ ]^M4B 6F 08 6F 1B 5B 4B 6E 08 6E 1B 5B 4B 73 08 73 1B 5B 4B 27 08 27 1B 5B 4B 20 08 20 0D 1B 5B 4B [ Ko.o.[Kn.n.[Ks.s.[K'.'.[K . ..[K ]^M0D 1B 5B 4B 1B 5B 37 6D 6C 6F 67 20 66 69 6C 65 20 73 75 70 70 6F 72 74 20 69 73 20 6E 6F 74 20 [ ..[K.[7mlog file support is not ]^M61 76 61 69 6C 61 62 6C 65 20 20 28 70 72 65 73 73 20 52 45 54 55 52 4E 29 1B 5B 6D ^M09/09/21 01:40:03 (475) Thread-141 DEBUG: (197)GeneralLog4jAdaptor - Ssh2Channel - Received SSH_MSG_CHANNEL_DATA id=0 rid=0 len=1683 window=123490^MIn ASCII, the binary portion is[K[7mlog file support is not available (press RETURN)[m References: Documentation referencing the final prompt from "less", depending on the secure parameter:https://opensource.apple.com/source/less/less-9/less/optfunc.c.auto.htmldisplay-threshold and pager documentation:https://clouddocs.f5.com/cli/tmsh-reference/v15/modules/cli/cli_preference.htmlLESSSECURE documentation:https://www.tutorialspoint.com/unix_commands/less.htm