Forum Discussion
IanK_37848
Nimbostratus
Nov 26, 2009Flushing Source address persistance for a singe Virtual ?
Hi All
Is it possible to flush /delete the src-address persistence records on a D68 9.4.6 for a particular virtual ?
i have searched and read the Manual .. and its just not crystal clear to me
any guidance appreciated
Thanks
ian
12 Replies
- hoolio
Cirrostratus
Hi Ian,
You can use 'b persist virtual VS_NAME show all' to list the entries and 'b persist virtual VS_NAME delete' to delete them.
Aaron - IanK_37848
Nimbostratus
Hey Aaron , wonder if you could help again :
is there a way to clear a specific record from the persistence table when using source address persistence ?
additionally , is there a way to generate a record for a specific host , i.e. sent client X to server Y
Before you ask , i know this is random requests , but we are having issues with the intermittent performance of a server , and want to set a one client to use a specific server to allow us to narrow the fault domain down.
Thanks
Ian - hoolio
Cirrostratus
Hi Ian,
I haven't tested this, but I think you can use 'b persist client 1.1.1.1 delete' to delete a client's persistence records.
I don't think there is a way to add a persistence record using the 'b persist' command. If you want to isolate one client to a specific pool member on a temporary basis, you could use an iRule which checks the client IP address and specifies the particular pool member:when CLIENT_ACCEPTED { Check if client is 1.1.1.1 if {[IP::addr [IP::client_addr] equals 1.1.1.1]}{ Force the client to the current pool's 2.2.2.2:80 member pool [LB::server pool] member 2.2.2.2 80 } }
Aaron - IanK_37848
Nimbostratus
Thanks Aaron , i can confirm the command to delete a single client does work .. - wlopez
Cirrocumulus
Do you know how I can do this for a Virtual Server that isn't in the Common partition? I changed the persistence method for a Virtual Server from source address to Universal persistence using the JSESSIONID in an iRule. Since I did this the source address persistence records haven't gone away in over two weeks. When I tried the command you suggested I get the following error:
[root@f5bigipa6:Active] config b persist virtual VS_Name delete
BIGpipe unknown operation error:
01070823:3: Read Access Denied: The current update partition (Common) does not match the object's partition (Partition_Name), stats not reset
Do I need to adds something to the command? Or logon as an admin user for the particular partition and do the same command? - Josh_S__23232
Nimbostratus
I know it has been a while but just in case anyone else stumbles upon this post by searching for the error message, here is the command to switch partitions in the shell.
'b shell partition "partition_name"'
Then run the commands above to clear persistence. - brad_11480
Nimbostratus
and what is the tmsh equivalent of the b command to do this? ahem...
thanks. - jgranieri
Nimbostratus
try this
15 13 * * 0 export REMOTEUSER=root ; tmsh -c "delete ltm persistence persist-records virtual nameofvirtualserver" - brad_11480
Nimbostratus
thanks.. that does it. also found a document that maps bigpipe to tmsh equivalent.. whew... - hoolio
Cirrostratus
Here's the link for future reference:
http://devcentral.f5.com/wiki/default.aspx/tmsh/BigpipeMappings.html
Aaron
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