Forum Discussion
Diga_171140
Feb 26, 2015Nimbostratus
How to create server in GTM under LTM via CLI ?
How to create server in GTM under LTM via CLI ?
Max_Q_factor
Cirrocumulus
I assume you mean inside TMSH shell as the "LTM via CLI"? If so then here is what I would do:
1) Make sure you create a Datacenter object firstcreate gtm datacenter /Common/ { }
2) creating a redundant LTM server object
create gtm server /Common/ { addresses { { device-name "" } { device-name "" } } datacenter /Common/ monitor /Common/bigip product redundant-bigip }
Max_Q_factor
Feb 27, 2015Cirrocumulus
how I typically figure out what the TMSH commands that are needed for a configuration is, I create the object in the GUI exactly how I want the object to appear, and in TMSH I save the config using the one-line option `save sys config one-line file ` and find the object I created in the text file that was saved in `/var/local/scf/` . I know this does not answer your question directly but I think you will be able to find a lot more useful options that way. There is also another way to load objects into TMSH. I would again create an object in the GUI, then in TMSH I would list it (i.e. `list gtm server `, copy the output from the list, edit the output and then perform a `load sys config merge from-terminal` and paste the new object into the terminal followed by a control-d to complete the merge and the new object should be in the configuration.
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