Thanks, Colin. I believe the requirement in this case was to get
instances 1 thru 5 but not 11,15, etc. The original requestor
did not complain, so I assume it worked.
Cordially,
Leslie A. Clark
IBM Global Services - Systems Mgmt & Networking
Colin Mulkerrins
<Colin.Mulkerrins@ To: Leslie
Clark/Southfield/IBM@IBMUS
anpost.ie> cc:
Subject: RE: [nv-l] NV-NT
snmpcollect
02/18/02 11:51 AM instances ranges
Is this it?
That 'regular expression' is getting anything with a 1 thru 5 in it.
Try ^[1-5]$
That puts a 'starts with' and 'ends with' restriction on it, and
the braces restrict it to a single character. If you need more
that one character you have to put in braces for each position.
It gets complicated, but it works.
-----Original Message-----
From: Leslie Clark [mailto:lclark@us.ibm.com]
Sent: Monday, February 18, 2002 4:41 PM
To: nv-l@lists.tivoli.com
Subject: Re: [nv-l] NV-NT snmpcollect instances ranges
I know I just answered this one recently. Anybody save it? I
wish we had archives...
Jordi, what it is doing is like a Unix regular expression. If you
tell us exactly what instances you are looking for, we will give
you an example that should work.
Cordially,
Leslie A. Clark
IBM Global Services - Systems Mgmt & Networking
Detroit
Jordi
Soldevila To: nv-l@lists.tivoli.com
Melgar/Spain/I cc:
BM@IBMES Subject: [nv-l] NV-NT
snmpcollect instances
ranges
02/18/02 10:56
AM
Hello,
we'd like to specify a range of instances to collect mib data from them
but it seems that the expressions we are using in the range field is not
valid or it does not work as expected.We're using NetView 7.1 for NT.
What we need is to specify a list of several individual interfaces
(a,b,...n) or a range of them (n-m). If we use [n-m] it queries ALL the
instances not only the ones on the range. If we use n|m it gathers all
instances that contain either n or m or both, which is not what we're
looking for. Does anybody know how to make those expressions work?
Thanks in advance.
Jordi Soldevila Melgarejo
IBM ITS (Integrated Technology Services) - 8345
Tel. (34) 93-401.81.00
e-mail: jsoldevila@es.ibm.com
---------------------------------------------------------------------
To unsubscribe, e-mail: nv-l-unsubscribe@lists.tivoli.com
For additional commands, e-mail: nv-l-help@lists.tivoli.com
*NOTE*
This is not an Offical Tivoli Support forum. If you need immediate
assistance from Tivoli please call the IBM Tivoli Software Group
help line at 1-800-TIVOLI8(848-6548)
---------------------------------------------------------------------
To unsubscribe, e-mail: nv-l-unsubscribe@lists.tivoli.com
For additional commands, e-mail: nv-l-help@lists.tivoli.com
*NOTE*
This is not an Offical Tivoli Support forum. If you need immediate
assistance from Tivoli please call the IBM Tivoli Software Group
help line at 1-800-TIVOLI8(848-6548)
|