Manual Chapter : Tcl examples

Applies To:

Show Versions Show Versions

BIG-IP APM

  • 15.1.10, 15.1.9, 15.1.8, 15.1.7, 15.1.6, 15.1.5, 15.1.4, 15.1.3, 15.1.2, 15.1.1, 15.1.0
Manual Chapter

Tcl examples

These tables describe the syntax elements for the Tcl examples.

Using mcget

[
mcget
{
session.ssl.cert.cn
} ]
Syntax element
Value
Description
Brackets
[ ]
The brackets [ ] that enclose the entire command are the Tcl notation for command evaluation.
Command name
mcget
This command gets the session variable from the memory cache.
Braces
{ }
Braces enclose the session variable.
Session variable name
session.ssl.cert.cn
Session variables that are generated during a session are stored in memory cache.

Checking a certificate field

expr
{ [
mcget
{
session.ssl.cert.OU
} ]contains "PD" }
This expression checks whether the Organizational Unit (OU) field of a user certificate contains the text PD.
Syntax element
Value
Description
Command name
expr
The Tcl language specifies that an expression begin with the syntax
expr
.
Rule operator
contains
This operator checks for the string PD.
Return values
0 or 1
0 usually indicates failure, while 1 usually indicates success.