Forum Discussion
gdoyle
Feb 20, 2018Cirrostratus
CLI command to see load balancing method for all Virtual Servers?
Is there a command in CLI I can use to display the load balancing method for all virtual servers?
Thanks.
amintej
Feb 20, 2018Cirrus
Load balancing method is a pool setting. You can check it with
tmsh list ltm pool pool_name load-balancing-mode
You can run an small script for getting vs-pool relation and then get load balancing method
! /bin/bash
output=$(tmsh list ltm virtual |grep "ltm virtual" | awk -F" " '{ print $3 }')
for LINE in ${output}; do
pool=$(tmsh list ltm virtual ${LINE} pool |grep pool |awk -F" " '{ print $2 }')
if [ $pool != none ]
then
echo "Virtual: ${LINE}:"
tmsh list ltm pool $pool load-balancing-mode
fi
done
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects