Article View: comp.sys.next.programmer
Article #863Re: NIDomain and sub-domains
From: Drew Davidson
Date: Thu, 27 Aug 1992 21:11
Date: Thu, 27 Aug 1992 21:11
39 lines
2275 bytes
2275 bytes
In article <1992Aug26.095545.1345@codex.oz.au> bpja@codex.oz.au (Brett Adam) writes: > In article <1992Aug18.174640.24226@fnbc.com> drew@fnbc.com (Drew Davidson) > writes: > > Does anyone know how to get a list of all NetInfo domains under another > NetInfo > > domain? > > > > > Examine the "serves" properties of all machines in the domain. > > You could wrap a shell script around invocations of niutil to do the job, or > better still, use the netinfo C API directly. > > Have fun. > > > --------------------------------------------------------------- > Brett Adam Codex Software Development Pty. Ltd. > NeXTMail: bpja@codex.oz.au AppleLink: AUST0335 > (Preferred.) (Only if you must) > -- The "serves" property is really the long way around to getting the hierarchy of domains that are available. I have been trying to use NIFillDomainHierarchy() (called fill_domains() in 2.x) from /usr/include/netinfo/domain.h with partial success. The call has no documentation, so I've basically been playing around until the real docs arrive. Over in c.s.n.marketplace, Brett Adam (bpja@codex.oz.au) is offering to sell documentation on NetInfo that his company developed. I'm getting it! -- +--------------------------------+-------------------------------------------+ | Drew Davidson | "When you're jacked up on 3 pots of | | Software Guy | coffee it's easy to make a mistake." | | First National Bank of Chicago | - Krantz and Stanely, | | drew@fnbc.com (NeXTmail) | "Programming the 68000" | +--------------------------------+-------------------------------------------+
Technical Details
Message-ID:
<1992Aug27.211120.26656@fnbc.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!rpi!newsserver.pixel.kodak.com!psinntp!psinntp!juliet!newsReferences:
<1992Aug26.095545.1345@codex.oz.au>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!rpi!newsserver.pixel.kodak.com!psinntp!psinntp!juliet!news From: drew@fnbc.com (Drew Davidson) Subject: Re: NIDomain and sub-domains Message-ID: <1992Aug27.211120.26656@fnbc.com> Sender: news@fnbc.com Reply-To: drew@fnbc.com Organization: First National Bank Of Chicago, Chicago IL, USA References: <1992Aug26.095545.1345@codex.oz.au> Date: Thu, 27 Aug 92 21:11:20 GMT Lines: 39