For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

4 Replies

  • Hi,

    you can get it from cli:

    [admin@unit1:Active:Changes Pending] ~  tmsh -c "show ltm virtual virtual_server_name profiles"
    it will show you all profiles assigned to virtual server, output can be send by e-mail

  • Hi Vitaily

     

    Thanks for the reply!!

     

    But i want to match the pattern as below of tmsh -c "show ltm virtual profiles"

     

    Ltm::Virtual Server: xxxx | Ltm::HTTP Profile: http | Virtual Server Name xxxx | Virtual Server Name xxxx | Ltm::HTTP Profile: xxxx | Ltm::HTTP Compression Profile: xxxx | Ltm::HTTP Profile: xxxx | Ltm::HTTP Compression Profile: xxxx

     

    Here i want to have all the virtual server names using HTTP compression profile.I tried to make one tmsh command as below with grep:-

     

    tmsh -c "show ltm virtual profiles"|grep ^LTM:: -A5|grep -e 'Ltm::HTTP Compression'.

     

    But this didnot worked.Even tried some other options with grep but nothing.

     

    Can you please suggest some possible grep along with tmsh -c "show ltm virtual profiles" to get the desired outcome.

     

    Thanks Karan

     

  • Try this:

    tmsh list ltm virtual one-line |grep httpcompression |awk -F" " '{ print $3 }'
    
  • Thanks kevin!!

     

    I jst replaced httpcompression with HTTP Compression profile name i m using(tmsh list ltm virtual one-line |grep XXX |awk -F" " '{ print $3 }') and it works fine and gives desired ouput!!

     

    Thanks Karan