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 co...
hoolio
Cirrostratus
Dec 16, 2010For 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
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