Ad Widget

Collapse

snmptrap does not accept regex

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dziugas
    Junior Member
    • Oct 2016
    • 3

    #1

    snmptrap does not accept regex

    Hi!

    Can you please help me to write regex for snmptrap?

    I want accept string wich has "lhnNsmNotification" or "lhnUserNotification" words but not "lhnNsmNotificationManager" word.

    Those examples does not works.
    snmptrap["(?!.*lhnNsmNotificationManager)(.*lhnNsmNotificat ion.*|.*lhnUserNotification.*)"]
    nor
    snmptrap["(?!lhnNsmNotificationManager)(lhnNsmNotification| lhnUserNotification)"]

    working example
    snmptrap["(lhnNsmNotification|lhnUserNotification)"]

    How to write "not" in snmptrap item?
Working...