home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / mac / programm / 19890 < prev    next >
Encoding:
Text File  |  1992-12-16  |  3.5 KB  |  88 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!spsgate!mogate!newsgate!NewsWatcher!user
  3. From: rtmd30@email.sps.mot.com (Greg Ferguson)
  4. Subject: Re: MacTCP Programming idea/request
  5. Message-ID: <rtmd30-151292222156@220.1.50.175>
  6. Followup-To: comp.sys.mac.programmer
  7. Sender: usenet@newsgate.sps.mot.com
  8. Nntp-Posting-Host: 220.1.50.175
  9. Organization: Motorola
  10. References: <1992Dec11.083919.1344@galaxy.gov.bc.ca> <peter-151292115938@rocky.curtin.edu.au>
  11. Date: Wed, 16 Dec 1992 05:22:28 GMT
  12. Lines: 74
  13.  
  14. In article <peter-151292115938@rocky.curtin.edu.au>,
  15. peter@ncrpda.curtin.edu.au (Peter N Lewis) wrote:
  16. > In article <1992Dec11.083919.1344@galaxy.gov.bc.ca>,
  17. > cconstantine@galaxy.gov.bc.ca wrote:
  18. > > 
  19. > > Here is an interesting programming request/idea for use on MacTCP Ethernet
  20. > > networks.  Write a utility that will poll all of the Mac's on the network for
  21. > > their IP address.  This would be a method of IP control as well as determining
  22. > > if there are duplicate addresses on the net.  This utility should possibly 
  23. > > also
  24. > > be able to get the ethernet address (NIC) of the actual ethernet card as well. 
  25. > > This way, it can be compared to an existing database and you could track down
  26. > > exactly who is using what address.  
  27. > Well, if you have a unix box on the net, a solution would be to install the
  28. > CAP package (or a small junk of it, namely the atlook command).
  29. > The atlook command (with a little massaging) gives output like this:
  30. > ./atlook AnyZone | egrep "IPADDRESS|Macintosh" | sort +0.50
  31. >   9 - 123.4.567.89:IPADDRESS@*                 [Net: 33.172 Node: 26 Skt:
  32. > 72]
  33. >  19 - Rocky:Macintosh IIsi@*                   [Net: 33.172 Node: 26
  34. > Skt:253]
  35. >  11 - 123.4.567.98:IPADDRESS@*                 [Net: 33.172 Node: 35 Skt:
  36. > 72]
  37. >  21 - Andrea:Macintosh LC@*                    [Net: 33.172 Node: 35
  38. > Skt:251]
  39. >  23 - Phil:Macintosh LC@*                      [Net: 33.172 Node: 42
  40. > Skt:252]
  41. >  22 - Mariella:Macintosh LC@*                  [Net: 33.172 Node: 50
  42. > Skt:252]
  43. >  10 - 123.4.567.99:IPADDRESS@*                 [Net: 33.172 Node: 67 Skt:
  44. > 72]
  45. >  20 - Wendy:Macintosh IIsi@*                   [Net: 33.172 Node: 67
  46. > Skt:253]
  47. >  26 - chris m:Macintosh Plus@*                 [Net: 33.172 Node:193
  48. > Skt:252]
  49. >  24 - ChrisMc:Macintosh Plus@*                 [Net: 33.173 Node:215
  50. > Skt:252]
  51. >  25 - Misha:Macintosh Plus@*                   [Net: 33.173 Node:242
  52. > Skt:252]
  53. > Which shows pretty simply the IP of the various machines on the net that
  54. > have an IPADDRESS.
  55. > Note that MacTCP doesn't register the IP number until its actually needed,
  56. > so you won't find IPADDRESS registrations for Macs that haven't used an TCP
  57. > services since their last restart.
  58. > There are no doubt lots of Mac NBP utilities that will give this list as
  59. > well.
  60. > BTW, none of this requires any MacTCP programming.  In fact, it would be
  61. > impossible to use any TCP programming to find out this information, this is
  62. > one of the advantages that AppleTalk has over TCP.
  63. > Have fun all,
  64. >    Peter.
  65.  
  66. An additional wrench in the gears is that EtherTalk Macs will not show IP
  67. numbers in an AppleTalk NBP lookup for IP addresses. LocalTalk Macs respond
  68. fine, but I've not seen any of our Ethernet Macs return their address.
  69.  
  70. This is a real pain in the butt when a user *thinks* they know what they're
  71. doing and just hacks an IP address... which just happens to conflict with
  72. someone else's IP.
  73.  
  74. Greg Ferguson
  75. Programmer/Engineer
  76. Desktop Networking System
  77. SPS, World Marketing
  78. Motorola, Inc.
  79.