nv-l
[Top] [All Lists]

RE: Collection Editor

To: nv-l@lists.tivoli.com
Subject: RE: Collection Editor
From: "Davis, Donald" <donald.davis@firstcitizens.com>
Date: Wed, 27 Jun 2001 08:17:32 -0400
Barbara,
Michael was close but not quite. 'Missed a splat... I added a dollar sign
too to end the string.
Use this to match your system contacts.
You can cut/paste this directly into Smartset editor in text mode.
('SNMP sysConatct' ~ '.*CISCO..$')

Explanation of regular expression:
1st dot = match any character
2nd "*" = any number of previous character (".") so, dot followed by splat
means any number (including zero)
of any character....
followed by characters "CISCO"
next 2 dots match any 2 characters
dollar sign means End (no more characters allowed)
So....
this will match :
JoeCISCOSW
MikeCISCOrt
SuzyCISCOaz
CISCO99
but not these:
cisco22 <-- lowercase
CISCORTS  <-- 3 trailing chars instead of 2
GeorgeCISCOx <-- 1 trailing char instead of 2

Best regards,
Don Davis

-----Original Message-----
From: Michel.Grossenbacher@coop.ch [mailto:Michel.Grossenbacher@coop.ch]
Sent: Wednesday, June 27, 2001 12:29 AM
To: nv-l@tkg.com
Subject: AW: [NV-L] Collection Editor


Hello Barbara
I think a wild character is the point "." so your entry would look like
this, 'sysContact'='.CISCOSW' perhaps also use the "~" instead of the "="
sign. I dont know if there is any big difference between those 2 signs 8)but
my smartsets work well with the "~".
Greetings

Michel


-----Ursprüngliche Nachricht-----
Von: OBeirne, Barbara [mailto:Barbara.OBeirne@ssa.gov]
Gesendet am: Dienstag, 26. Juni 2001 23:03
An: IBM NetView Discussion
Betreff: RE: [NV-L] Collection Editor


        I have a similar problem.  Trying to set up 2 smartsets.

        One for CISCO Switches and one for CISCO Routers.   I am trying to
use a
        string attribute to grab an snmp value of 'sysContact=*CISCOSW or
*CISCORT'.
        We have 7 different sysContacts defined throughout our Cisco
environment, but
        they would all end in CISCORT or CISCOSW.

        How can I get a wild character in before both of these two
expressions?

        Barb...

-----Original Message-----
From: Davis, Donald [mailto:donald.davis@firstcitizens.com]
Sent: Friday, June 15, 2001 9:19 AM
To: 'IBM NetView Discussion'
Subject: RE: [NV-L] Collection Editor


Ray,
Smartset/Collection Editor uses "Regular Expressions".
Your rule should look like this :

(('vendor' = 'Microsoft') && ('IP Hostname' ~ '^CC'))

Note that the comparison operator for IP Hostname is the tilde symbol, not
an equal sign!
You can cut & paste this directly into your editor using text mode instead
of dialog.

Don Davis




-----Original Message-----
From: Raymond Tuggle [mailto:rtuggle@bcbsga.com]
Sent: Thursday, June 14, 2001 9:39 PM
To: nv-l@tkg.com
Subject: [NV-L] Collection Editor


Hello
    I am trying to set up what probably is a simple collection group.  I
would like all nodes that have the following requirements:
    Vendor = microsoft
        and
     IP Hostname begins with "CC"

    If I try setting IP Hostname ~ "CC" or IP Hostname ~ "CC*" then I
get everything that has CC anywhere in the hostname.  I also tried CC+
and +CC neither one of them worked either.
    How do you use wildcards to select only hostnames that begin with
CC?
    Thanks
    Raymond


_________________________________________________________________________
NV-L List information and Archives: http://www.tkg.com/nv-l

----------------------------------------------------------------------------
--
This electronic mail and any files transmitted with it are confidential and
are intended solely for the use of individual or entity to whom they are
addressed. If you are not the intended recipient or the person responsible
for delivering the electronic mail to the intended recipient, be advised
that you have received this electronic mail in error and that any use,
dissemination, forwarding, printing, or copying of this electronic mail is
strictly prohibited. If you have received this electronic mail in error,
please immediately notify the sender by return mail.

============================================================================
==

_________________________________________________________________________
NV-L List information and Archives: http://www.tkg.com/nv-l
_________________________________________________________________________
NV-L List information and Archives: http://www.tkg.com/nv-l
_________________________________________________________________________


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

Archive operated by Skills 1st Ltd

See also: The NetView Web