Systems Management (OpenView-OP Mgmt) Practitioners Forum
Showing results for 
Search instead for 
Do you mean 

Pattern matching in SNMP Trap template

SOLVED
Go to Solution
Highlighted
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
Honored Contributor

Re: Pattern matching in SNMP Trap template

Following worked,

 

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