This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

NCM Regular expression to ignore "state up" or "state down" for node in the BigIP config

FormerMember
FormerMember

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

  • FormerMember
    0 FormerMember

    jhodges125  Copy and paste the example line in full context please.

  • FormerMember
    0 FormerMember in reply to FormerMember

    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

  • FormerMember
    0 FormerMember in reply to FormerMember

    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? emoticons_happy.png