Forum Discussion
RACQ_74493
Cirrus
Feb 18, 2011create 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. exact...
hoolio
Cirrostratus
Feb 18, 2011Hi 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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
