Forum Discussion
sundogbrew
Altocumulus
Feb 01, 2013Data groups in config
So I have been doing some research on this for a bit. Have read some good posts by Jason and some other stuff. I am a bit confused on a few things though. Can you call external classes in the conf...
Kevin_Stewart
Employee
Feb 01, 2013I should have asked what TMOS version you're running. Version 9.x comes with the BIGPIPE utility for creating objects on the command line. Version 10.x has BIGPIPE and TMSH, and version 11.x only has TMSH.
Here's a few TMSH and iApp references to get you started:
TMSH scripting:
https://devcentral.f5.com/wiki/TMSH.HomePage.ashx
http://support.f5.com/content/kb/en-us/products/big-ip_ltm/manuals/product/bigip-tmsh-11-3-0/_jcr_content/pdfAttach/download/file.res/bigip-tmsh-11-3-0.pdf
iApp scripting:
https://devcentral.f5.com/wiki/iApp.HomePage.ashx
I won't go into the details of each, but TMSH is the scripting language used to create/modify BIG-IP objects. You can use TMSH directly in the shell or shell scripts (bash), or create TMSH scripts that can be used independently (see https://devcentral.f5.com/wiki/TMSH.PoolStatus.ashx as an example), or include in iApps. An iApp is a "user-customizable framework for deploying applications". Think of it like a GUI wizard for creating applications, that you get to customize.
Here's a sample of creating an application from the command line using tmsh in a shell script:
create the pool
tmsh create ltm pool app-pool members replace-all-with { 1.1.1.1:80 1.1.1.2:80 1.1.1.3:80 } monitor http
create the virtual server
tmsh create ltm virtual app-vs destination 10.10.10.10:80 pool app-pool source-address-translation { type automap } profiles replace-all-with { http } persist replace-all-with { cookie }
This will build a very simple virtual server and associated pool that you can use in a shell script. In your case most of the information would be "canned" and you'd just need to supply the virtual's destination IP, port, and the pool members.
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