[Top] [All Lists]

RES: [nv-l] Slot mapping

To: "'nv-l@lists.tivoli.com'" <nv-l@lists.tivoli.com>, "Delaire, Patrick" <delairep@aetna.com>
Subject: RES: [nv-l] Slot mapping
From: Marcos Antonio Pezzutti Filho <pezzutti@banespa.com.br>
Date: Mon, 21 Oct 2002 17:36:30 -0300
Hi Patrick,

Here we have another akind of implementation.
We have writen a script that receives the trap and generates another one. In
this new one we can parse everything at its slots.
We found this solution interesting because we can use the native Netview
Rule base implemented in version 7.1.2.

-----Mensagem original-----
De: netview@toddh.net [mailto:netview@toddh.net] 
Enviada em: Monday, October 21, 2002 16:11
Para: Delaire, Patrick
Cc: nv-l@lists.tivoli.com
Assunto: Re: [nv-l] Slot mapping

"Delaire, Patrick" <delairep@aetna.com> writes:

> Does anyone on this list know how to pass individual words in an alert 
> to TEC from netview using slot mapping definitions. I'm not referring 
> to variable binds but for instance, how do I pass the second word in 
> variable bind #3 in a slot map to TEC? all suggestion will greatly 
> appreciated.

The Internal TEC adapter does not afford you this sort of flexibility, nor
does anything you can throw at trapd.conf or the trap settings window in
message slot definitions. 

To do this sort of thing, you will have to pass the event to an external
script that ultimately calls postemsg  to send the TEC
event.   It sounds scary but it's actually quite simple to do, and is
in fact they way we handle all our events. 

You have a couple ways to pass the event to an external script.  One is in
the trap settings dialog box "Command for automatic action,"  or identially,
adding a -C  switch to the "addtrap"  command that defines a given trap (see
man addtrap for details).  The other way you can do it is by using an Action
node  in a correlation ruleset (if you're using rulesets).  

In the script, your varbinds will be accessible for processing as
environment variables.  Then you can use awk or what have you to
isolate the second work in varbind 3   to form as an agument to your
postemsg command that sends the event to TEc with  the slots populated as
you wish. 

Best Regards, 
Todd H.

To unsubscribe, e-mail: nv-l-unsubscribe@lists.tivoli.com
For additional commands, e-mail: nv-l-help@lists.tivoli.com

This is not an Offical Tivoli Support forum. If you need immediate
assistance from Tivoli please call the IBM Tivoli Software Group help line
at 1-800-TIVOLI8(848-6548)
"Essa  mensagem e  destinada  exclusivamente ao seu destinatario e pode 
 conter informacoes confidenciais, protegidas por sigilo profissional ou 
cuja  divulgacao  seja  proibida por  lei. O uso nao autorizado de tais 
informacoes  e   proibido  e  esta   sujeito  as  penalidades cabiveis. 

This message is intended exclusively for its addressee and may  contain 
 information   that   is  confidential,  protected  by   a  professional 
privilege or which disclosure is prohibited by law. Unauthorized use of 
 such information is prohibited and subject to applicable penalties." 

<Prev in Thread] Current Thread [Next in Thread>
  • RES: [nv-l] Slot mapping, Marcos Antonio Pezzutti Filho <=

Archive operated by Skills 1st Ltd

See also: The NetView Web