Thanks.  That's exactly what I was looking for.

-----Original Message-----
From: Linux on 390 Port [mailto:[email protected]] On Behalf Of Edmund R. 
MacKenty
Sent: Thursday, February 19, 2009 10:13 AM
To: [email protected]
Subject: Re: How to determine which lpar a linux guest is hosted on ?

On Thursday 19 February 2009 10:09, Bernie Wu wrote:
>We have 2 LPARS, each hosting VM, which in turn hosts several linux guests.
>From a Linux guest, how do I determine which LPAR the guest is on ?

>From Linux, you can just do:

        awk '/LPAR Name:/ {print $3}' /proc/sysinfo

to get the name of the LPAR that Linux guest is running in.
        - MacK.
-----
Edmund R. MacKenty
Software Architect
Rocket Software
275 Grove Street * Newton, MA 02466-2272 * USA
Tel: +1.617.614.4321
Email: [email protected]
Web: www.rocketsoftware.com

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

The information contained in this e-mail message is intended only for the 
personal and confidential use of the recipient(s) named above. This message may 
be an attorney-client communication and/or work product and as such is 
privileged and confidential. If the reader of this message is not the intended 
recipient or an agent responsible for delivering it to the intended recipient, 
you are hereby notified that you have received this document in error and that 
any review, dissemination, distribution, or copying of this message is strictly 
prohibited. If you have received this communication in error, please notify us 
immediately by e-mail, and delete the original message.

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to