Forum Discussion
JRahm
Sep 09, 2005Admin
From the configuration guide under the writing irules section:
Working with profiles
When you are writing an iRule, you might want that iRule to know the value
of a particular profile setting so that it can make a more-informed traffic
management decision. Fortunately, the iRules feature includes a command
that is specifically designed to read the value of profile settings that you
specify within the iRule. Not only can iRules read the values of profile settings, but they can also override values for certain settings. This means that you can apply
configuration values to individual connections that differ from the values the
LTM system applies to most connections passing through a virtual server.
Reading profile settings
The iRules feature includes a command called PROFILE. When you
specify the PROFILE command in an iRule and name a profile type and
setting, the iRule reads the value of that particular profile setting. To do this,
the iRule finds the named profile type that is assigned to the virtual server
and reads the value of the setting that you specified in the PROFILE
command sequence. The iRule can then use this information to manage
traffic. For example, you can specify the command PROFILE::tcp idle_timeout
within your iRule. The LTM system then finds the TCP profile that is
assigned to the virtual server (for example, my_tcp) and queries for the
value that you assigned to the Idle Timeout setting.
Overriding profile settings
You can use certain iRule commands to override specific profile settings.
For example, you can use commands to override settings in an SSL or HTTP
profile. When you specify these iRule commands, with setting values, then for the
specific connection to which the iRule applies, the LTM system uses the
setting values you specify in the iRule, rather than the values in the
corresponding profile. iRule commands that override profile settings are:
• SSL::renegotiate
• SSL::cert mode
• SSL::authenticate
• SSL::authenticate depth
• SSL::unclean shutdown