Forum Discussion

Thiyagu_343098's avatar
Thiyagu_343098
Icon for Nimbostratus rankNimbostratus
May 05, 2018

Need help to get the LTM command get the name of the VIP and IP of VIP and VLAN of VIP in one output

Hello All, I'm working on a taks to get the the name of the VIP and IP of VIP and VLAN of VIP. I'm looking for a single LTM command which would help to get out the required data.

 

could you please help me with this.

 

Regards, Thiyagu

 

4 Replies

  • Hi Thiyagu,

     

    You can try this from command line:

     

    "tmsh list ltm virtual | grep virtual destination vlan"

     

    If you're not using grep, then it will shows all VS configuration component. Filter the component that you need using grep.

     

    Regards,

     

    Ahmad

     

    • Thiyagu_343098's avatar
      Thiyagu_343098
      Icon for Nimbostratus rankNimbostratus

      Thanks a lot Ahmed.

       

      Could you please help me to know , can we use multiple grep in the same command output to filter?

       

      Regards, Thiyagu

       

    • Samir_Jha_52506's avatar
      Samir_Jha_52506
      Icon for Noctilucent rankNoctilucent

      You can call multiple grep in single unix command...

       

      Output of 1st grep command will input of other grep n so on... Some manual work require to get vlan details against vip ip.

       

    • mr_shaggy_17493's avatar
      mr_shaggy_17493
      Icon for Nimbostratus rankNimbostratus

      Well the previous command will filtering the "list ltm virtual" results to only the configuration component which is containing the word virtual, destination, and VLAN.

      • virtual for filtering VS name
      • destination for filtering VS address
      • vlan for filtering VLAN config on the VS

      This is the result on my bigip:

      root@(F5)(cfg-sync Standalone)(Active)(/Common)(tmos) list ltm virtual | grep virtual destination vlan
      ltm virtual vs_Apps80 {
          destination 10.4.40.78:http
          vlans {
              vlan_ASM
          vlans-enabled
      

      Regards,

      Ahmad