Russell_Moore_8
Dec 09, 2010Nimbostratus
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:
Type these:
tmsh
cli script
edit min-member-pool.tcl
set noautoindent
set nosmartindent
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.