Forum Discussion

StephanManthey's avatar
Aug 05, 2021

List LTM virtual server availability states

The following one-liner lists the availability states of all virtual servers on your BIG-IP LTM device. The recursive show command followed by a grep filters the relevant lines from the virtual ser...
  • Dario_Garrido's avatar
    Sep 06, 2021

    Hello Stephan.

    It's slighty easier to get this info with Awk.

    tmsh -q -c 'cd /; show ltm virtual recursive' | awk '/Ltm::Virtual/ {printf $3" "} /Availability/ {printf $3"\n"}' | column -t

    Regards,

    Dario.