RE: [NV-L] NetView 7.1.4 - Nvdbformat Question

2007-10-17 15:34:11
Subject: RE: [NV-L] NetView 7.1.4 - Nvdbformat Question
From: "Evans, Bill" <Bill.Evans AT hq.doe DOT gov>
To: "Tivoli NetView Discussions" <nv-l AT lists.ca.ibm DOT com>
Date: Wed, 17 Oct 2007 11:19:49 -0400
Look at the sample interfaces.format especially these lines:
GROUPHEADER:<FONT SIZE=4></FONT><B><p>Vendor: ${GROUPNAME} ${NUMMATCH} interfaces</p></B
The NUMMATCH variable accumulates the count for the GROUP you define.  I think you would define a group for each previously known prefix and go from there. 
Bill Evans 

From: nv-l-bounces AT lists.ca.ibm DOT com [mailto:nv-l-bounces AT lists.ca.ibm DOT com] On Behalf Of ss cc
Sent: Tuesday, October 16, 2007 9:13 PM
To: Tivoli NetView Discussions
Subject: [NV-L] NetView 7.1.4 - Nvdbformat Question

I'm using nvdbformat to create an inventory all devices being managed by NetView.
Our devices are located all over the world and and the first 4 characters of their host name tells you where they're physically located.
I'd like to use nvdbformat to count the number of devices per site but I can't figure out how to get it to key off of the first 4 characters of the Selection Name.
jfk1-01-rtr-01 ---> Syntrax = <JFK Airport>  <Area Number>  <Function>  <Number>
jfk1-01-rtr-02 ---> Syntrax = <JFK Airport>  <Area Number>  <Function>  <Number>
jfk1-01-rtr-03 ---> Syntrax = <JFK Airport>  <Area Number>  <Function>  <Number>
jfk1-01-rtr-04 ---> Syntrax = <JFK Airport>  <Area Number>  <Function>  <Number>
Total Number at JFK = 4
dfw1-10-rtr-01 ---> Syntrax = <Dallas Airport>  <Area Number>  <Function>  <Number>
dfw1-10-rtr-02 ---> Syntrax = <Dallas Airport>  <Area Number>  <Function>  <Number>
Total Number at DFW = 2

Is there a way to get nvdbformat to group and count devices based on the first 4 characters of the Selection Name?
Thanks for you help.

Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more.
NV-L mailing list
NV-L AT lists.ca.ibm DOT com
Unsubscribe:NV-L-leave AT lists.ca.ibm DOT com
http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to 
internal IBM'ers only)