when RULE_INIT { set static::payload {windows-passwordusernamejackdomainTESTpasswordabcdef}
set username [findstr [findstr [findstr [$static::payload] {username} 1 "} 1 "} 7 "
}
any idea why the irule is not working?
Jul 12 17:33:27 apm err tmm[17407]: 01220001:3: TCL error: /Common/finstr - invalid command name "windows-passwordusernamejackdomainTESTpasswordabcdef" while executing "$static::payload"
Many thanks
Hi,
You may need to use
"
instead of
{
to define the
static::payload
:
when RULE_INIT {
set static::payload "windows-passwordusernamejackdomainTESTpasswordabcdef"
set username [findstr [findstr [findstr [$static::payload] {username} 1 "} 1 "} 7 "
Hi,
You may need to use
"
instead of
{
to define the
static::payload
:
when RULE_INIT {
set static::payload "windows-passwordusernamejackdomainTESTpasswordabcdef"
set username [findstr [findstr [findstr [$static::payload] {username} 1 "} 1 "} 7 "
Still same, i was referring from DevCentral - An F5 Technical Community
when RULE_INIT {
set static::payload {}
set static::term {">}
set urlresponse [findstr $static::payload URL= 4 $static::term]
log local0. "urlresponse $urlresponse"
}
Still same, i was referring from findstr
 
when RULE_INIT {
set static::payload {}
set static::term {">}
set urlresponse [findstr $static::payload URL= 4 $static::term]
log local0. "urlresponse $urlresponse"
}
fixed, there was an additional []
findstr [$static::payload]
After remove it worked fine.
fixed, there was an additional []
findstr [$static::payload]
After remove it worked fine.
This irule is working fine for me on a v12.1.0 lab env
This irule is working fine for me on a v12.1.0 lab env
Nice eye, I had not seen it on your first posted irule.
Nice eye, I had not seen it on your first posted irule.