Forum Discussion

Dave_21103's avatar
Dave_21103
Icon for Nimbostratus rankNimbostratus
Jul 08, 2014

Creating GTM Servers with TMSH

Can anyone tell me the correct TMSH command to create the server below? I've been told that because we have a space in our data center name, we are unable to script GTM servers with TMSH.

 

gtm server testserver-1.1.1.1 { addresses { 1.1.1.1 { } } datacenter "Data Center" product generic-host virtual-servers { 1.1.1.1:any { name testserver-1.1.1.1 } } }

 

3 Replies

  • Enclosing the Data Center that has a space isn't an issue: (/Common)(tmos.gtm.server) create testserver addresses add { 1.1.1.1 } datacenter "Data Center" product generic-host virtual-servers add { testserver-1.1.1.1 { destination 1.1.1.1:80 }}

     

    or

     

    tmsh create gtm server testserver addresses add { 1.1.1.1 } datacenter "Data Center" product generic-host virtual-servers add { testserver-1.1.1.1 { destination 1.1.1.1:80 }}

     

    Hope this helps.

     

  • Thanks Mr. Yates! We will try this out and let you know how it went.

     

  • Michael, many thanks for your help. As you mentioned, the data center space was not an issue. We ended up using this: create gtm server servername-1.1.1.1 addresses add { 1.1.1.1 } datacenter "Data Center" product generic-host virtual-servers add { 1.1.1.1:any { name servername-1.1.1.1 }}