home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / next / programm / 5697 < prev    next >
Encoding:
Text File  |  1992-08-19  |  2.4 KB  |  57 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!destroyer!ubc-cs!unixg.ubc.ca!kakwa.ucs.ualberta.ca!news
  3. From: dave@nakiska.ucs.ualberta.ca (David Ross)
  4. Subject: Re: Change HostID - How ??
  5. Message-ID: <1992Aug19.194102.3029@kakwa.ucs.ualberta.ca>
  6. Sender: news@kakwa.ucs.ualberta.ca
  7. Nntp-Posting-Host: nakiska.ucs.ualberta.ca
  8. Organization: University Of Alberta, Edmonton Canada
  9. References: <1992Aug18.153253.3473@midway.uchicago.edu>
  10. Date: Wed, 19 Aug 1992 19:41:02 GMT
  11. Lines: 44
  12.  
  13. In article <1992Aug18.153253.3473@midway.uchicago.edu>  
  14. eer1@midway.uchicago.edu(Paul Woods) writes:
  15. > Hi -
  16. >  Last week I posted to .sysadmin and I received a couple of responses to  
  17. the  
  18. > following question (none of them were detailed enough).  The HostID on a  
  19. NeXT  
  20. > can be changed ( At least that is what I have been told ) and I need to  
  21. be able  
  22. > to change it on several of my NeXT's.  HOW DO I PATCH THE OS SO THAT IT  
  23. WILL  
  24. > ALLOW ME TO CHANGE THE HOSTID.  I am not a programmer (not really  
  25. anyway) so  
  26. > please keep it on a very simple level.
  27. > Thanks,
  28. > Paul-
  29.  
  30. Hi Paul.  You can't change the hostid of a Sun or a NeXT.  (Unless there  
  31. is some sort of magical system patch to do it). I missed your previous  
  32. posting so I don't really understand why you would want to.
  33.  
  34. Some people may have read the man page on the "hostid" command and been  
  35. mislead.  The man page says you can change it.  It then refers to the  
  36. gethostid(2) call for more info.  In that man page it states that the  
  37. hostid is permanent and unique for every machine.  It currently returns a  
  38. 4-byte integer with the first byte set to 1, and the last three bytes set  
  39. to the last three bytes of the ethernet address of your machine (which are  
  40. guaranteed to be unique).
  41.  
  42. The system call sethostid(2) doesn't really seem to work (there's no man  
  43. page for it either).  In generic BSD I assume it is possible to set your  
  44. hostid.  In fact I know it is on some machines - I've done it.  However  
  45. the fixed hostid scheme makes a lot more sense to me as it can be used to  
  46. identify a particular CPU and be guaranteed it will never change.  Many  
  47. licensing schemes make use of this.
  48.  
  49. --
  50. David A. Ross, Programmer Analyst  | dave@nakiska.ucs.ualberta.ca
  51. Computing and Network Services     |  (NeXTmail accepted)
  52. 352 Gen Serv Bldg, Univ of Alberta | Phone: (403) 492-9339
  53. Edmonton, Alberta, Canada  T6G 2H1 | Fax:   (403) 492-1729
  54.