Forum Discussion
Any F5 script To check HTTP Compression is in use.
Hi
Is there an F5 customized script to check HTTP compression is being used in a profile for a particular virtual server.
Thanks Karan
4 Replies
- Vitaliy_Savrans
Nacreous
Hi,
you can get it from cli:
it will show you all profiles assigned to virtual server, output can be send by e-mail[admin@unit1:Active:Changes Pending] ~ tmsh -c "show ltm virtual virtual_server_name profiles" - karan12_154818
Nimbostratus
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
- Kevin_Stewart
Employee
Try this:
tmsh list ltm virtual one-line |grep httpcompression |awk -F" " '{ print $3 }' - karan12_154818
Nimbostratus
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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com