Ad Widget

Collapse

Extract a number from a string from a value in a discovery check

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cerasus
    Junior Member
    • Mar 2020
    • 24

    #1

    Extract a number from a string from a value in a discovery check

    Hello,

    Let's say I'm scanning my network for devices by making SNMP queries that results in this response:

    FIRMWARE_VERX where X is an integer.

    I want to create two actions as a result:
    • Action 1 would fire if X >= 7
    • Action 2 would fire if X < 7
    How do I extract the integer from the response string and use that integer when defining an Action? Specifically, I would like to use the "Received value" option attached in the screenshot.

    Is that a macro, a regex or something else?

    Click image for larger version

Name:	Untitled.png
Views:	142
Size:	20.5 KB
ID:	397589
Working...