I have brought up the same question and here is what i received. It
would be nice if there was an easier way to do this though. We are
configuring our map for the first time, and due to the size of our network,
we will have to manually place the objects and then create the location.conf
from that manually so that if we ever need to rebuild the maps, it wont take
two weeks. Any way...here it is:
To: IBM NetView Discussion <nv-l@tkg.com>@SMTP@Exchange
cc: Scott Bursik/Frito-Lay/US@Frito-Lay
bcc:
Subject: Re: [NV-L] Location.conf question
I'm able to get an approximation of the locations.conf file by
executing a three
step process.
# Extract the Object IDs for all the networks known to the ODB using
NVDBFORMAT . The selectrule isNetwork=TRUE and selectfield is
Object
ID. The Output is "OVTOPODUMP -r ${1} >>if-nets.temp".
Output is an executable file which invokes OVTOPODUMP for each
object ID
Output=. /usr/OV/bin/nvdbformat -f $netformat >./$tempfile
Execute the temporary file to extract the IP address and name from
the ODB.
The output is if-nets.temp
. ./$tempfile
Each ovtopodump invocation creates records with a header, a NETWORKS
record, a SEGMENTS record, a NODES record with the first matching
node
and a series of records for the other nodes in this network.
Selecting the IP
Address from the NETWORKS record, the hostname from the first node
(we
hope it's the primary router) and appending a qualifier to the
router name we can
get records to create both an /etc/Networks file and a
locations.conf file.
network_Output="$RouterName-$count $NetworkAddress"
location_Output="$RouterName-Nets $NetworkAddress Site"
On a well structured and managed network (router loopbacks
discovered as the
primary interface and such) this gives a good approximation. On a
typical
network you may have to manually create or select the name to best
represent
the network or the location. You can also append a parent icon name
to the
location_Output record to achieve nesting. Routers still need to be
moved to the
location containers manually.
Hope this helps.
--
Bill Evans -- Consultant in Enterprise Systems Management
reply-to: wvevans@prodigy.net <mailto:wvevans@prodigy.net>
or bill_evans@sra.com <mailto:bill_evans@sra.com>
Phone: 919-696-7513
Send short text messages to 9196967513@messaging.sprintpcs.com
<mailto:9196967513@messaging.sprintpcs.com>
Scott.Bursik@fritolay.com <mailto:Scott.Bursik@fritolay.com> wrote:
Is there a way to generate data to build a location.conf file from
in an
existing map? I have netview 5.1 configured and I am in the
process of
migrating
to 6.0 and I was wanting to take the data from 5.1 and export it
so the creation
of the location.conf file will be easier.
__________________________________
_______________________________________
NV-L List information and Archives: http://www.tkg.com/nv-l
<http://www.tkg.com/nv-l>
"Garcia Crespo, Jose Manuel" <jogarcia@endesa.es>
11/21/2000 05:29 AM
Please respond to IBM NetView Discussion
<nv-l@tkg.com>@SMTP@Exchange
To: nv-l@tkg.com@SMTP@Exchange
cc:
Subject: [NV-L] export map to location.con
Hi,
I have migrated from Netview 5.1.1 to 6.0.1. The map is like in the
older
version, but now i would like to create a location.conf archive whit
current
configuration. There is any possibility to do that automatically?
_________________________________________________________________________
|