Forum Discussion
Amit_4274
Nimbostratus
Apr 13, 2014how to compare data-group values
ltm data-group testssl-ma {
records {
amit {
data AMIT2004.abc.com
}
a {
data abcd.abcd.com
}
b {
data AMIT2004.foofoo....
nitass
Employee
Apr 22, 2014e.g.
config
[root@ve11a:Active:In Sync] config tmsh list ltm data-group internal sit-iolb-t1-zolb2-ser-c1-v8-443-vsrv-ma
ltm data-group internal sit-iolb-t1-zolb2-ser-c1-v8-443-vsrv-ma {
records {
epsir515.unix.srv.amit.com.au { }
epstammonitoring.test.unix.srv.amit.com.au { }
sitws1.olb.srv.amit.com.au { }
}
type string
}
[root@ve11a:Active:In Sync] config tmsh list ltm rule qux
ltm rule qux {
when RULE_INIT {
if { !([TMM::cmp_group] == 0 and [TMM::cmp_unit] == 0) } { return }
set sbj "sitws1.olb.srv.amit.com.au"
if { [class match -- $sbj eq sit-iolb-t1-zolb2-ser-c1-v8-443-vsrv-ma] } {
log local0. "match"
} else {
log local0. "not match"
}
}
}
/var/log/ltm
[root@ve11a:Active:In Sync] config tail -f /var/log/ltm
Apr 21 21:48:19 ve11a info tmm[13593]: Rule /Common/qux : match
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