With V5.1, you can use nvdbformat to dump lists of nodes with certain
criteria.
With 5.0, if you only wanted a list of all nodes, you can look at the
output of
ovtopofix -Cv.
If you want to be more selective, you can define a collection and then use
nvUtil to dump the contents. That is very fast. See the man page.
If the database is very large and you want to try a bunch of different
things,
here are some methods I use:
ovtopodump -rl > topo.file
This will give a list of all routers:
cat topo.file | \
awk '/^HOSTNAME:/ {hostname=$2}
/^FLAGS:.*GATEWAY/ {print hostname}' > /tmp/routerlist
This will give a list of all snmp-supported nodes:
cat topo.file | \
awk '/^HOSTNAME:/ {hostname=$2}
/^SUPPORTS SNMP:.*YES/ {print hostname}' > /tmp/snmplist
This will give a list of nodes with oids:
cat topo.file | \
awk '/^HOSTNAME:/ {hostname=$2}
/^SNMP OBJECT ID:/ {oid=$4}
/^SUPPORTS SNMP:.*YES/ {print hostname " : " oid}' >
/tmp/nodeoid.list
sort +2 -t: /tmp/nodeoid.list > /tmp/byoid.list
Not responsible for typos....you get the idea.
Cordially,
Leslie A. Clark
IBM Global Services - Systems Mgmt & Networking
(248) 552-4968 Voicemail, Fax, Pager
---------------------- Forwarded by Leslie Clark/Southfield/IBM on 04/20/99
02:51 PM ---------------------------
"Clinkscales, Charles" <cclinkscales@FIRSTAM.COM> on 04/20/99 12:55:09 PM
Please respond to Discussion of IBM NetView and POLYCENTER Manager on
NetView <NV-L@UCSBVM.UCSB.EDU>
To: NV-L@UCSBVM.UCSB.EDU
cc: (bcc: Leslie Clark/Southfield/IBM)
Subject: Seed File
Hello All,
Is there a way to generate a seed file based on the current database?
I'm running NV 5.0 on AIX 4.2
TIA,
Charlie Clinkscales
cclinkscales@firstam.com
|