Forum Discussion
David_Stout
Oct 26, 2016Nimbostratus
Hello
Is that the complete iRule ?
I used this one before where I set the variables outside the call from the APM module to perform some simple logging.
when ACCESS_POLICY_AGENT_EVENT {
set loginname [ACCESS::session data get session.logon.last.logonname]
set emaclientip [ACCESS::session data get session.user.clientip]
set emasessionid [ACCESS::session data get session.user.sessionid]
if {[ACCESS::policy agent_id] == "logip"}{
log "EMA $loginname connected with session ID $emasessionid from ClientIP $emaclientip"
} else {
return
}
}
This bit is throwing me though ...
"testusername" while executing "$username"
Where's the reference to testusername coming from ? Is it further down the iRule or from something else ?