nv-l
[Top] [All Lists]

Re: Null value in Collection substring

To: nv-l@lists.tivoli.com
Subject: Re: Null value in Collection substring
From: Simon Long <simon@NETTRACK.COM.AU>
Date: Thu, 24 Dec 1998 09:29:21 +1100
Organization: Nettrack Technical Services Pty Ltd
Reply-to: simon@nettrack.com.au
Sender: Discussion of IBM NetView and POLYCENTER Manager on NetView <NV-L@UCSBVM.UCSB.EDU>
Hi Lucy,

I would normally use a regular expression to do this ( ie. using "~"
operator )

Here is an example:-

((('SNMP sysLocation'~'^$') || ('isSNMPSupported' = False)) &&
('isNode' = True))

You can see the collections this way by electing to Text Editor as the
Editor Format in the original Collection Editor screen.  I have found the
text editor mode to be quite useful with more complex rules.

The regular expression ^$ signifies that the field has nothing after the start
( indicated by the "^" ) but the end ( indicated by the "$" ).

The reason why I included the isSNMPSupported field was because
I noticed that non-snmp nodes don't have the SNMP fields set and
as such fail the rule by default even though in truth they really haven't
had the field set.

I also included the isNode field  because I have noticed that the
collections can sometimes throw up multiple entries for multi-interface
nodes if this isn't set.

Hope this helps,

Regards,

Simon Long
Nettrack Technical Solutions Pty Ltd

Lucy Premus wrote:

> I'm trying to create a collection for resources that have no sysContact or
> sysLocation information defined.  I'm sure theres a simple answer to this,
> but I've tried everything and I am stumped.  How do you define a null value
> for the substring field entry after selecting the sysContact and
> sysLocation attributes?

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

Archive operated by Skills 1st Ltd

See also: The NetView Web