Forum Discussion

Aniissa_5245's avatar
Aniissa_5245
Icon for Nimbostratus rankNimbostratus
Jul 03, 2012

value of cookie insert

Hello,

 

 

I would like toknow thevalue of the cookie that was insertedfor thefollowing tmsh command :

 

 

create persistence cookie persist_1 cookie-name cooke1 mirror enabled method insert expiration 0 timeout 3600

 

 

Is it cooke1 ?

 

 

Thanks.

 

 

Aniisa

 

  • e.g.

    root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos.ltm) create persistence cookie persist_1 cookie-name cooke1 mirror enabled method insert expiration 0 timeout 3600
    01070632:3: Mirroring cannot be enabled on a cookie persistence profile (/Common/persist_1) unless the cookie mode is hash.
    
    root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos.ltm) create persistence cookie persist_1 cookie-name cooke1 method insert expiration 0 timeout 3600
    
    root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos.ltm) list persistence cookie persist_1
    ltm persistence cookie persist_1 {
        app-service none
        cookie-name cooke1
        expiration 0
        method insert
        timeout 3600
    }
    
    root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) list ltm virtual bar
    ltm virtual bar {
        destination 172.28.19.252:http
        ip-protocol tcp
        mask 255.255.255.255
        persist {
            persist_1 {
                default yes
            }
        }
        pool foo
        profiles {
            http { }
            tcp { }
        }
        snat automap
        vlans-disabled
    }
    
    [root@ve11a:Active:Changes Pending] config  curl -I http://172.28.19.252
    HTTP/1.1 200 OK
    Date: Tue, 03 Jul 2012 10:20:33 GMT
    Server: Apache/2.2.3 (CentOS)
    Last-Modified: Fri, 11 Nov 2011 14:48:14 GMT
    ETag: "4183e4-3e-9c564780"
    Accept-Ranges: bytes
    Content-Length: 62
    Content-Type: text/html; charset=UTF-8
    Set-Cookie: cooke1=1707657416.20480.0000; path=/
    
    
  • should I assume that the value of cookie1 is 1707657416.20480.0000, it is generated automatically ?

     

     

    Thanks.

     

     

    Aniisa
  • should I assume that the value of cookie1 is 1707657416.20480.0000, it is generated automatically ? sol6917: Overview of BIG-IP persistence cookie encoding

     

    http://support.f5.com/kb/en-us/solutions/public/6000/900/sol6917.html
  • DevCentral MVP Michael Yates built a tool to extract these values:

     

     

    https://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/1086478/Cookie-Persistence-and-Troubleshooting.aspx