home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.sysadmin
- Path: sparky!uunet!gatech!ncar!csn!nugget.rmNUG.ORG!tssnext.rmNUG.ORG!bruce
- From: bruce@tssnext.rmNUG.ORG
- Subject: Map your NetInfo
- Message-ID: <1992Aug16.084941.5058@tssnext.rmNUG.ORG>
- Reply-To: <bruce@TotSysSoft.com> (Bruce Gingery)
- Organization: Total System Software
- Date: Sun, 16 Aug 1992 08:49:41 GMT
- Lines: 53
-
- 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
-