nv-l
[Top] [All Lists]

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

To: Tivoli NetView Discussions <nv-l@lists.ca.ibm.com>
Subject: Re: [NV-L] NetView 7.1.4 - Nvdbformat Question
From: James Shanks <jshanks@us.ibm.com>
Date: Wed, 17 Oct 2007 10:37:03 -0400
Delivery-date: Wed, 17 Oct 2007 19:39:45 +0100
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
In-reply-to: <455852.44977.qm@web52704.mail.re2.yahoo.com>
List-help: <mailto:nv-l-request@lists.ca.ibm.com?subject=help>
List-id: Tivoli NetView Discussions <nv-l.lists.ca.ibm.com>
List-post: <mailto:nv-l@lists.ca.ibm.com>
List-subscribe: <http://lists.ca.ibm.com/mailman/listinfo/nv-l>, <mailto:nv-l-request@lists.ca.ibm.com?subject=subscribe>
List-unsubscribe: <http://lists.ca.ibm.com/mailman/listinfo/nv-l>, <mailto:nv-l-request@lists.ca.ibm.com?subject=unsubscribe>
Reply-to: Tivoli NetView Discussions <nv-l@lists.ca.ibm.com>
Sender: nv-l-bounces@lists.ca.ibm.com

nvdbformat selects objects from the database based on an exact match for far as I know. I think you would have to post-process your resulting report to get what you want, either by manual edit or script to extract from it what you want.

But you might be able to get what you want instead by creating smartsets based on the the Selection name, using like (~) and that unique four-character string. Then "nvUtil l <smartset_name>" will list the members and you can echo that into a report.
e.g. Smartset "JFK" has rule: ('Selection name' ~ 'jfk')
nvUtil l JFK > jfk.out
wc -l jfk.out = number of devices in that smartset, which that start with "jfk"

Good luck,

James Shanks
Level 3 Support for Tivoli NetView for UNIX and Windows
Network Availability Management
Network Management - Development
Tivoli Software, IBM Corp
Inactive hide details for ss cc <steph_cornish@yahoo.com>ss cc <steph_cornish@yahoo.com>


          ss cc <steph_cornish@yahoo.com>
          Sent by: nv-l-bounces@lists.ca.ibm.com

          10/16/2007 09:12 PM
          Please respond to
          Tivoli NetView Discussions <nv-l@lists.ca.ibm.com>


To

Tivoli NetView Discussions <nv-l@lists.ca.ibm.com>

cc


Subject

[NV-L] NetView 7.1.4 - Nvdbformat Question

All,
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.

Example:

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.
Stephanie


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

GIF image

_______________________________________________
NV-L mailing list
NV-L@lists.ca.ibm.com
Unsubscribe:NV-L-leave@lists.ca.ibm.com
http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to 
internal IBM'ers only)
<Prev in Thread] Current Thread [Next in Thread>

Archive operated by Skills 1st Ltd

See also: The NetView Web