Systems Management (OpenView-OP Mgmt) Practitioners Forum
cancel

Pattern matching in SNMP Trap template

SOLVED
Go to solution
Highlighted
ramesh9
Acclaimed 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
ramesh9
Acclaimed 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