Forum Discussion
smp_86112
Nov 15, 2010Cirrostratus
Creating Virtual with TMSH
I am simply trying to create a new virtual using TMSH, and am finding it impossible to figure out the syntax. To make this simple, can someone help me figure out how to create a virtual while applying...
hooleylist
Nov 15, 2010Cirrostratus
Hi SMP,
I was going to suggest reading up in the tmsh reference guide. But it looks like there are some issues with the examples in the 10.2.0 guide. Here's the example they give:
create virtual myV2 {destination 11.11.11.12:any persist add {source_address} pool myPool}
But this didn't work for me:
tmsh create ltm virtual myV2 {destination 11.11.11.12:any persist add {source_address} pool myPool}
Syntax Error: "persist" unexpected argument "add" one of the following must be specified:
none, replace-all-with
This worked though:
tmsh create ltm virtual my_vs {destination 11.11.11.12:any persist replace-all-with {source_addr} pool ubuntu_http_pool}
and here's the result:
virtual my_vs {
pool ubuntu_http_pool
destination 11.11.11.12:any
persist source_addr
}
Aaron
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