Forum Discussion
Pedro_Haoa_7122
Jul 03, 2017Historic F5 Account
BIG-IP APM Variables
Hi,
From the following iRule:
when ACCESS_POLICY_AGENT_EVENT {
set m1 [ACCESS::session data get "session.machine_info.last.net_adapter.list.\[0\].mac_address"]
set m2 [ACCESS::session da...
Stanislas_Piro2
Jul 03, 2017Cumulonimbus
Hi,
Why do you want to create these variables?
You can try this code
when ACCESS_POLICY_AGENT_EVENT {
set m1 [ACCESS::session data get "session.machine_info.last.net_adapter.list.\[0\].mac_address"]
set m2 [ACCESS::session data get "session.machine_info.last.net_adapter.list.\[1\].mac_address"]
Set cstm_chk [expr {[class match $m1 eq DG1]||[class match $m2 eq DG1]||[class match $m1 eq DG2]||[class match $m2 eq DG2]}]
ACCESS::session data set session.logon.cstm.chk $cstm_chk
unset cstm_chk m1 m2
}
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