cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2000
Views
0
Helpful
8
Replies

Sticky Table on ACE 4710

magordon
Level 1
Level 1

I try to show all the sticy sessions for a http-cookie I have defined, but none of the sessions show up in the list:

sh sticky database http-cookie ATSTSESS

I can do a show conn and I see a bunch of connections, and I know the app is working, but I dont see any entrys in the sticky DB...

Any ideas?

Thank you,

Matt

2 Accepted Solutions

Accepted Solutions

Matt,

    The code version you are running is really old.  The first thing I would do is upgrade to 3.2.7.  Other than that pleasse share your cookie configuration.

Thanks

Chris

View solution in original post

Matt-

Yeah... Chris P. was spot on, "show sticky cookie-insert group " is how you would see the cookies.  It would look like this:

ESC-ACE4710/Admin# show sticky cookie-insert group Group1
     Cookie   |        HashKey       |           rserver-instance
  ------------+----------------------+----------------------------------------+
  R3225757187 | 17181698791673334811 | sf1/ESC5:0

One thing to remember... with cookie insert, ACE is the one putting the cookie into the response from the server, so it is controlling the cookies 100%.  Because of that, ACE actually only creates 1 cookie value per server in the serverfarm.

Hence if your serverfarm "FARM" has 8 servers, then you would expect 8 cookies to be shown with the command above.

In terms of the code version, you will want to check the release notes prior to upgrading to any code to see what bugs exist and how they effect your specific environment.

The most recent version of A3 - A3(2.7) on the appliance actually has more bugs fixed than A4(1.0) because of when A4 started being coded from.  If you specifically want to go directly to A4, I would personally wait for the next A4 release if I was running a complex configuration.

Regards,

Chris Higgins

View solution in original post

8 Replies 8

cpomeroy
Level 1
Level 1

Matt,

   If you are doing cookie insert the command to see the sticky entries is

sh sticky cookie-insert group

ACE3/Admin# sh sticky cookie-insert group COOKIE-STICKY
     Cookie   |        HashKey       |           rserver-instance
  ------------+----------------------+----------------------------------------+
  R750433761 | 4605710687758387846  | stream/stream:0

Chris

Chris,

Thanks for the reply, but I don't seem to have that option:

LB1/ER# sh sticky ?
  database  Show sticky database
LB1/ER# sh sticky database ?
  client          Show sticky database entries for a given client IP address
  group           Show sticky database entries for a given sticky group
  http-content    Show sticky database entries for a given http-content value
  http-cookie     Show sticky database entries for a given http-cookie value
  http-header     Show sticky database entries for a given http-header value
  layer4-payload  Show sticky database entries for a given layer4 payload
  rserver         Show sticky database entries for a given rserver instance
  rtsp-header     Show sticky database entries for a given rtsp-header value
  sip-header      Show sticky database entries for a given sip-header value
  static          Show statically configured sticky database entries
  type            Show sticky database entries per sticky group type
  |               Output modifiers.
  >               Output Redirection.
              Carriage return.

Version info:

Software
  loader:    Version 0.95.1
  system:    Version A3(2.0) [build 3.0(0)A3(2.0) adbuild_17:35:22-2008/10/01_/auto/adbu-rel4/rel_a3_2_0_dev_build/REL_3_0_0_A3_2_0]
  system image file: (hd0,1)/c4710ace-mz.A3_2_0.bin
  Device Manager version 1.1 (0) 20080805:0415

  installed license: ACE-AP-500M-LIC ACE-AP-C-100-LIC ACE-AP-OPT-50-K9 ACE-AP-SSL-100-K9

Thank you,

Matt

Did you define sticky resource from Admin context?

You should have something similar to below :

resource-class sticky

  limit-resource all minimum 0.00 maximum unlimited

  limit-resource sticky minimum 10.00 maximum unlimited

context Routed-c2-STATIC

  allocate-interface vlan 800

  allocate-interface vlan 904

  allocate-interface vlan 910

  member sticky

-Andrew

Andrew,

I did:

resource-class RANDOM
  limit-resource all minimum 0.00 maximum unlimited
  limit-resource sticky minimum 10.00 maximum equal-to-min

context AHOST
  allocate-interface vlan 1000
  member RANDOM

Thank you,

Matt

Hi Matt!

Chris P's post was accurate for more recent versions of code, as well, the command changes a bit depending if you were having ACE insert a cookie or parse the HTTP request/response pair.  Can you paste in the version you are running (show ver) and your sticky config (show run | i sticky) so we can see exactly what you have configured at the moment?

Regards,

Chris Higgins

Matt,

    The code version you are running is really old.  The first thing I would do is upgrade to 3.2.7.  Other than that pleasse share your cookie configuration.

Thanks

Chris

Chris,

Any reason I should not just go to version 4?

Config:

sticky http-cookie SESS STICKY
  cookie insert
  timeout 240
  replicate sticky
  serverfarm FARM

policy-map type loadbalance first-match HOST_SSL-l7slb
  class default-compression-exclusion-mime-type
    sticky-serverfarm STICKY
  class class-default
    compress default-method gzip
    sticky-serverfarm STICKY
    insert-http X-Forwarded-For header-value "%is"

Thank you,

Matt

Matt-

Yeah... Chris P. was spot on, "show sticky cookie-insert group " is how you would see the cookies.  It would look like this:

ESC-ACE4710/Admin# show sticky cookie-insert group Group1
     Cookie   |        HashKey       |           rserver-instance
  ------------+----------------------+----------------------------------------+
  R3225757187 | 17181698791673334811 | sf1/ESC5:0

One thing to remember... with cookie insert, ACE is the one putting the cookie into the response from the server, so it is controlling the cookies 100%.  Because of that, ACE actually only creates 1 cookie value per server in the serverfarm.

Hence if your serverfarm "FARM" has 8 servers, then you would expect 8 cookies to be shown with the command above.

In terms of the code version, you will want to check the release notes prior to upgrading to any code to see what bugs exist and how they effect your specific environment.

The most recent version of A3 - A3(2.7) on the appliance actually has more bugs fixed than A4(1.0) because of when A4 started being coded from.  If you specifically want to go directly to A4, I would personally wait for the next A4 release if I was running a complex configuration.

Regards,

Chris Higgins

Review Cisco Networking for a $25 gift card