Forum Discussion

Terry_Fleming_2's avatar
Terry_Fleming_2
Icon for Nimbostratus rankNimbostratus
Oct 05, 2018

Persist uie lookup on 2 variables

i have 2 variables in my persist uie statement. 1st irule contains persist uie "$sessionid:$calling_station_id"

 

From a 2nd Irule i'm parsing Http::uri, pulling session id. set sessionid [findstr [HTTP::uri] "session" 10 &] i'm logging the correct value but when i do a [persist lookup uie $sessionid] i get a blank value. how do i do a lookup on the uie persist table for one of the variables. the persist table contains persist uie "$sessionid:$calling_station_id 0a199e045bb7da86000084ed:00:b3:62:78:72:95

 

1 Reply

  • Running

    persist uie "$sessionid:$calling_station_id"    
    

    Is storing the concatenation of “sessionid”, “:” and “calling_station_id” as the persistence table key. You will need to look up with the full key or change the “persistence uie” to only use a single value, like the “sessionid”

    If you want to then store additional data in the session table you can use the commands;

    session add    
    session lookup    
    session delete    
    

    E.g.

    persist uie "$sessionid"
    
    session add uie "$sessionid" "$calling_station_id"
    

    See the following article iRules 101 session command or the iRules wiki for more info.