Hi
I need to know what is the unique identifier for solaris OS even in a virtualized environment?
Will "Using Universally Unique Identifiers" help?
virtinfo -u
Domain UUID: 9db53f14-f27c-69f9-a71c-8926e9ae6eed
If Not, then let me know?
Would appreciate if similar UNIQUE id (of course in virtualized environment) is told for
a) AIX
b) Linux
c) HPUX
as well.
Thanks
The classic Solaris command
hostid
is HW-bound.
If you just want a unique ID I suggest this portable method:
cksum /etc/hosts | awk '{print $1}'
or
uname -n | cksum | awk '{print $1}'
Hi
Thanks for the reply. But i need a unique ID under virtualization. and that too constant for a particular instance if run multiple times on single instance
How about the ethernet address of the first (virtual) NIC on each host?