Forum Discussion
Brian_Kenworthy
Nimbostratus
Dec 16, 2010bigpipe script to create pools/virtual servers
Hey all, I have to create a number of pools and virtual servers running on an LTM just upgraded to 10.2. Is there a tutorial or a sample script out there that I can reference that uses the bigpipe command?
I am trying this command, but it kicks me out to a > prompt:
b pool ${mypool_HTTPS '{lb method member least conn monitor all bigipaspx_https member 10.5.6.30:443 member 10.5.6.31:443}'
I know the basic commands, to do this but would like to see where to specify the advanced configuration options.
Thank in advance for your help!
8 Replies
- JRahm
Admin
Use tmsh instead, bigpipe will eventually go away. There are a bunch of tmsh scripts over in the wiki.
Create Pool Members: http://devcentral.f5.com/wiki/default.aspx/tmsh/CreatePoolMembers.html Click Here
This next one is for building a GTM configuration, but the process would be very similar for building pools and a virtual server if you swapped out some commands:
http://devcentral.f5.com/wiki/default.aspx/tmsh/BuildGTMConfiguration.html Click Here - Brian_Kenworthy
Nimbostratus
Thanks for the reply Jason, I will most certainly look into tmsh scripting, but this is more of an urgent need since I have to get everything created this evening. Can someone help me with the bigpipe commands to just get me over the hump? - JRahm
Admin
if just trying to create a simple pool with that information above?
bigpipe:b pool mypool_HTTPS { lb method member least conn monitor all bigipaspx_https member { 10.5.6.30:443 10.5.6.31:443 } }
tmsh cli:create ltm pool mypool_HTTPS load-balancing-mode least-connections-member monitor bigipaspx_https members add { 10.5.6.30:443 10.5.6.31:443 } - JRahm
Admin
With the tmsh cli, you get context sensitive help with the "?" or the tab. Highly recommended going forward. You get only offline help with bigpipe. - Brian_Kenworthy
Nimbostratus
Awesome, so my syntax was a little incorrect, thanks Jason. Can you help with my virtual syntax? I am using the following, but I can't figure out how to specify profiles, so this is giving me an error that I need to specify the HTTP ofr FASTHTTP profile:
bigpipe virtual myvirtual_HTTPS { destination 10.5.5.43:443 persist Simple rules myiRule }
Can we also specify the SSL Client and Server profiles in this command? I need to configure those for this virtual.
Thanks for all your help, this is going to really speed implementation up tonight. - hoolio
Cirrostratus
For bigpipe format, you can check an existing object in the bigip.conf or bigip_base.conf. As Jason pointed out a while ago, you can escape the new lines using single quotes. So if the virtual server looks like this in the bigip.conf:virtual www.example.com_http_vs { snat automap pool ubuntu_external_http_pool destination 10.1.0.15:80 ip protocol tcp rules vs_name_to_redirect_rule profiles { http {} tcp {} } }
you can use this to create it:b virtual www.example.com_http_vs '{ snat automap pool ubuntu_external_http_pool destination 10.1.0.15:80 ip protocol tcp rules vs_name_to_redirect_rule profiles { http {} tcp {} } }'
Note the single quotes before the first curly brace and after the last curly brace.
Aaron - Brian_Kenworthy
Nimbostratus
HUGE THANKS to both of you....this saves me tons of time. Much appreciated. - Leonardo_39231
Nimbostratus
Is there a way to escape to a new line using tmsh? similar to '{ in bigpipe?
Thxs... Leonardo
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