hostid is read-only, near as I can tell.
NAME
hostid - print the numeric identifier of the current host
SYNOPSIS
/usr/bin/hostid
DESCRIPTION
The hostid command prints the identifier of the current host
in hexadecimal. This numeric value is likely to differ when
hostid is run on a different machine.
ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
__________________________________
| ATTRIBUTE TYPE| ATTRIBUTE VALUE|
|_______________|_________________|
| Availability | SUNWcsu |
|_______________|_________________|
SEE ALSO
sysinfo(2), gethostid(3C), attributes(5)
However, MAC as in networking? Do you possibly mean this:
# ifconfig -a
lo0: flags=849<UP,LOOPBACK,RUNNING,MULTICAST> mtu 8232
inet 127.0.0.1 netmask ff000000
hme0: flags=863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 1500
inet 207.203.95.12 netmask ffffff00 broadcast 207.203.95.255
ether 8:0:20:a7:fc:f5
What happens when I change the 'ether' MAC address?
(Sun sets this internally as well and doesn't go by
the card, so what you want may work...)
HTH, -Sneex- :]
____________________________________________________________________
Bill Jones * Systems Programmer * http://www.fccj.org/cgi/mail?sneex
('> Running -
//\ Perl, Apache, MySQL, PHP3,
v_/_ Ultra 10, LinuxPPC, BeOS...