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....
Henrik_Gyllkran
Nimbostratus
Apr 13, 2014What is it you're trying to accomplish? I might be misinterpreting things but I'm guessing you want to find a match in the class for compare_val? One thing to know is that the class command typically uses the string and not the value - there might be a way to change that but I've never used it that way. In other words, you should flip the string and the value in your class. So if your class looks like this:
ltm data-group testssl-ma {
records {
AMIT2004.abc.com {
data amit
}
abcd.abcd.com {
data a
}
AMIT2004.foofoo.com {
data b
}
}
type string
}
And your iRule looks like this:
when HTTP_REQUEST {
set compare_val abcd.abcd.com
log local0.error "[class match -value $compare_val equals testssl-ma]"
}
You would get a log entry containing an "a", is that what you're trying to do?
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