hostid->hostname mapping?
2007-12-25 10:55:00
just about 30 replies in the first 10 minutes. Here's the short answer:
ping the broadcast address of all my networks to populate the arp table
arp -a | grep 89:dc:aa
or, if you run NIS
grep 89:dc:aa ethers (used this one)
The long answer (and better solution long term) is to run a script that
gets the hostid as well as anything else that a sysadmin would want to
know; like IP, OS version, # cpu's, amount of ram, etc... and keep this
in a database. Once the legacy systems are taken care of, start keeping
track of this info as new systems come in and you no longer have a
problem.
My appreciation to all.
~JK
Jeff Kennedy wrote:
>
> Greetings all,
>
> Given a hostid, like 8089dcaa, is there a straightforward
> way (other than exhaustive search) to determine the corresponding
> hostname?
>
> I have a network with several hundred hosts (who doesn't) and a single
> hostid but no idea what host it belongs to. I'd hate to script a 'rsh
> host hostid' and run it on every host if I don't have to.
>
--
=====================
Jeff Kennedy
Unix Administrator
AMCC
jkennedy@amcc.com
S
U BEFORE POSTING please READ the FAQ located at
N ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/faq
. and the list POLICY statement located at
M ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/policy
A To submit questions/summaries to this list send your email message to:
N sun-managers@ececs.uc.edu
A To unsubscribe from this list please send an email message to:
G majordomo@codeprof.ececs.uc.edu
E and in the BODY type:
R unsubscribe sun-managers
S Or
. unsubscribe sun-managers original@subscription.address
L To view an archive of this list please visit:
I http://www.latech.edu/sunman.html
S
T
Comments
Got something to say?
You must be logged in to post a comment.

