LDOM guest domains currently have no way to gather information about their control domain.
For asset/inventory and health check tools it would be very useful if there was a Solaris tool that could be run on the guest domain to list relevant information about the control domain.
Hostname, hostid, IP addresses, serial number, mac addresses of parent would all be useful ways to tie an LDOM to its physical hardware.
The command would also be used to simply ask am I a guest LDOM,similar to clinfo Solaris command which asks am I a member of a cluster.
$ ldominfo
Host is running in guest LDOM
$ ldominfo -p
Host is running in a guest LDOM
Control hostname is: foobar
Control hostid is: 831d34656
Control mac address is: 00:14:g7:12:j8:56
..
$ ldominfo
Host is running in control LDOM
$ ldominfo
Host is not running in an LDOM
Exit status would be 0 if a host is an LDOM similar to clinfo.
Without this command administrators must grovel around in /devices,look at network interface or disk names, look for SUNWldm package, ..to try and guess if a machine is a guest or control LDOM.
2 comments:
You may be interested in virtinfo(1M). From the manpage:
" Example 2 Viewing All Information
The following example shows all available information about
the domain:
$ virtinfo -a
Domain role: LDoms control I/O service root
Domain name: primary
Domain UUID: 8e0d6ec5-cd55-e57f-ae9f-b4cc050999a4
Control domain: san-t2k-6
Chassis serial#: 0704RB0280"
useful command.
Thanks.
Post a Comment