Thread View: comp.sys.next.sysadmin
1 messages
1 total messages
Started by bruce
Sun, 16 Aug 1992 08:49
Map your NetInfo
Author: bruce
Date: Sun, 16 Aug 1992 08:49
Date: Sun, 16 Aug 1992 08:49
53 lines
2334 bytes
2334 bytes
I've used the following a number of times, to great advantage in checking
the status, and in one case, rebuilding the NetInfo database... Perhaps
it will save someone else time and grief, as it has us...
===========[ cut here for dumpni* ]==========
#!/bin/sh
#
# @(#) FULL NUMERIC NODE DUMP of NetInfo
#
echo \"cannot read props: ID is invalid\" messages may be expected
echo \"cannot list props: ID is invalid\" messages may be expected
# these (above) messages cannot be redirected
#
# Desired output filename on next line
a=./ni_dump.list
#
# Desired domain on next line, use "." for local domain.
m="."
#
# If you have over 300 NetInfo nodes add to the following line
# The above errormessages indicate that you've gone quite far enough
for h in 0 1 2
do
for d in 0 1 2 3 4 5 6 7 8 9
do
for u in 0 1 2 3 4 5 6 7 8 9
do
echo "=============================" 2>&1 >> ${a}
echo NetInfo ${m} node: ${h}${d}${u} 2>&1 >> ${a}
echo List \(as path position...\) 2>&1 >> ${a}
/usr/bin/niutil -list ${m} ${h}${d}${u} 2>&1 >> ${a}
echo Read \(properties...\) 2>&1 >> ${a}
/usr/bin/niutil -read ${m} ${h}${d}${u} 2>&1 >> ${a}
done
done
done
==========================[ cut here ]===================
While this may not be the most efficient way, and certainly not the prettiest
way of recording your NetInfo, if you only use the NextAdmin tools, it might
just be a good precaution to get a recorded copy where you can refer back to
it at some later date.
If someone would like to post back a nice pretty-print version of this
please feel free :) It should be fairly easy to convert this for rtf
or even PostScript output.
Bruce
--
Bruce Gingery bruce@TotSysSoft.com (Total System Software)
InterNet: Bruce.Gingery@p1.f5.n310.z1.fidonet.org ( Cheyenne, Wyoming )
or bruce@brucext.TotSysSoft.com
NeXT-Mail: bruce@tssnext.rmNUG.org < -or- > bruce@TotSysSoft.com
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads