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
|