Manual Chapter :
Tcl examples
Applies To:
Show VersionsBIG-IP APM
- 15.0.1, 15.0.0
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. |