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
- Use tmsh instead, bigpipe will eventually go away. There are a bunch of tmsh scripts over in the wiki.
- 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? - if just trying to create a simple pool with that information above?
b pool mypool_HTTPS { lb method member least conn monitor all bigipaspx_https member { 10.5.6.30:443 10.5.6.31:443 } }
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 }
- 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: - 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 {} } }
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 {} } }'
- 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?