Jeff Liebermann <(E-Mail Removed)> writes:
> One piece or can I have it several pieces?
You can definitely give it to me as several pieces, as long as I
understand how to fit the pieces together.
> What you're looking for is
> "networks discovery" type of tools.
Yes, that seems like a good name for them.
> I could write something like that
> using simple shell scripts. Actually, I might have one sitting on one
> of my servers from 10+ years ago. I'll check (later). Why you would
> want such as an abomination is beyond me. DHCP works well enough.
This is a fair question....
Yes, it does for one thing, but as far as I can tell the soho router
doesn't proved rarp and I want to run dhcp there because it is the
only constant on the lan, since without it, there is no lan. All the
other boxes, including the server in question, I keep it powered down
most of the time. Thus, aside from the router everything else is
transient depending upon what laptops I have brought home on any given
day and what addresses the router assigns them when I hook them in.
Therefore,, I want this software, so when sitting at this server (and
thus have it powered up), I can ssh into one of the laptops I brought
home and copy files off it onto the server. And, I don't want to have
to go to the laptop and ask it what its ip address is, since it might
not be in the same room (or even on the same floor). And, I'd like to
address the laptop by name, as that's how I know which each one is.
They're real creative names like t42p, a30p, sony, hdxpl1040 (that's a
work one and they picked the name) but I know which one each is.
> There are also lots of sites full of Perl and shell scripts that will
> probably be close. The hard part will be dealing with duplicate
> entries, deleting transient machines, and making it fool proof.
Actually, I don't care about perfection. Duplicate entries are
interesting, because some of the laptops have cloned machine names, so
that could be an issue. However, I'm willing to live with a script
the lists the entries that I can them remove dups from. Of course,
nice would be a script that marked dup entries by commenting them out.
> Hmmm... I'm late for a lavish weekend lunch. I'll see what I can
> dredge up later. Meanwhile, I found this Bourne shell script that I
> scribbled many years ago called "pingall" which pings everything found
> in /etc/hosts which might be useful as part of the routine for
> dropping old entries.
That actually, looks like a good start, I just need to revise it to
loop over the address range rather than the name in the hosts file. I
was kind of hoping it would be that easy. Drats, when I tried that it
didn't add the hostname to the ping report, just gave me back the same
address number I typed in.
In fact, that's the part that has me stumped getting the hostname in
the first place. There must be something one can send, that says give
me your hostname. I just don't know what it is....
Thanks,
-Chris
************************************************** ***************************
Chris Clark Internet :
(E-Mail Removed)
Compiler Resources, Inc. Web Site :
http://world.std.com/~compres
23 Bailey Rd voice : (508) 435-5016
Berlin, MA 01503 USA fax : (978) 838-0263 (24 hours)
------------------------------------------------------------------------------