Forum Discussion
5 Replies
- nitassEmployee
just an example. it may not be the best way to do it anyway.
there are 3 virtual servers [root@ve11a:Active:In Sync] config tmsh list ltm virtual ltm virtual bar { destination 172.28.24.10:443 ip-protocol tcp mask 255.255.255.255 pool foo profiles { clientssl { context clientside } http { } tcp { } } rules { qux } source 0.0.0.0/0 source-address-translation { type automap } vs-index 32 } ltm virtual bar3868 { destination 172.28.24.10:3868 ip-protocol tcp mask 255.255.255.255 pool foo3868 profiles { diameter { } tcp { } } source 0.0.0.0/0 source-address-translation { type automap } vs-index 20 } ltm virtual fwd { destination any:0 ip-forward mask any profiles { fastL4 { } } source 0.0.0.0/0 source-address-translation { type automap } translate-address disabled translate-port disabled vlans { internal } vlans-enabled vs-index 3 } filter virtual server which has http profile [root@ve11a:Active:In Sync] config tmsh list ltm virtual all one-line | grep http | awk '{ print $3 }' bar
- Seckin_149390Nimbostratus
Hi nitass,
With that way, Can we filter virtual server which has web acceleration profile,
tmsh list ltm virtual all one-line | grep " web acceleration " | awk '{ print $3 }'
Thanks.
- nitassEmployee
With that way, Can we filter virtual server which has web acceleration profile
in my example, http is profile name (not profile type). what it does is simple - list virtual server configuration in one line (tmsh ...), filter only line containing profile name (grep ...) and then display only virtual server name (awk ...).
- Seckin_149390Nimbostratus
Thanks nitass,
Actually, i don't want to learn specific virtual server associated with the web accelaration profile.
I want to learn which virtual servers use this web acceleration profile on the configuration. I think your CLI command will work for me,
Thanks again.
- nitassEmployee
i don't want to learn specific virtual server associated with the web accelaration profile.
the tmsh command list all virtual servers (i.e. not specific virtual server). in short, output will be virtual server names which use the profile name you specify.