don_23889
Jul 01, 2014Nimbostratus
Deploying iApp template from tmsh
Starting out with iAPPs
11.4.1 LAB-VE
Copied f5.http to vco.f5.http
vco.f5.http to be used during application service GUI creation
using GUI and vco.f5.http, I created a new instance
vip ip 1.1.1.1
pool ip 2.2.2.2 14000 0
pool ip 2.2.2.3 14000 0
fqdn tomcat1.local.com
I used the 'basic' settings dropdown.
Clicked finish... and the application service macro built the instance successfully.
Next, I off-loaded the 'one-line' command to text editor;
tmsh list sys application service tomcat1.app/tomcat1 one-line
sys application service tomcat1.app/tomcat1 { device-group none inherited-devicegroup true inherited-traffic-group true tables { basic__snatpool_members { } net__snatpool_members { } optimizations__hosts { } pool__hosts { column-names { name } rows { { row { tomcat.local.com } } } } pool__members { column-names { addr port connection_limit } rows { { row { 2.2.2.2 1400 0 } } { row { 2.2.2.3 1400 0 } } } } server_pools__servers { } } template vco.f5.http traffic-group traffic-group-1 variables { client__http_compression { value "/do_not_use" } monitor__monitor { value /Common/cap1_mon_msp_traffic_control } net__client_mode { value wan } net__server_mode { value lan } pool__addr { value 1.1.1.1 } pool__pool_to_use { value "/create_new" } pool__port { value 80 } ssl__mode { value no_ssl } ssl_encryption_questions__advanced { value no } ssl_encryption_questions__help { value hide } } }
Then, from an article I read and my understanding, I could change specific variable to deploy a new service, using tmsh console access.
https://devcentral.f5.com/questions/deploy-an-application-service-from-an-iapp-template-via-tmsh
template vco.f5.http
vip ip 1.1.1.2
pool ip 2.2.2.4 80 0
pool ip 2.2.2.5 80 0
fqdn tomcat2.local.com
When I edit, copy, and paste into the console... I get an error "Syntax Error: incomplete command"
[root@new-host-2:Active:Standalone] config tmsh create /sys application service tomcat2 tables add { basic__snatpool_members { } net__snatpool_members { } optimizations__hosts { } pool__hosts { column-names { name } rows { { row { tomcat2.local.com } } } } pool__members { column-names { addr port connection_limit } rows { { row { 2.2.2.4 80 0 } } { row { 2.2.2.5 80 0 } } } } server_pools__servers { } } template vco.f5.http variables add{ client__http_compression { value "/do_not_use" } monitor__monitor { value /Common/cap1_mon_msp_traffic_control } net__client_mode { value wan } net__server_mode { value lan } pool__addr { value 1.1.1.2 } pool__pool_to_use { value "/create_new" } pool__port { value 80 } ssl__mode { value no_ssl } ssl_encryption_questions__advanced { value no } ssl_encryption_questions__help { value hide } }
Syntax Error: incomplete command
[root@new-host-2:Active:Standalone] config
The only real difference I see between my attempt and the devcentral article, is the order of pool member attributes
rows { { row { 2.2.2.4 80 0 } } { row { 2.2.2.5 80 0 } } } } <-- mine
rows { { row { 80 0 10.1.1.1 } } { row { 80 0 10.1.1.2 } } } } <-- Aaron's
Can someone explain why I am getting the error "Syntax Error: incomplete command"