Forum Discussion
rahtoll_74678
Nimbostratus
Sep 08, 2012Check for String in TCP Payload from a specific position
Hi Guys,
I’m new here, as well as with F5 systems. Though basic load balancing is okay, I have this requirement where I believe iRules would be of big help. From the TCP payload, ...
Hi David,
Can you one of these?
Prepend a static domain to the username
[concat "DOMAIN\\[mcget {session.logon.last.username}]" ]
Or:
Translate from user@domain to domain\user
[regsub -all {(.*)@(.*)} [mcget {session.logon.last.username}] {\2\\\1}]
Aaron
- Stanislas_Piro2Nov 02, 2017
Cumulonimbus
I guess you may use
$[subst $varName]
- jurgenvdmark_14Nov 02, 2017
Nimbostratus
Why don't you use the table command instead. You can use the virtual name
in the name of the table_entry[virtual name]
 
You can even set a lifetime
 
Have a look at:
https://clouddocs.f5.com/api/irules/table.html
 
- Stanislas_Piro2Nov 03, 2017
Cumulonimbus
look at this article about Some iRule commands temporarily suspend iRule processing
if you change the value every multiple times an hour, table may be a good solution. if this value is changed less than once an hour, the static value is still the best solution.
you can use array to store this variable
when HTTP_REQUEST { if { [HTTP::uri] starts_with "/changeVariable" } { set VIPName [string tolower [URI::query [HTTP::uri] VIPName]] set static::myVar(/Common/${VIPName}) foo log local0. "Variable name = static::myVar(/Common/${VIPName})" log local0. "value = $static::myVar(/Common/${VIPName})" } }