On Fri, May 1, 2009 at 11:54 AM, Kris Kasner <kris.kasner at qualcomm.com> 
wrote:
>
> Hi Folks.
>
> Does anyone know if there is a way to find the name of the guest ldom from
> the OS running within the guest ldom? The assumption might be that the OS
> running in the ldom will be named the same as the ldom (as viewed from 'ldm
> ls'), but all it takes is one OS rename from within the LDOM to break the
> mapping between the physical host and the ldoms that reside on it.
>
> I'm looking to accomplish one of two things, with a slight preference for
> the first one..
> 1: Find the name of the ldom from the running OS. I want the running OS to
> be able to populate a database with it's ldom name so we can find it on our
> farm without having to worry about a manual mapping.
>
> 2: Find the name of Guest ldom OSes from the primary/control domain. Getting
> the names of the ldoms is easy (ldm ls), but getting the OS names seems like
> it would require some ugly screen scraping from telnetting to the console
> port for each running ldom.
>
>
> Any pointers/suggestions?

If you have the SUNWsneep installed

guest# sneep -t PrimaryLDom -s somehost

guest# sneep -t PrimaryLDom
somehost

guest# eeprom nvramrc
nvramrc=devalias rootdisk /virtual-devices at 100/channel-devices at 200/disk 
at 0:a
." ChassisSerialNumber XXX " cr
." PrimaryLDom somehost " cr

primary# $ ldm list-var ldom0003
auto-boot?=true
boot-device=rootdisk
diag-switch?=false
...
nvramrc=devalias rootdisk /virtual-devices at 100/channel-devices at 200/disk 
at 0:a
." ChassisSerialNumber XXX " cr
." PrimaryLDom somehost " cr
security-#badlogins=0
use-nvramrc?=true

-- 
Mike Gerdts
http://mgerdts.blogspot.com/

Reply via email to