Forum Discussion
List of Load Balancing Mode values for iControl Rest API Call
- Oct 23, 2019
You can find the list of load-balancing methods from tmsh help. Run the command below from your console:
# tmsh help ltm poolThe command yields
load-balancing-mode [ dynamic-ratio-member | dynamic-ratio-node | fastest-app-response | fastest-node | least-connections-members | least-connections-node | least-sessions | observed-member | observed-node | predictive-member | predictive-node | ratio-least-connections-member | ratio-least-connections-node | ratio-member | ratio-node | ratio-session | round-robin | weighted-least-connections-member | weighted-least-connections-node]You can get the same information from the Configuration Utility (GUI) too: Just click the Help tab.
You can do the same with iControl REST, however, there is no direct iControl REST API for tmsh help, unfortunately. So, you need to call /mgmt/tm/util/bash to call tmsh to get a desired help (I know, it's awkward).
# curl -sku admin:<pass> https://<mgmtIP>/mgmt/tm/util/bash \ -X POST \ -H "Content-Type: application/json" \ -d '{"command":"run", "utilCmdArgs":"-c \"tmsh help ltm pool\""}'You may want to pipe the output to the following python one-liner for readability:
| python -c 'import sys,json; o=json.load(sys.stdin); print o["commandResult"]'I hope this helps.
You can find the list of load-balancing methods from tmsh help. Run the command below from your console:
# tmsh help ltm poolThe command yields
load-balancing-mode [
dynamic-ratio-member | dynamic-ratio-node |
fastest-app-response | fastest-node |
least-connections-members |
least-connections-node |
least-sessions |
observed-member | observed-node |
predictive-member | predictive-node |
ratio-least-connections-member |
ratio-least-connections-node |
ratio-member | ratio-node | ratio-session |
round-robin | weighted-least-connections-member |
weighted-least-connections-node]You can get the same information from the Configuration Utility (GUI) too: Just click the Help tab.
You can do the same with iControl REST, however, there is no direct iControl REST API for tmsh help, unfortunately. So, you need to call /mgmt/tm/util/bash to call tmsh to get a desired help (I know, it's awkward).
# curl -sku admin:<pass> https://<mgmtIP>/mgmt/tm/util/bash \
-X POST \
-H "Content-Type: application/json" \
-d '{"command":"run", "utilCmdArgs":"-c \"tmsh help ltm pool\""}'You may want to pipe the output to the following python one-liner for readability:
| python -c 'import sys,json; o=json.load(sys.stdin); print o["commandResult"]'I hope this helps.
- Sarath_ChandraOct 24, 2019
Nimbostratus
Hi Satoshi,
Thank you so much for the quick response. This is really helpful.
Sarath Chandra
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
