The community will be in read-only from Tuesday 11:59pm (PST) to Wednesday 7:30am (PST)
The community will be in read-only from Tuesday 11:59pm (PST) to Wednesday 7:30am (PST)
Systems Management (OpenView-OP Mgmt) Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Pattern matching in SNMP Trap template

SOLVED
Go to solution
ramesh9
Honored Contributor

Pattern matching in SNMP Trap template

Hi All

 

OMU 8x running on HP UX

 

If my incoming text is like,

 

    (Customer123 \HOST-IPBX) :Route Pattern #1 - LOCAL has status up.,

 

which comes in varbind .1.3.6.1.4.1.6102.1.2.1

 

How can I pattern match, so I can pick only "HOST-IPBX" from the text.

 

I tried

 

      <*.var1>=<14*><*.source>,<*>

 

but it did not work.

 

Please help.

1 REPLY
Highlighted
ramesh9
Honored Contributor
Solution

Re: Pattern matching in SNMP Trap template

Following worked,

 

<*.var0>=<*.application>,<*.var2>=<*.severity>,<*.var3>=<*.eventid>,<*.var4>=<*.condition>,<*.var1>=([CustomerABC |CustomerXYZ:]<*.source>)<*.message>,<*>

//Add this to "OnDomLoad" event