02-12-2013 12:15 AM
In one of our SNMP trap template I am finding following condition,
Here I am not able to understand the line,
I could infer it takes the input from $6 variable been passed from device but could not understand
what other part does.
Can someone help me with a example of what could be the input for $6 please..
Solved! Go to Solution.
02-18-2013 06:35 AM
pattern matching on $6 will be for any characters (*), with all except the first character assigned to variable source
<1*> "one character of any kind, including seperators"
<*.source> "multiple characters of any kind, including seperators, assigned to variable source"
If $6 contains "abcd", then variable source will be populated with "bcd"
02-19-2013 03:44 AM
If my incoming text is like,
(Customer123 \HOST-IPBX) :Route Pattern #1 - LOCAL has status up.,
which comes in varbind .188.8.131.52.4.1.6184.108.40.206
How can I pattern match, so I can pick only "HOST-IPBX" from the text.
but it did not work.
Can you please help..
02-20-2013 03:28 AM
Thanks Pat, but I am not getting any message in OM console.
I tried following for pattern match,
where the input string is coming in var1.
Is there any problem that I am trying to extract from var1 twice
var1 contains following message text,
(Customer123:\HOST-IPBX): S0/SU2/DS1from HOST-IPBX is DOWN.
Also if I the message text contains,
(Customer123:HOST-IPBX): Device from HOST-IPBX is DOWN.
does the above pattern matching work..
02-20-2013 06:15 AM
Maybe you can explain why you need to do that. Normally, I assign data to a variable in the pattern matching ($6 \\<*.source>) and then use the variable where needed, such as in the message text ("message text contains <source> blah, blah").
If your text is "Customer123:HOST-IPBX): Device from HOST-IPBX is DOWN.", then, no, the pattern will not match because is is looking for the text between "\" and ")".
02-26-2013 06:33 AM
Following pattern match worked,