Forum Discussion
Keith_11159
Nimbostratus
Apr 01, 2008LBPool.GetPersistenceRecord
I'm new to iControls and I'm a bit confused as to how the GetPersistenceRecord calls work.
We have BigIP setup such that when a client connects, his connect request has an embedded key. W...
Don_MacVittie_1
Apr 01, 2008Historic F5 Account
The getPersistenceRecord(String poolName, LocalLBPersistenceMode mode) routine returns the first one if there are multiple. I have added to my list that we really should either return the array or let the caller indicate which one they're interested in.
I just ran a test of GetPersistenceRecord(String pools[], LocalLBPersistenceMode modes[]), and it seems to function correctly. Are you using partitions on your BIG-IP perhaps? If you are, this call could return an empty set if you do not call the set_active_partition() interface in the System::Management module. If you are using partitions, Joe just published a Tech Tip on them (I haven't read it yet, but Joe knows his stuff), and I can help you work through getting your code set to use them.
If you are not running partitions, then I'm stumped. The only way I can think of that you'd get an empty set back is if there were no persistence records for the indicated modes on the indicated pools, and it sounds like that's not true. Let me ponder that one a bit if that's the case.
Don.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
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