Forum Discussion

Philip_King_719's avatar
Philip_King_719
Icon for Nimbostratus rankNimbostratus
Mar 17, 2014
Solved

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.

     

9 Replies

  • 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_176032's avatar
      lorvain_176032
      Icon for Nimbostratus rankNimbostratus
      is there a way to obtain this result on an iRule ? tmsh show ltm persitence persist-records mode cookie key "xxx" regards
    • Gurus's avatar
      Gurus
      Icon for Altostratus rankAltostratus

      You can also view the same from the Configuration Utility as well. Steps to view is here:

       

      1) Navigate to Module Statistics > Local Traffic

       

      2) Select "persistence records" from the statistics type drop-down

       

      thanks

       

      ~ Guru

       

  • MVA's avatar
    MVA
    Icon for Nimbostratus rankNimbostratus

    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_176032's avatar
      lorvain_176032
      Icon for Nimbostratus rankNimbostratus
      is there a way to obtain this result on an iRule ? tmsh show ltm persitence persist-records mode cookie key "xxx" regards
    • Gurus's avatar
      Gurus
      Icon for Altostratus rankAltostratus

      You can also view the same from the Configuration Utility as well. Steps to view is here:

       

      1) Navigate to Module Statistics > Local Traffic

       

      2) Select "persistence records" from the statistics type drop-down

       

      thanks

       

      ~ Guru

       

  • 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.

     

  • MVA's avatar
    MVA
    Icon for Nimbostratus rankNimbostratus

    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.