nv-l
[Top] [All Lists]

RE: Anyone have script to poll routers and return list of IP enabled int

To: nv-l@lists.tivoli.com
Subject: RE: Anyone have script to poll routers and return list of IP enabled interaces ...
From: "Barr, Scott" <Scott_Barr@csgsystems.com>
Date: Mon, 26 Nov 2001 13:06:26 -0600
Okay I am still missing the point. What is it that this produces that is of
use? Wouldn't using netmon.seed with the router names in it (with discovery
turned off) still produce the same data that could be ripped out of
ovobjprint or ovtopodump? What am i missing?

-----Original Message-----
From: Leslie Clark [mailto:lclark@us.ibm.com]
Sent: Monday, November 26, 2001 1:00 PM
To: IBM NetView Discussion
Subject: RE: [NV-L] Anyone have script to poll routers and return list
of IP enabled interaces ...


What I do is a pretty simple but I don't have a sample script.
Given a list of nodes, use a simple script or commandline awk to
produce a file with a record like this for each node:

rnetstat -I <nodename> | grep -v Network | awk '{print "<nodename> " $4}'

Then run that file and capture the output. That $4 returns all of the
networks to
which the node belongs. That parm on rnetstat is a capital i. A very useful
command.  If you have a list mapping routers to sites and maybe parent
site,
you can modify the record above to produce the exact update record for the
location.conf.

(I do it this way because I don't know how to run an awk with a variable in
it.)

Warning: this approach, with no wildcards, can lead you over the 1000
record
max. In that case, in V6, be sure to get the patch from Support and follow
the
instructions for enabling large location.conf files.

Cordially,

Leslie A. Clark
IBM Global Services - Systems Mgmt & Networking
Detroit



 

                    "Barr, Scott"

                    <Scott_Barr@csgsy       To:     "'IBM NetView
Discussion'"            
                    stems.com>               <nv-l@tkg.com>

                    Sent by:                cc:

                    owner-nv-l@tkg.co       Subject:     RE: [NV-L] Anyone
have script to 
                    m                        poll routers and return list of
IP     
                                             enabled interaces ...

 

                    11/26/01 12:16 PM

                    Please respond to

                    IBM NetView

                    Discussion

 

 




Um, what am I missing? Isn't this what NETMON does? I populates a database
with information about the interfaces?

-----Original Message-----
From: donald.turrentine@amsouth.com
[mailto:donald.turrentine@amsouth.com]
Sent: Monday, November 26, 2001 10:37 AM
To: IBM NetView Discussion
Subject: [NV-L] Anyone have script to poll routers and return list of IP
enabled interaces ...



I am trying to automate much of my map layout using the location.conf file.
Unfortunately all I have been given is a list of loopback addresses for
about 700 routers and another list of hubs/switches.  Has anyone out there
written a script that will read a file (say netmon.seed) and poll each IP
listed and return a list of configured/enabled/up interfaces along with
their IP, network number, and mask?  I would imagine this would be a useful
tool so hopefully someone has already done this.  Any pointers would be
appreciated.

-Don



_________________________________________________________________________
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