Hello,
I receive the following trapmessage:
SNMPv2-SMI::enterprises.23151.1.1.1.1 = STRING: "ERROR [SeeTec Cayuga] / [INR 6013256] [14:33:45]: Cannot establish stream to [10.27.79.134:80]/[DBUG-03-B2] from [10.27.79.211]."
I want to grep the text inside the [ ] square brackets and give it to new variables. I only need the parts after the "Cannot establish stream" message.
Example:
var1 = 10.27.79.134:80
var2 = DBUG-03-B2
var3 = 10.27.79.211
I've looked into the Event and Procedure Documentation. While I understand how to create a new event with eventvariables I do not comprehend the RegExp syntax Part.
Can someone explain what the characters mean or do?
S \"[(]([^)]+)\"
S \"Service: *(.*?) +\"
S \".*?:.*?:(.*)\"
How do I get the RegExp to grep the text from the second and third square bracket?
Regards,
Jana.