nv-l

Re: Rulesets

2001-10-29 07:19:04
Subject: Re: Rulesets
From: "James Shanks" <jshanks AT us.ibm DOT com>
To: nv-l AT lists.tivoli DOT com
Date: Mon, 29 Oct 2001 07:19:04 -0500
If you mean, "How can I get what is shown in the event window?", the answer
is that you have to build it yourself out of the trap variables just as you
do in trapd.conf.  For example, if, as if the case with many NetView traps,
all that is shown is the third variable, "$3" in trapd.conf, then you can
just add "$NVATTR_3" to the list of things to echo.  If the text is more
complicated, and contains a mix of variables and added text, such as in
this made-up example, "Interface $2 is $3", then you would echo "Interface
$NVATTR_2 is $NVATTR_3".   Each trap variable is exported in a
corresponding NVATTR variable.  And in addition, the category, source, and
severity are added at the end.  So for example if your trap contains 5
variables,  then the category, source, and severity, from trapd.conf are
added as the sixth, seventh, and eighth variables.

James Shanks
Level 3 Support  for Tivoli NetView for UNIX and NT
Tivoli Software / IBM Software Group




                                                                                
                  
                    "t04706a"                                                   
                  
                    <Martina.Haseneder       To:     "IBM NetView Discussion" 
<nv-l AT tkg DOT com>      
                    @datev.de>               cc:                                
                  
                    Sent by:                 Subject:     [NV-L] Rulesets       
                  
                    owner-nv-l AT tkg DOT com                                   
                         
                                                                                
                  
                                                                                
                  
                    10/29/01 06:05 AM                                           
                  
                    Please respond to                                           
                  
                    IBM NetView                                                 
                  
                    Discussion                                                  
                  
                                                                                
                  
                                                                                
                  



Salute,

i try to make a Ruleset with the Attribute Origin (use the IP-Adress) to
collect all traps of a Node and write them with an Action in a File.

Point 1 - the traps of this Node do not get collected.
Point 2 - Working with "
                        echo $NVA $NVT >> file
             and so on is fine, but how do I get the traptext itself?

A result would be important for me.
Thanks

Martina


<Prev in Thread] Current Thread [Next in Thread>