ltm rule command CATEGORY matchtype
iRule(1) BIG-IP TMSH Manual iRule(1)
CATEGORY::matchtype
Get the type of match found.
SYNOPSIS
CATEGORY::matchtype TYPE
DESCRIPTION
This iRules command is intended to be used with the CATEGORY_MATCHED event and will store the match result in
the specified variable. It will return one of "custom", "request_default", or "request_default_and_custom".
This tells the admin what kind of match was made when the CATEGORY_MATCHED event was raised X custom category
match, match from the Websense categorization engine, or both. (requires SWG license)
RETURN VALUE
Returns one of "custom", "request_default", "request_default_and_custom"
VALID DURING
CATEGORY_MATCHED
EXAMPLES
when CATEGORY_MATCHED {
CATEGORY::matchtype type_var
if { $type_var eq "custom" } {
log local0. "Custom category match was found."
}
}
HINTS
SEE ALSO
CATEGORY_MATCHED event
CHANGE LOG
@BIGIP-11.6.0 --First introduced the command.
BIG-IP 2020-06-23 iRule(1)