Forum Discussion
View persistence table data
Is there a command available to view the data held in the persistence table for LTM v11.2.1?
I have recently switched from using a persistence profile that affected all traffic to the VIP to an irule that only sets persistence if the URI matches a key word. After this change it appears that not all connections are getting persistence set.
Philip, try this tmsh command based on maybe client ip address:
"tmsh show /ltm persistence persist-records client-addr %client_IP%"
There are also other switches like:
key Specifies the key to look up in the persist table. It is based on the persist mode. mode Specifies the type of persistence. node-addr Specifies the address of the node with which the client session remains persistent. node-port Specifies the port of the node with which the client session remains persistent. pool Specifies the name of the pool with which the client session remains persistent. virtual Specifies the name of the virtual with which the client session remains persistent.
Hope that helps.
- MVA_60288Altocumulus
Philip, try this tmsh command based on maybe client ip address:
"tmsh show /ltm persistence persist-records client-addr %client_IP%"
There are also other switches like:
key Specifies the key to look up in the persist table. It is based on the persist mode. mode Specifies the type of persistence. node-addr Specifies the address of the node with which the client session remains persistent. node-port Specifies the port of the node with which the client session remains persistent. pool Specifies the name of the pool with which the client session remains persistent. virtual Specifies the name of the virtual with which the client session remains persistent.
Hope that helps.
- lorvain_176032Nimbostratusis there a way to obtain this result on an iRule ? tmsh show ltm persitence persist-records mode cookie key "xxx" regards
- GurusAltostratus
You can also view the same from the Configuration Utility as well. Steps to view is here:
1) Navigate to Module Statistics > Local Traffic
thanks
- MVANimbostratus
Philip, try this tmsh command based on maybe client ip address:
"tmsh show /ltm persistence persist-records client-addr %client_IP%"
There are also other switches like:
key Specifies the key to look up in the persist table. It is based on the persist mode. mode Specifies the type of persistence. node-addr Specifies the address of the node with which the client session remains persistent. node-port Specifies the port of the node with which the client session remains persistent. pool Specifies the name of the pool with which the client session remains persistent. virtual Specifies the name of the virtual with which the client session remains persistent.
Hope that helps.
- lorvain_176032Nimbostratusis there a way to obtain this result on an iRule ? tmsh show ltm persitence persist-records mode cookie key "xxx" regards
- GurusAltostratus
You can also view the same from the Configuration Utility as well. Steps to view is here:
1) Navigate to Module Statistics > Local Traffic
thanks
- Philip_King_719Nimbostratus
that worked, thanks
- Philip_King_719Nimbostratus
Is there a help file or guide to list out what is being returned and what options are available?
I've used what you listed above to pull the persistence data for one of my pools, but now I'm not sure what the data is being returned. It is showing the type of persistence, the IP/port of the VIP, the IP/port of the node, and then a number.
- MVANimbostratus
The best guide I can find is at http://support.f5.com/kb/en-us/products/big-ip_ltm/manuals/product/bigip-tmsh-11-2-1.pdf?sr=35947330 page 1095, but it doesn't show all the column headings.
I suspect the number at the end is the TMM process as it matches up with output in "tmsh show /sys connection cs-client-addr %IP_ADDR%"
Another way to look at persistence is thru the GUI; Statistics ->Module Statistics->Local Traffic. Select "Persistence Records" from Statistics Type drop down, enter pool or client IP in filter.
Recent Discussions
Related Content
* 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