Pattern matching in SNMP Trap template (225 Views)
Reply
Honored Contributor
ramesh9
Posts: 1,113
Registered: ‎04-19-2011
Message 1 of 2 (225 Views)
Accepted Solution

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.

Honored Contributor
ramesh9
Posts: 1,113
Registered: ‎04-19-2011
Message 2 of 2 (196 Views)

Re: Pattern matching in SNMP Trap template

Following worked,

 

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

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.