I have tried the following with little success
^[ \t\r\n\v\f]state[ \t\r\n\v\f]*
^[ \t\r\n\v\f]state[ \t\r\n\v\f]*down
^[ \t\r\n\v\f]state[ \t\r\n\v\f]*up
^! state
^! state*
I have tried the following with little success
^[ \t\r\n\v\f]state[ \t\r\n\v\f]*
^[ \t\r\n\v\f]state[ \t\r\n\v\f]*down
^[ \t\r\n\v\f]state[ \t\r\n\v\f]*up
^! state
^! state*
If our RegEx guru tim.l.nelson can't help you then no one.
Jiri
Solarwinds support was able to help with the Regex. Here are the details..
ltm pool pool_name {
load-balancing-mode least-connections-member
members {
server1:http {
address x.x.x.x
session monitor-enabled
state down
}
server2:http {
address x.x.x.x
session monitor-enabled
state up
We ended up going with this Regex
state [du][op].*
This would match the "state" and the first letter being "d" or "u" and the second letter being "o" or "p"
We had to match this far to keep it from matching similar "state" lines on other parts of the config
Perfect, you do not need the .* though, the end of your pattern was the second letter in the second word so anything beyond that is completely ignored.
jhodges125 also can you mark this solved?
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 195,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process.