nv-l
[Top] [All Lists]

Re: [nv-l] RULESET ?

To: nv-l@lists.us.ibm.com
Subject: Re: [nv-l] RULESET ?
From: Stephen Hochstetler <shochste@us.ibm.com>
Date: Thu, 2 Oct 2003 15:31:59 -0500
Delivery-date: Thu, 02 Oct 2003 21:36:29 +0100
Envelope-to: ajf@ourshack.com
Reply-to: nv-l@lists.us.ibm.com
Sender: owner-nv-l-digest@lists.us.ibm.com



How about building a Smartset of all hosts that begin with "ups-".    Then
in your ruleset check for smartset membership.

Stephen Hochstetler              shochste@us.ibm.com
International Technical Support Organization at IBM
Office - 512-838-6198 (t/l 678)       FAX - 512-838-6931
http://www.redbooks.ibm.com


                                                                                
                                                       
                      James                                                     
                                                       
                      Shanks/Raleigh/IBM@IBMU        To:       
nv-l@lists.us.ibm.com                                                   
                      S                              cc:                        
                                                       
                      Sent by:                       Subject:  Re: [nv-l] 
RULESET ?                                                    
                      owner-nv-l-digest@lists                                   
                                                       
                      .us.ibm.com                                               
                                                       
                                                                                
                                                       
                                                                                
                                                       
                      10/02/2003 02:56 PM                                       
                                                       
                      Please respond to nv-l                                    
                                                       
                                                                                
                                                       
                                                                                
                                                       





The short answer is, sorry , but no, there is not.   What you see there is
all that is available.
Fieldname comparisons are literal and that's all

If you want to do REGEXP on the value of attribute 2, then I suggest a
userexit with your own script.  None of the ruleset nodes support REGEXP.

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

                                                                          
    Jeff Fitzwater                                                        
    <jfitz@princeton.edu>                     To:        Netview          
    Sent by:                          <nv-l@lists.us.ibm.com>             
    owner-nv-l-digest@lists.us.ibm.co         cc:                         
    m                                         Subject:        [nv-l]      
                                      RULESET ?                           
                                                                          
    10/02/2003 03:25 PM                                                   
    Please respond to nv-l                                                
                                                                          





NV 7.1.3 on SOL 5.8


In a RULESET using the QUERY DATABASE; Is there any way to use a REGEXP
in the LITERAL value to be compared?

I am using the NVADD_EV event for new node added, to be processed
through a RULESET and then compare varbind 2, which carries the
hostname.
I then want to compare it to see if name starts with "ups-" and then
continue processing if TRUE.


Jeff Fitzwater
OIT Systems & Networking
Princeton University






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

Archive operated by Skills 1st Ltd

See also: The NetView Web