Forum Discussion
DanS_24772
Nimbostratus
Jun 07, 2013tmsh Default Persistence Profile ?
hey guys,
I'm using tmsh to add several hundred VIPs sequentially to my LB and I'm running into problems with setting the default persistence profile. here's an example of my current command:
create ltm virtual NAME_5555 destination 100.100.100.100:5555 profiles add { fastL4 } ip-protocol tcp pool NAME_5555
but I'm not sure how to additionally set default persistence profile to "source_addr" (it is otherwise "none")
any help would be greatly appreciated.
5 Replies
- Brent_Blood_768Historic F5 AccountForgive me if I am missing something subtle that makes this untrue, but adding "persist add { source_addr }" to your create command should do the trick.
- DanS_24772
Nimbostratus
when I try using the persist command I get the following response:
Syntax Error: "persist" unexpected argument "add" one of the following must be specified:
none, replace-all-with
using v11.3.0 if that matters - DanS_24772
Nimbostratus
oh this seems to have worked:
persist replace-all-with { source_addr }
that doesn't change anything for profiles in general (outside of this specific VIP) does it?
thanks - Brent_Blood_768Historic F5 AccountI never noticed it before, but the persist attribute for virtual servers doesn't support "add" but instead requires "replace-all-with". This does make sense though as the persist command doesn't support multiple persistence profiles (the backup is specified via "fallback-persistence"). So just use "replace-all-with" rather than "add" and you'll be fine.
And no, using replace-all-with won't have an outside impact on other profiles for other virtual servers. When you "create" an object, replace-all-with acts the same as "add", and the distinction only comes into play when you're modifying an existing object (at which time "add" appends to the list whereas replace-all-with replaces it). - DanS_24772
Nimbostratus
thanks a lot for your help!
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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