script to disable all pool members if minimum not met
I wrote this originally in perl using iControl and decided to re-write it via tmsh.
I used some stuff from the code share but modified it.
Small, simple, effective.
The basics to get this script installed are:
Copy & paste in the contents of the script
Save and quit the editor
After it successfully accepts the script you can call it from the regular “advanced cli” (in other words “bash”) as:
tmsh run cli script min-member-pool.tcl |reset
I’ll need to write a wrapper that does some proper EAV functions and calls this script to do the actual evaluation and actions.