Forum Discussion
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
- Michael_Yates
Nimbostratus
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.
- Dave_21103
Nimbostratus
Thanks Mr. Yates! We will try this out and let you know how it went.
- Dave_21103
Nimbostratus
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 }}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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