AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  Is there a command that identifies the wpar global lpar from a client?

    Posted Tue May 17, 2011 11:07 AM

    Originally posted by: Montecarlo


    I run scripts against lists of systems. I need ways to identify system types.
    I'm currently using uname -W to identify lpar clients and lswpar to identify servers.
    Is there a way of identifying the wpar server lpar from the client?
    Thanks, Simon
    #AIX-Forum


  • 2.  Re: Is there a command that identifies the wpar global lpar from a client?

    Posted Tue May 17, 2011 12:03 PM

    Originally posted by: unixgrl


    I can't find an online reference and don't have my notes with me but I believe there is a shell variable $GLOBAL that is set to be the hostname
    of the GLOBAL AIX LPAR where the WPAR resides. So if you "echo $GLOBAL" in a WPAR you should get results but if you do it in regular
    LPAR you won't.
    #AIX-Forum


  • 3.  Re: Is there a command that identifies the wpar global lpar from a client?

    Posted Thu May 19, 2011 04:09 AM

    Originally posted by: Montecarlo


    $GLOBAL does not seem to be set on either the wpar host or clients.
    uname -L on the client returns the lpar name and number of the host... but that's no help because other than being sensible, there's no rule that the host name has to match the lpar name.
    Regards, Simon
    #AIX-Forum


  • 4.  Re: Is there a command that identifies the wpar global lpar from a client?

    Posted Mon May 23, 2011 04:35 AM

    Originally posted by: Montecarlo


    Looks like there is no method for this. Our friendly IBM-er on site has submitted a request to development.
    The 'last' command will show the hosting lpar if someone logged into the client console from the hosting wpar using clogin, but obviously, that is not reliable.
    Thanks, Simon
    #AIX-Forum