home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / sun / admin / 5834 < prev    next >
Encoding:
Text File  |  1992-08-25  |  1.7 KB  |  34 lines

  1. Newsgroups: comp.sys.sun.admin
  2. Path: sparky!uunet!europa.asd.contel.com!gatech!destroyer!fmsrl7!lynx!zia.aoc.nrao.edu!rmilner
  3. From: rmilner@zia.aoc.nrao.edu (Ruth Milner)
  4. Subject: Re: how to determine if ypservices available
  5. Message-ID: <1992Aug25.183145.3870@zia.aoc.nrao.edu>
  6. Reply-To: rmilner@zia.aoc.nrao.edu (Ruth Milner)
  7. Organization: National Radio Astronomy Observatory, Socorro NM
  8. References: <1992Aug25.121930.11832@iplmail.orl.mmc.com>
  9. Date: Tue, 25 Aug 92 18:31:45 GMT
  10. Lines: 22
  11.  
  12. In article <1992Aug25.121930.11832@iplmail.orl.mmc.com> chucks@iplmail.orl.mmc.com (Chuck Strickland) writes:
  13. > Periodically we are required to set up a system as standalone to go off
  14. > the net for various reasons. 
  15. > [...] comes back on the net, sometimes after a couple of months, the yp maps
  16. > a extremely out of date. Thus we have many strange problems until we realize 
  17. > this system is on
  18. > the net and other hosts have bound to it. Thus using outdated maps.
  19. >
  20. > A program that calls ypbind, if after
  21. > a few seconds no server responds, assume you are off the net and exec
  22. > ypserv. If a server responds, assume you are on the net and dont exec to
  23. > ypserv and just remain a client.
  24.  
  25. If your YP master stays at the same IP address most of the time, why not use
  26. "ping" instead? Before starting up YP, ping the address of the master (and
  27. maybe one or two slaves as well, in case the master is down). If it answers,
  28. you're on the net and you only want ypbind (assuming there's another server
  29. on the same subnet, but if not you can use ypset to force the binding). If 
  30. nothing answers, you aren't, and you start ypserv yourself.
  31. -- 
  32. Ruth Milner                          NRAO/VLA                  Socorro NM
  33. Computing Division Head      rmilner@zia.aoc.nrao.edu
  34.