home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / sun / admin / 5830 < prev    next >
Encoding:
Internet Message Format  |  1992-08-25  |  1.1 KB

  1. Path: sparky!uunet!olivea!hal.com!decwrl!access.usask.ca!ccu.umanitoba.ca!mills
  2. From: mills@ccu.umanitoba.ca (Gary Mills)
  3. Newsgroups: comp.sys.sun.admin
  4. Subject: Re: how to determine if ypservices available
  5. Message-ID: <1992Aug25.181325.15965@ccu.umanitoba.ca>
  6. Date: 25 Aug 92 18:13:25 GMT
  7. References: <1992Aug25.121930.11832@iplmail.orl.mmc.com>
  8. Organization: University of Manitoba, Winnipeg, Canada
  9. Lines: 22
  10.  
  11. In <1992Aug25.121930.11832@iplmail.orl.mmc.com> chucks@iplmail.orl.mmc.com (Chuck Strickland) writes:
  12.  
  13. >          this works great. the problem is that when the system
  14. > comes back on the net, sometimes after a couple of months, the yp maps
  15. > a extremely out of date.
  16.  
  17. What I do to avoid the problem of out-of-date NIS maps on the slaves is
  18. to run yppush every night on the NIS master.  Sun recommends running
  19. ypxfr on the clients, but I find yppush simpler, and it will only
  20. initiate an ypxfr if the maps are out of date.  Here's my script:
  21.  
  22. #!/bin/sh
  23. # yppushall: push all NIS maps to all NIS slaves
  24.  
  25. for MAP in `ypwhich -m | cut -d' ' -f1`
  26. do
  27.     /usr/etc/yp/yppush $MAP
  28. done
  29.  
  30. #!/end
  31. -- 
  32. -Gary Mills-         -Networking Group-          -U of M Computer Services-
  33.