Forum Discussion
Roberto_GB_2613
Altostratus
Oct 26, 2016Retrieving username from APM iRule
Hi all,
I'm developing a new iRule for APM and I'm constantly getting an error while retrieving the username from the session...
when ACCESS_POLICY_AGENT_EVENT {
if { [ACCESS::policy agent_i...
David_Stout
Nimbostratus
Oct 26, 2016Hello
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 ?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
