home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / next / programm / 5848 < prev    next >
Encoding:
Text File  |  1992-08-29  |  2.2 KB  |  52 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!newsserver.pixel.kodak.com!psinntp!psinntp!juliet!news
  3. From: drew@fnbc.com (Drew Davidson)
  4. Subject: Re: NIDomain and sub-domains
  5. Message-ID: <1992Aug27.211120.26656@fnbc.com>
  6. Sender: news@fnbc.com
  7. Reply-To: drew@fnbc.com
  8. Organization: First National Bank Of Chicago, Chicago IL, USA
  9. References: <1992Aug26.095545.1345@codex.oz.au>
  10. Date: Thu, 27 Aug 92 21:11:20 GMT
  11. Lines: 39
  12.  
  13. In article <1992Aug26.095545.1345@codex.oz.au> bpja@codex.oz.au (Brett Adam)  
  14. writes:
  15. > In article <1992Aug18.174640.24226@fnbc.com> drew@fnbc.com (Drew Davidson)  
  16. > writes:
  17. > > Does anyone know how to get a list of all NetInfo domains under another  
  18. > NetInfo  
  19. > > domain?
  20. > > 
  21. > Examine the "serves" properties of all machines in the domain.
  22. > You could wrap a shell script around invocations of niutil to do the job, or  
  23. > better still, use the netinfo C API directly.
  24. > Have fun.
  25. > ---------------------------------------------------------------
  26. > Brett Adam                 Codex Software Development Pty. Ltd.
  27. > NeXTMail: bpja@codex.oz.au                  AppleLink: AUST0335
  28. > (Preferred.)                                 (Only if you must) 
  29. > -- 
  30.  
  31. The "serves" property is really the long way around to getting the hierarchy of  
  32. domains that are available.  I have been trying to use NIFillDomainHierarchy()  
  33. (called fill_domains() in 2.x) from /usr/include/netinfo/domain.h with partial  
  34. success.  The call has no documentation, so I've basically been playing around  
  35. until the real docs arrive.  Over in c.s.n.marketplace, Brett Adam  
  36. (bpja@codex.oz.au) is offering to sell documentation on NetInfo that his  
  37. company developed.  I'm getting it!
  38.  
  39. --
  40. +--------------------------------+-------------------------------------------+
  41. |        Drew  Davidson          | "When you're jacked up on 3 pots of       |
  42. |         Software Guy           | coffee it's easy to make a mistake."      |
  43. | First National Bank of Chicago |             - Krantz and Stanely,         |
  44. |     drew@fnbc.com  (NeXTmail)  |               "Programming the 68000"     |
  45. +--------------------------------+-------------------------------------------+
  46.