Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Host ID from MAC

1 view
Skip to first unread message

Hank Kingsley

unread,
Mar 4, 2002, 6:16:17 AM3/4/02
to
Is there a reliable way of working out the Host ID of a Sun server from it's
MAC address. I see that the last 3 octets in the MAC address are used for
the last 3 octets in the Host ID, but the Host ID has a number that can
change between different types of server. I've seen host ID's with 80 and
83 as the first octet.

--
NOSPAM: remove _ to email me.


Richard L. Hamilton

unread,
Mar 4, 2002, 8:17:19 AM3/4/02
to
In article <a5vjjf$8eg$1...@newstoo.ericsson.se>,

Here's what I know about it, from the opposite perspective (trying to
figure out what the MAC address is without root privileges or looking
at the arp cache):

http://groups.google.com/groups?as_umsgid=%3Cu6nj7rmhe5l476%40corp.supernews.com%3E&hl=en

Look near the end - if the high bit of the first byte of the hostid is off,
the first byte represents the architecture (1st nybble) and model (2nd
nybble), otherwise architecture and model are to be obtained elsewhere
(and presumably the value of the first byte of the hostid is assigned so
as to maximize the number of unique hostids available, and thus can't be
calculated unless you have a substantial table of values actually assigned,
and some other obtainable information to determine which apply).

Y'know, if you just want to be able to obtain a hostid over the network,
it's easy: pick an unassigned port number, and add an entry to
/etc/services, and another entry to /etc/inetd.conf, something like these:

/etc/services:
hostid 8887/tcp

/etc/inetd.conf:
hostid stream tcp nowait nobody /usr/bin/hostid

After that, you can use e.g. telnet or mconnect with a port argument to
to retrieve the hostid from the system you set up accordingly. Keep in
mind that you might not want the whole world to be able to retrieve your
hostid, and so your choice of a port number should be made in consultation
with whoever maintains your firewall(s).

--
mailto:rlh...@mindwarp.smart.net http://www.smart.net/~rlhamil

sava...@_spam_.bu.edu

unread,
Mar 4, 2002, 8:44:07 AM3/4/02
to
This only works for E10K's...
E10K mac addresses all start with 0:0:be
E10K hostid's all start with 0x80 to represent the machine type.

For an E10K domain to be created you need to get a license. That license
gives you the serial number for the domain. (BTW the domain is just a host
running on an E10K). This serial number is in hex and is 24 bits long. The
last 24 bits of the hostid are the same as the serial number and the last 3
octets (24 bits) of the mac id, are the same as the serial number...

Scott

Hank Kingsley

unread,
Mar 4, 2002, 10:06:52 AM3/4/02
to
Cheers 4 your help guys but my question is still not answered....
Basically, i'm trying to get the host ID of a couple of servers before
they're delivered. This is so that I don't have to wait for 2 days getting
veritas licenses from Sun after these things arrive. The supplier (biggest
UK Sun Supplier - u guess) can provide me with the MAC addresses of these 2
servers.

"Hank Kingsley" <_robl...@btinternet.com> wrote in message
news:a5vjjf$8eg$1...@newstoo.ericsson.se...

Hank Kingsley

unread,
Mar 4, 2002, 10:33:03 AM3/4/02
to
cheers!

"Goran Larsson" <h...@invalid.invalid> wrote in message
news:GsGF2...@approve.se...
> In article <a5vjjf$8eg$1...@newstoo.ericsson.se>,

> If the MAC address starts with 00:03:BA then the first octet of the host
> ID is 83. The next three octets are the last 3 octets of the MAC address.
>
> If the MAC address starts with 08:00:20 then the first octet of the host
> ID indicates the machine type. The next three octets are the last 3 octets
> of the MAC address. The machine type octet can be found here:
> < http://www.squirrel.com/squirrel/sun-nvram-hostid.faq.html >
> and has been 80 for all recent machines (except the ones where it is 83).
>
> Note that this is the default when the system leaves Sun.
> The host ID and the MAC address are stored separately in the NVRAM
> and as they can be changed, as described at the link above, no relation
> between the host ID and the MAC address may exist.
>
> --
> Göran Larsson hoh AT approve DOT se


Boll Weevil

unread,
Mar 4, 2002, 5:01:21 PM3/4/02
to

What??? What's top posting???????????


On Mon, 04 Mar 2002 19:38:49 GMT, cyp...@punk.net wrote:

>Hank Kingsley <_robl...@btinternet.com> wrote:
># Cheers 4 your help guys but my question is still not answered....
>
>Hank, please don't top-post.
>
>http://groups.google.com/googlegroups/posting_style.html
>#
># Summarize what you are following up.
>#
># When you follow up an existing article, Google Groups includes
># the full article in quotes, with the cursor at the top of the
># article.
>#
># Tempting though it is to just start typing your message, please
># STOP and do two things first. Look at the quoted text and delete
># parts that are irrelevant.
>#
># Then, go to the BOTTOM of the article and start typing there.
>#
># Doing this makes it much easier for your readers to get through
># your post. They'll have a reminder of the relevant text before
># your comment, but won't have to re-read the entire article. And
># if your reply appears on a site before the original article does,
># they'll get the gist of what you're talking about.

Joe Bloggs

unread,
Mar 4, 2002, 5:24:35 PM3/4/02
to
It's where you reply to a message and put your comments at the top like
this.

cypher gets all emotional when people do this.

Joe

"Boll Weevil" <dr...@maytag.com> wrote in message
news:0lr78u8cjifcpo3rp...@4ax.com...

Boll Weevil

unread,
Mar 5, 2002, 9:13:32 AM3/5/02
to

Hmmm.... I don't get it.

The bug

0 new messages