Forum Discussion
create 40 pools with TMSH
Hello,
I need to create some 40+ pools and I didn't want to do that via GUI (can't understand why?).
I have looked at the TMSH scripting area and have looked at the creat_pool script. exactly what you want right!
How do I get this onto my f5? I tried to get it in via starting the editor and pasting it in but when i do that it adds a lot of extra indenting so that the script ends upmoving off the page and wrapping around.
Can anyone assist here.
I don't understand if the shell can see the underlying filesystem.
Steep leaning curve for a one armed non programming administrator!
Thanks
David
5 Replies
- hoolio
Cirrostratus
Hi David,
The trick is to set a few options in the editor:
set noautoindent
set nosmartindent
Here are two related posts:
http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/53/showtab/groupforums/aff/70/afv/topic/aft/1176429/Default.aspx
Russell Moore
The basics to get this script installed are:
Type these:
tmsh
cli script
edit SCRIPT_NAME
: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
http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/53/showtab/groupforums/aff/70/afv/topic/aft/1176453/Default.aspx
Mark Crosland
In an upcoming release you will be able to run a script from a file of your choice.
Aaron - RACQ_74493
Cirrus
Excellent. Will give it a go!
Thanks very much.
David. - RACQ_74493
Cirrus
OK. Trap for young players who don't know better. Put : before set commands to set stuff if your like me and don't know anything about the vi editor
Works fine after that!!!!
David. - hoolio
Cirrostratus
Sorry for missing that in the commands :). I updated my post above to make that clearer.
Aaron - Mark_Crosland_2Historic F5 AccountThese are also handy
:set paste
:set nopaste
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
